Esempio n. 1
0
        public static void Main()
        {
            IFoo f = new OtherWithFoo();

            f.Method();
            FooWithBase.UsedToMarkTypeOnly();
        }
Esempio n. 2
0
        public static void Main()
        {
            var           fb = new FooWithBase();
            IFoo <object> fo = fb;

            fo.Method(null);

            IFoo <int> fi = fb;

            fi.Method(0);
        }
Esempio n. 3
0
 public static void Main()
 {
     IFoo <object> f   = new FooWithBase();
     var           tmp = f.Property;
 }
Esempio n. 4
0
 public static void Main()
 {
     IFoo <object> f      = new FooWithBase();
     var           result = f.Method <object> (null);
 }
Esempio n. 5
0
        public static void Main()
        {
            IFoo <object> f = new FooWithBase();

            f.Method(null);
        }
Esempio n. 6
0
        public static void Main()
        {
            IFoo f = new FooWithBase();

            f.Method();
        }
Esempio n. 7
0
        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();
        }
Esempio n. 9
0
        public static void Main()
        {
            IFoo f = new FooWithBase();

            f.Foo += EventMethod;
        }
Esempio n. 10
0
 static void UsedToMarkTypeOnly(FooWithBase arg)
 {
 }
        public static void Main()
        {
            IFoo <object> f = new FooWithBase();

            f.Property = new GenericType <object> ();
        }
Esempio n. 12
0
        public static void Main()
        {
            IFoo f = new FooWithBase();

            f.Property = 1;
        }