2012-09-06から1日間の記事一覧

C# の拡張メソッドってどうコンパイルされるの、っと

// ExtensionMethodTest.cs using System; namespace MyExtensions { // from chapter 13, "Programming C#" public static class ExtensionMethods { public static string Right(this string s, int n) { if (n < 0 || n > s.Length) { return s; } else {…