示例#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*");
        }