MonobjcMonobjc Documented Class Library
NumberWithInt Method (value)
NamespacesMonobjc.FoundationNSNumberNumberWithInt(Int32)

Creates and returns an NSNumber object containing a given value, treating it as a signed int.

Original signature is '+ (NSNumber *)numberWithInt:(int)value'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static NSNumber NumberWithInt(
	int value
)
Public Shared Function NumberWithInt ( _
	value As Integer _
) As NSNumber
public:
static NSNumber^ NumberWithInt(
	int value
)
Parameters
value (Int32)
The value for the new number.
Return Value
An NSNumber object containing value, treating it as a signed int.
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)