Exemple #1
0
    static void Main(string[] args)
    {
        IMyInterface foo = new MyConcreteClass();

        foo.FunctionA();
        foo.FunctionB();
        foo.FunctionC();
        Console.ReadKey();
    }
Exemple #2
0
 public static string MethodTwo(this MyConcreteClass concreteClass)
 {
     // add new implementation here
     return(concreteClass.PropertyOne + " using extensions");
 }
Exemple #3
0
 public void MyNewClass(MyConcreteClass concreteClass)
 {
     _MyConcreteClass = concreteClass;
 }