Exemple #1
0
        static void Main(string[] args)
        {
            TestOne t = new TestOne();

            Console.WriteLine(t.Op1());
            Console.WriteLine(t.Op2("DEF"));
        }
Exemple #2
0
 public static string Op2(this TestOne obj, string str)
 {
     return(obj.Op1() + str);
 }