コード例 #1
0
 //in order to make this an extension method
 //1) it must be a static method
 //2) it must be inside a static class
 //3) the first parameter must be of type "this SealedClass"
 public static void PrintSomethingElse(this SealedClass sc)
 {
     Console.WriteLine("Something Else");
 }