MonobjcMonobjc Documented Class Library
NumberWithEnum<(Of <(<'T>)>)> Method (value)
NamespacesMonobjc.FoundationNSNumberNumberWithEnum<(Of <<'(T>)>>)(T)
Create a NSNumber instance the with enumeration value.
Declaration Syntax
C#Visual BasicVisual C++
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
T
The enumeration type
Parameters
value (T)
The value.
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)