public static string GetString2ToUpper(this Class1.Class2 obj)
 {
     return(obj.GetString2().ToUpper());
 }
Exemplo n.º 2
0
 public static string GetString2Upper(this Class1.Class2 obj)//can access internal Class2 through internal Class1
 {
     return(obj.GetString2().ToUpper());
 }