NSArray.EnumsFromHandle<T>(NativeHandle) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a C# array of enum values from a handle to an NSArray of NSNumber elements, dropping any null or NSNull elements.
public static T[] EnumsFromHandle<T>(ObjCRuntime.NativeHandle handle) where T : struct;
public static T[]? EnumsFromHandle<T>(ObjCRuntime.NativeHandle handle) where T : struct;
static member EnumsFromHandle : ObjCRuntime.NativeHandle -> 'T[] (requires 'T : struct)
Type Parameters
- T
The enum type to convert each NSNumber element to.
Parameters
- handle
- NativeHandle
Pointer (handle) to the unmanaged object.
Returns
A C# array of enum values (excluding null elements), or null if the handle is Zero.