NSNumber.FromObject(Object) 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.
Creates an NSNumber from a boxed numeric value or boolean.
public static Foundation.NSNumber FromObject(object value);
public static Foundation.NSNumber? FromObject(object? value);
static member FromObject : obj -> Foundation.NSNumber
Parameters
- value
- Object
A boxed numeric value (float, double, sbyte, byte, short, ushort, int, uint, long, ulong, nint, nuint, nfloat) or boolean.
Returns
An NSNumber representing the value, or null if the value type is not supported.