Search Results for

    Show / Hide Table of Contents

    Class Integer

    A Value representing an integer. This may hold a System.Int64's worth of data.

    Inheritance
    System.Object
    Value
    Integer
    Inherited Members
    Value.Null()
    Value.List()
    Value.Map()
    Value.From(String)
    Value.Text(String)
    Value.From(Int64)
    Value.Integer(Int64)
    Value.From(Decimal)
    Value.Float(Decimal)
    Value.From(Boolean)
    Value.Bool(Boolean)
    Value.From(IEnumerable<Value>)
    Value.From(IDictionary<String, Value>)
    Value.From(IEnumerable<KeyValuePair<String, Value>>)
    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 Source

    Integer()

    Constructs an empty Integer object.

    Declaration
    [Obsolete("Use the long constructor.")]
    public Integer()
    | Improve this Doc View Source

    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 Source

    Value

    The actual value of the Integer object.

    Declaration
    public long Value { get; set; }
    Property Value
    Type Description
    System.Int64

    Methods

    | Improve this Doc View Source

    AsFloat()

    Coerces this Integer into a FloatingPoint.

    Declaration
    public FloatingPoint AsFloat()
    Returns
    Type Description
    FloatingPoint

    a FloatingPoint representing the closest approximation of Value

    | Improve this Doc View Source

    ToString()

    Converts this Value into a human-readable format.

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    the result of Value.ToString()

    Overrides
    Value.ToString()

    Extension Methods

    ReflectionUtil.SetField<T, U>(T, String, U)
    ReflectionUtil.GetField<U, T>(T, String)
    ReflectionUtil.SetProperty<T, U>(T, String, U)
    ReflectionUtil.GetProperty<U, T>(T, String)
    ReflectionUtil.InvokeMethod<U, T>(T, String, Object[])
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX