Create a
NSNumber instance the with enumeration value.

Declaration Syntax
public static NSNumber NumberWithEnum<T>(
T value
)
Public Shared Function NumberWithEnum(Of T) ( _
value As T _
) As NSNumber
public:
generic<typename T>
static NSNumber^ NumberWithEnum(
T value
)

Generic Template Parameters

Parameters

Return Value
A
NSNumber instance or null if the type is not an enumeration.

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)
Assembly:
Monobjc.Foundation (Module: Monobjc.Foundation)