static void Main(string[] args) { IMyInterface foo = new MyConcreteClass(); foo.FunctionA(); foo.FunctionB(); foo.FunctionC(); Console.ReadKey(); }
public static string MethodTwo(this MyConcreteClass concreteClass) { // add new implementation here return(concreteClass.PropertyOne + " using extensions"); }
public void MyNewClass(MyConcreteClass concreteClass) { _MyConcreteClass = concreteClass; }