Class Integer
A Value representing an integer. This may hold a System.Int64's worth of data.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: IPA.Config.Data
Assembly: IPA.Loader.dll
Syntax
public sealed class Integer : Value
Constructors
| Improve this Doc View SourceInteger()
Constructs an empty Integer object.
Declaration
[Obsolete("Use the long constructor.")]
public Integer()
Integer(Int64)
Constructs a Integer object containing the provided value.
Declaration
public Integer(long value)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | value | The value to construct with. |
Properties
| Improve this Doc View SourceValue
The actual value of the Integer object.
Declaration
public long Value { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 |
Methods
| Improve this Doc View SourceAsFloat()
Coerces this Integer into a FloatingPoint.
Declaration
public FloatingPoint AsFloat()
Returns
Type | Description |
---|---|
FloatingPoint | a FloatingPoint representing the closest approximation of Value |
ToString()
Converts this Value into a human-readable format.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | the result of |