コード例 #1
0
        public void execute()
        {
            ClassB b = new ClassB();
            ClassA a = new ClassA();
            b = a;

        }
コード例 #2
0
        public void execute()
        {
            ClassA<ClassC> a = new ClassA<ClassC>();
            ClassB<ClassC> b = new ClassB<ClassC>();

            a = b;
        }
コード例 #3
0
        public void execute()   
        {
            ClassA a = new ClassA();
            ClassB b = new ClassB();

            ClassC<ClassA> ca = new ClassC<ClassA>();
            ca.result(test);
        }
コード例 #4
0
        public void execute()   
        {
            ClassA<ClassC> ac = new ClassB<ClassC>();
            ClassB<ClassD> ad = new ClassB<ClassD>();

            a2 = a1;

    
        }
コード例 #5
0
        public void execute()   
        {
            ClassA<string> a1 = new ClassB<ClassC>();
            ClassA<object> a2 = new ClassA<object>();

            a2 = a1;

    
        }
コード例 #6
0
        public void execute()   
        {
            ClassA a = new ClassA();
            ClassB b = new ClassB();


            ClassC<ClassA> ca = new ClassC<ClassA>();
           
        }
コード例 #7
0
        public void execute()   
        {
            ClassB<ClassC> ac = new ClassB<ClassC>();
            ClassB<ClassD> ad = new ClassB<ClassD>();

            ac = ad;

    
        }
コード例 #8
0
        public void execute()   
        {
            ClassA<ClassC> ac = new ClassB<ClassC>();
            ClassA<ClassD> ad = new ClassB<ClassD>();

            // ad = ac;
            ad = ac; // this works because its (in) keyword which means only in params are accepted which means the super class can come in base class, 
            ac = ad;

    
        }
コード例 #9
0
        public void execute()   
        {
            ClassA<ClassC> ac = new ClassB<ClassC>();
            ClassA<ClassD> ad = new ClassB<ClassD>();

            // ad = ac;
            ad = ac;
            //ac = ad;

    
        }
コード例 #10
0
        public void execute()   
        {
            ClassA<ClassC> ac = new ClassB<ClassC>();
            ClassA<ClassD> ad = new ClassB<ClassD>();

            // ad = ac;
            ad = ac; // this works because its (in) keyword which means only in params are accepted which means the super class can come in base class, 
                     //ac = ad;


            MyAttrib my = Attribute.GetCustomAttribute(typeof(ClassB));
        }
コード例 #11
0
        public void execute()   
        {
            ClassA a = new ClassA();
            ClassB b = new ClassB();


            ClassC<ClassA> ba = new ClassC<ClassA>();
            a =  ba.result(a);



        }
コード例 #12
0
        public void execute()   
        {
            ClassA<ClassC> ac = new ClassB<ClassC>();
            ClassA<ClassD> ad = new ClassB<ClassD>();

            // ad = ac;
            ad = ac; // this works because its (in) keyword which means only in params are accepted which means the super class can come in base class, 
                     //ac = ad;

            MyAttrib my = (MyAttrib)typeof(ClassB).GetCustomAttributes(typeof(MyAttrib), true) as MyAttrib;

            
            Debug.Log(my.name);
        }
コード例 #13
0
        public void execute()   
        {
            ClassA<ClassC> ac = new ClassB<ClassC>();
            ClassA<ClassD> ad = new ClassB<ClassD>();

            // ad = ac;
            ad = ac; // this works because its (in) keyword which means only in params are accepted which means the super class can come in base class, 
                     //ac = ad;

            Debug.Log(typeof(ClassB).GetCustomAttributes(true).Count());

            System.Reflection.MemberInfo info = typeof(MyClass);
            object[] attributes = info.GetCustomAttributes(true);

            MyAttrib my = typeof(ClassB).GetCustomAttributes(typeof(MyAttrib), true).FirstOrDefault() as MyAttrib;

            
            Debug.Log(my.name);
        }
コード例 #14
0
        public void execute()
        {
            ClassB b = new ClassB();
            ClassB a = new ClassB();

        }