public static void Main() { IFoo f = new OtherWithFoo(); f.Method(); FooWithBase.UsedToMarkTypeOnly(); }
public static void Main() { var fb = new FooWithBase(); IFoo <object> fo = fb; fo.Method(null); IFoo <int> fi = fb; fi.Method(0); }
public static void Main() { IFoo <object> f = new FooWithBase(); var tmp = f.Property; }
public static void Main() { IFoo <object> f = new FooWithBase(); var result = f.Method <object> (null); }
public static void Main() { IFoo <object> f = new FooWithBase(); f.Method(null); }
public static void Main() { IFoo f = new FooWithBase(); f.Method(); }
public static void Main() { IFoo <object, int> f = new FooWithBase <object, int> (); f.Method(null, 0); }
public static void Main() { IFoo <object> f = new FooWithBase(); f.Property = new object(); }
public static void Main() { IFoo f = new FooWithBase(); f.Foo += EventMethod; }
static void UsedToMarkTypeOnly(FooWithBase arg) { }
public static void Main() { IFoo <object> f = new FooWithBase(); f.Property = new GenericType <object> (); }
public static void Main() { IFoo f = new FooWithBase(); f.Property = 1; }