public static T AllocInit <T>() where T : struct { string typeName = typeof(T).Name; var cls = new ObjCClass(typeName); return(cls.AllocInit <T>()); }
public static extern ObjectiveCMethod *class_copyMethodList(ObjCClass cls, out uint outCount);
public static extern IntPtr class_getProperty(ObjCClass cls, byte *namePtr);
public static extern byte *class_getName(ObjCClass cls);
public static MTLCompileOptions New() { var cls = new ObjCClass("MTLCompileOptions"); return(cls.AllocInit <MTLCompileOptions>()); }
public static T AllocInit <T>(string typeName) where T : struct { var cls = new ObjCClass(typeName); return(cls.AllocInit <T>()); }