public void TestStaticRegistrar() { var entryAssembly = System.Reflection.Assembly.GetEntryAssembly(); var mdtoolDirectory = Path.GetDirectoryName(entryAssembly.Location); if (!File.Exists(Path.Combine(mdtoolDirectory, "libvsmregistrar.dylib"))) { // We don't have a full static registrar return; } var @class = new ObjCRuntime.Class(typeof(MonoDevelop.MacIntegration.MainToolbar.StatusIcon)); var findType = typeof(ObjCRuntime.Class).GetMethod("FindType", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Static); var result = (Type)findType.Invoke(null, new object [] { @class.Handle, null }); Assert.IsNotNull(result); }
public static bool AddProtocol(this ObjCRuntime.Class cls, IntPtr protocol) { throw new NotImplementedException(); }
// public static IntPtr SetMethodImplementation(this ObjCRuntime.Class cls, IntPtr method, delegate impl) { throw new NotImplementedException(); } public static IntPtr GetMethod(this ObjCRuntime.Class cls, IntPtr sel) { throw new NotImplementedException(); }
public static void MethodExchange(this ObjCRuntime.Class cls, IntPtr sel1, IntPtr sel2) { }
public void SetToViewControllerClass <T> () where T : UIViewController { ToViewControllerClass = new ObjCRuntime.Class(typeof(T)); }
public void SetToViewControllerClass(Type type) { ToViewControllerClass = new ObjCRuntime.Class(type); }
public virtual override bool IsMemberOfClass(ObjCRuntime.Class aClass) { throw new NotImplementedException(); }