A number whose value is either an integer, a real number or bool.
See Also: Inherited members from NSObject.
|
|
Creates a bool number. | |
|
|
Creates a real number. | |
|
|
Creates an integer number. | |
|
|
Creates an integer number. | |
|
|
Creates a number from its textual representation. | |
|
|
Parses integers and real numbers from their binary representation. Note: real numbers are not yet supported. |
|
const
|
BOOLEAN | int (2). Indicates that the number's value is bool. |
|
const
|
INTEGER | int (0). Indicates that the number's value is an integer. The number is stored as a .NET long. Its original value could have been char, short, int, long or even long long. |
|
const
|
REAL | int (1). Indicates that the number's value is a real number. The number is stored as a .NET double. Its original value could have been float or double. |
|
|
CompareTo
(object)Compares the current Claunia.PropertyList.NSNumber to the specified object. |
|
|
override
|
Equals
(NSObject)Determines whether the specified Claunia.PropertyList.NSObject is equal to the current Claunia.PropertyList.NSNumber. |
|
|
abstract
|
Equals
(NSObject)Determines if the specific NSObject is the same as the NSObject overriding this method. (Inherited from NSObject.) |
|
|
override
|
Equals
(object)Checks whether the other object is a NSNumber of the same value. |
|
|
|
floatValue
()The number's float value. WARNING: Possible loss of precision if the value is outside the float range. |
|
|
override
|
GetHashCode
()Serves as a hash function for a Claunia.PropertyList.NSNumber object. |
|
|
|
GetNSNumberType
()Gets the type of this number's value. |
|
|
|
isBoolean
()Checks whether the value of this NSNumber is a bool. |
|
|
|
isInteger
()Checks whether the value of this NSNumber is an integer. |
|
|
|
isReal
()Checks whether the value of this NSNumber is a real number. |
|
|
|
ToBool
()The number's bool value. |
|
|
|
ToDouble
()The number's double value. |
|
|
|
ToInt
()The number's int value. Note: Even though the number's type might be INTEGER it can be larger than a Java int. Use intValue() only if you are certain that it contains a number from the int range. Otherwise the value might be innaccurate. |
|
|
|
ToLong
()The number's long value. |
|
|
|
ToObject
()Converts this NSObject into an equivalent object of the .NET Runtime Environment. |
|
|
override
|
ToString
()Returns a string that represents the current Claunia.PropertyList.NSNumber. |
|
|
|
ToXmlPropertyList
()Generates a valid XML property list including headers using this object as root. (Inherited from NSObject.) |
|
Creates a bool number.Syntax
public NSNumber (bool b)Parameters
- b
- The bool value.
Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: Claunia.PropertyList
Assembly: plist-cil (in plist-cil.dll)
Assembly Versions: 1.13.0.0, 1.14.0.0
Creates a real number.Syntax
public NSNumber (double d)Parameters
- d
- The real value.
Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: Claunia.PropertyList
Assembly: plist-cil (in plist-cil.dll)
Assembly Versions: 1.13.0.0, 1.14.0.0
Creates an integer number.Syntax
public NSNumber (int i)Parameters
- i
- The integer value.
Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: Claunia.PropertyList
Assembly: plist-cil (in plist-cil.dll)
Assembly Versions: 1.13.0.0, 1.14.0.0
Creates an integer number.Syntax
public NSNumber (long l)Parameters
- l
- The long integer value.
Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: Claunia.PropertyList
Assembly: plist-cil (in plist-cil.dll)
Assembly Versions: 1.13.0.0, 1.14.0.0
Creates a number from its textual representation.Syntax
public NSNumber (string text)See Also
Parameters
- text
- The textual representation of the number.
Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: Claunia.PropertyList
Assembly: plist-cil (in plist-cil.dll)
Assembly Versions: 1.13.0.0, 1.14.0.0
Parses integers and real numbers from their binary representation. Note: real numbers are not yet supported.Syntax
See Also
Parameters
- bytes
- The binary representation
- type
- The type of number
Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: Claunia.PropertyList
Assembly: plist-cil (in plist-cil.dll)
Assembly Versions: 1.13.0.0, 1.14.0.0
Indicates that the number's value is bool.Value: 2
Syntax
public const int BOOLEANRemarks
Documentation for this section has not yet been entered.Requirements
Namespace: Claunia.PropertyList
Assembly: plist-cil (in plist-cil.dll)
Assembly Versions: 1.13.0.0, 1.14.0.0
Compares the current Claunia.PropertyList.NSNumber to the specified object.Syntax
Parameters
- o
- Object to compare to the current Claunia.PropertyList.NSNumber.
Returns
0 if the numbers are equal, 1 if the current Claunia.PropertyList.NSNumber is greater than the argument and -1 if it is less, or the argument is not a number.Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: Claunia.PropertyList
Assembly: plist-cil (in plist-cil.dll)
Assembly Versions: 1.13.0.0, 1.14.0.0
Determines whether the specified Claunia.PropertyList.NSObject is equal to the current Claunia.PropertyList.NSNumber.Syntax
Parameters
- obj
- The Claunia.PropertyList.NSObject to compare with the current Claunia.PropertyList.NSNumber.
Returns
true if the specified Claunia.PropertyList.NSObject is equal to the current Claunia.PropertyList.NSNumber; otherwise, false.Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: Claunia.PropertyList
Assembly: plist-cil (in plist-cil.dll)
Assembly Versions: 1.13.0.0, 1.14.0.0
Checks whether the other object is a NSNumber of the same value.Syntax
Parameters
- obj
- The object to compare to.
Returns
Whether the objects are equal in terms of numeric value and type.Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: Claunia.PropertyList
Assembly: plist-cil (in plist-cil.dll)
Assembly Versions: 1.13.0.0, 1.14.0.0
The number's float value. WARNING: Possible loss of precision if the value is outside the float range.Syntax
public float floatValue ()Returns
The value of the number as float.Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: Claunia.PropertyList
Assembly: plist-cil (in plist-cil.dll)
Assembly Versions: 1.13.0.0, 1.14.0.0
Serves as a hash function for a Claunia.PropertyList.NSNumber object.Syntax
public override int GetHashCode ()Returns
A hash code for this instance that is suitable for use in hashing algorithms and data structures such as a hash table.Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: Claunia.PropertyList
Assembly: plist-cil (in plist-cil.dll)
Assembly Versions: 1.13.0.0, 1.14.0.0
Gets the type of this number's value.Syntax
public int GetNSNumberType ()See Also
Returns
The type flag.Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: Claunia.PropertyList
Assembly: plist-cil (in plist-cil.dll)
Assembly Versions: 1.13.0.0, 1.14.0.0
Indicates that the number's value is an integer. The number is stored as a .NET long. Its original value could have been char, short, int, long or even long long.Value: 0
Syntax
public const int INTEGERRemarks
Documentation for this section has not yet been entered.Requirements
Namespace: Claunia.PropertyList
Assembly: plist-cil (in plist-cil.dll)
Assembly Versions: 1.13.0.0, 1.14.0.0
Checks whether the value of this NSNumber is a bool.Syntax
public bool isBoolean ()Returns
Whether the number's value is a bool.Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: Claunia.PropertyList
Assembly: plist-cil (in plist-cil.dll)
Assembly Versions: 1.13.0.0, 1.14.0.0
Checks whether the value of this NSNumber is an integer.Syntax
public bool isInteger ()Returns
Whether the number's value is an integer.Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: Claunia.PropertyList
Assembly: plist-cil (in plist-cil.dll)
Assembly Versions: 1.13.0.0, 1.14.0.0
Checks whether the value of this NSNumber is a real number.Syntax
public bool isReal ()Returns
Whether the number's value is a real number.Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: Claunia.PropertyList
Assembly: plist-cil (in plist-cil.dll)
Assembly Versions: 1.13.0.0, 1.14.0.0
Indicates that the number's value is a real number. The number is stored as a .NET double. Its original value could have been float or double.Value: 1
Syntax
public const int REALRemarks
Documentation for this section has not yet been entered.Requirements
Namespace: Claunia.PropertyList
Assembly: plist-cil (in plist-cil.dll)
Assembly Versions: 1.13.0.0, 1.14.0.0
The number's bool value.Syntax
public bool ToBool ()Returns
true if the value is true or non-zero, false otherwise.Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: Claunia.PropertyList
Assembly: plist-cil (in plist-cil.dll)
Assembly Versions: 1.13.0.0, 1.14.0.0
The number's double value.Syntax
public double ToDouble ()Returns
The value of the number as double.Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: Claunia.PropertyList
Assembly: plist-cil (in plist-cil.dll)
Assembly Versions: 1.13.0.0, 1.14.0.0
The number's int value. Note: Even though the number's type might be INTEGER it can be larger than a Java int. Use intValue() only if you are certain that it contains a number from the int range. Otherwise the value might be innaccurate.Syntax
public int ToInt ()Returns
The value of the number as int.Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: Claunia.PropertyList
Assembly: plist-cil (in plist-cil.dll)
Assembly Versions: 1.13.0.0, 1.14.0.0
The number's long value.Syntax
public long ToLong ()Returns
The value of the number as longRemarks
Documentation for this section has not yet been entered.Requirements
Namespace: Claunia.PropertyList
Assembly: plist-cil (in plist-cil.dll)
Assembly Versions: 1.13.0.0, 1.14.0.0
Returns a string that represents the current Claunia.PropertyList.NSNumber.Syntax
public override string ToString ()Returns
A string that represents the current Claunia.PropertyList.NSNumber.Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: Claunia.PropertyList
Assembly: plist-cil (in plist-cil.dll)
Assembly Versions: 1.13.0.0, 1.14.0.0