new A().getA1().getA2().getA1().getA2().getAs().ToLower();
new A().Len.getp3().getp1();
Console.ReadKey(); } } class A { public A getA1() { return this; } public A getA2() { return this; } public string getAs() { return "getAs"; } public string Len="len"; } static class person { public static chinese getp1(this chinese p) { Console.WriteLine("person getp1"); return new chinese(); } public static chinese getp2(this chinese p) { Console.WriteLine("person getp2"); return new chinese(); } public static string gets1(this chinese p) { Console.WriteLine("person gets1"); return "person gets1"; } public static chinese getp3(this string s) { Console.WriteLine("person getp3"); return new chinese(); }
//public static string getp1s(this string s) //{ // return "|"+s+"|"; //} //public static string getp2s(this string s) //{ // return "[" + s + "]"; //} } class chinese {