Initializes the .NET/Objective-C bridge with no class handler callback.
This method must be called AFTER the loading of the native framework (see LoadFramework(String)) and BEFORE any use of the Objective-C classes.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public static void Initialize()
Public Shared Sub Initialize
public: static void Initialize()
Examples
The following code shows how to use the Initialize()()()() method:
CopyC#
using System; using Monobjc; namespace MyApplication { internal class Program { public static int Main(String[] args) { ... ObjectiveCRuntime.LoadFramework("Cocoa"); ObjectiveCRuntime.Initialize(); ... } } }
Version Information
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)