Ejemplo n.º 1
0
 public virtual void IAmPrinting(ISomeInterface its2, Byket its)
 {
     Console.WriteLine("Тип объекта: " + its.GetType() + " Содержимое объекта: " + its);
     Console.WriteLine("Тип объекта: " + its2.GetType() + " Содержимое объекта: " + its2);
 }
 // Extension
 public static string GetName(this ISomeInterface some)
 {
     return(some.GetType().Name);
 }