Exemple #1
0
        public static T AllocInit <T>() where T : struct
        {
            string typeName = typeof(T).Name;
            var    cls      = new ObjCClass(typeName);

            return(cls.AllocInit <T>());
        }
Exemple #2
0
 public static extern ObjectiveCMethod *class_copyMethodList(ObjCClass cls, out uint outCount);
Exemple #3
0
 public static extern IntPtr class_getProperty(ObjCClass cls, byte *namePtr);
Exemple #4
0
 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>());
        }