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*"); }
public static string GetThunkType(this TypeReference managedType) { TypeConversionInfo info = managedType.GetTypeConversionInfo(); return(info != null ? info.ThunkType ?? info.NativeType : "MonoObject*"); }