Show / Hide Table of Contents

    Class NumberHelpers

    Represents the number helpers.

    Inheritance
    Object
    NumberHelpers
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: Platform.Data.Triplets
    Assembly: Platform.Data.Triplets.dll
    Syntax
    public static class NumberHelpers

    Properties

    | Improve this Doc View Source

    LinksToNumbers

    Gets or sets the links to numbers value.

    Declaration
    public static Dictionary<Link, long> LinksToNumbers { get; }
    Property Value
    Type Description
    Dictionary<Link, Int64>
    | Improve this Doc View Source

    NumbersToLinks

    Gets or sets the numbers to links value.

    Declaration
    public static Link[] NumbersToLinks { get; }
    Property Value
    Type Description
    Link[]

    Methods

    | Improve this Doc View Source

    FromNumber(Int64)

    Creates the number using the specified number.

    Declaration
    public static Link FromNumber(long number)
    Parameters
    Type Name Description
    Int64 number

    The number.

    Returns
    Type Description
    Link

    The sum.

    Exceptions
    Type Condition
    NotSupportedException

    Negative numbers are not supported yet.

    | Improve this Doc View Source

    Recreate()

    Recreates.

    Declaration
    public static void Recreate()
    | Improve this Doc View Source

    ToNumber(Link)

    Returns the number using the specified link.

    Declaration
    public static long ToNumber(Link link)
    Parameters
    Type Name Description
    Link link

    The link.

    Returns
    Type Description
    Int64

    The long

    Exceptions
    Type Condition
    ArgumentOutOfRangeException

    Specified link is not a number.

    • Improve this Doc
    • View Source
    Back to top Generated by DocFX