Exemple #1
0
        public static void TestExtensionMethod()
        {
            My m = new My();

            Assert.AreEqual(6, m.G(3));
        }
Exemple #2
0
 public static int G(this My obj, int i)
 {
     return(obj.MI + obj.F() + i);
 }