예제 #1
0
        public static T smethod_5 <T>(object object_1) where T : class
        {
            Class162 class2 = (Class162)Activator.CreateInstance(smethod_2(typeof(T), object_1.GetType()));

            class2.object_0 = object_1;
            return(class2 as T);
        }
예제 #2
0
        public static object smethod_3(object object_1)
        {
            Class162 class2 = object_1 as Class162;

            if (class2 == null)
            {
                throw new ArgumentException("Object is not a wrapper.", "wrapper");
            }
            return(class2.object_0);
        }