예제 #1
0
        public static string GetNativeType(this TypeReference managedType)
        {
            TypeConversionInfo info = managedType.GetTypeConversionInfo();

            if (info != null)
            {
                return(info.NativeType);
            }
            if (managedType.IsValueType)
            {
                return(managedType.Name);
            }

            return("Scriptable*");
        }
예제 #2
0
        public static string GetThunkType(this TypeReference managedType)
        {
            TypeConversionInfo info = managedType.GetTypeConversionInfo();

            return(info != null ? info.ThunkType ?? info.NativeType : "MonoObject*");
        }