Пример #1
0
 public static void EstensionMethodForTestClass(this Test testClassInstance)
 {
     Console.WriteLine("EstensionMethodForTestClass(this Test testClassInstance)");
     testClassInstance.TestMethod();
     Console.WriteLine(testClassInstance.Date);
 }
Пример #2
0
 public static int EstensionMethodForTestClassWithParameter(this Test testClassInstance, string a)
 {
     Console.WriteLine("EstensionMethodForTestClassWithParameter(this Test testClassInstance, string a)");
     return(a.Length);
 }