Exemplo n.º 1
0
        public static bool IsAssignableFrom(ref System.Type current, ref System.Type toCompare)
        {
#if (UNITY_WINRT && !UNITY_EDITOR)
            return(Reflection.IsAssignableFrom(current, toCompare));
#else
            return(current.IsAssignableFrom(toCompare));
#endif
        }
Exemplo n.º 2
0
        public static MemberInfo[] GetMembers(ref System.Type type)
        {
#if (UNITY_WINRT && !UNITY_EDITOR)
            return(Reflection.GetMembers(type));
#else
            return(type.GetMembers());
#endif
        }
Exemplo n.º 3
0
        public static bool IsValueType(ref System.Type type)
        {
#if (UNITY_WINRT && !UNITY_EDITOR)
            return(Reflection.IsValueType(type));
#else
            return(type.IsValueType);
#endif
        }
Exemplo n.º 4
0
        public static System.Type GetBaseType(ref System.Type type)
        {
#if (UNITY_WINRT && !UNITY_EDITOR)
            return(Reflection.GetBaseType(type));
#else
            return(type.BaseType);
#endif
        }
Exemplo n.º 5
0
        public static FieldInfo GetField(ref System.Type type, string name)
        {
#if (UNITY_WINRT && !UNITY_EDITOR)
            return(Reflection.GetField(type, name));
#else
            return(type.GetField(name));
#endif
        }