public static void TestExtensionMethod() { My m = new My(); Assert.AreEqual(6, m.G(3)); }
public static int G(this My obj, int i) { return(obj.MI + obj.F() + i); }