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

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