Class.GetHandleIntrinsic(String) Method

Definition

Gets the Objective-C handle to the given type.

public static IntPtr GetHandleIntrinsic (string name);
static member GetHandleIntrinsic : string -> nativeint

Parameters

name
String

Type for an NSObject-derived class

Returns

IntPtr

nativeint

The Objective-C handle to the object.

Remarks

This method looks up the Objective-C handle for the specified type. This method is special-cased by the AOT compiler to become an inlined, static reference to the type. This is significantly faster that calling GetHandle(String), but it also means that the class must exist in the executable (or in a framework the executable is linked with).

Applies to