示例#1
0
        public static void Main()
        {
            IFoo f = new OtherWithFoo();

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

            fo.Method(null);

            IFoo <int> fi = fb;

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

            f.Method(null);
        }
示例#6
0
        public static void Main()
        {
            IFoo f = new FooWithBase();

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

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

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

            f.Property = 1;
        }