Class NumberHelpers
Represents the number helpers.
Inherited Members
Namespace: Platform.Data.Triplets
Assembly: Platform.Data.Triplets.dll
Syntax
public static class NumberHelpers
Properties
| Improve this Doc View SourceLinksToNumbers
Gets or sets the links to numbers value.
Declaration
public static Dictionary<Link, long> LinksToNumbers { get; }
Property Value
| Type | Description |
|---|---|
| Dictionary<Link, Int64> |
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 SourceFromNumber(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.
|
Recreate()
Recreates.
Declaration
public static void Recreate()
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.
|