Class LinkConverter
Represents the link converter.
Inherited Members
Namespace: Platform.Data.Triplets
Assembly: Platform.Data.Triplets.dll
Syntax
public static class LinkConverterMethods
| Improve this Doc View SourceFromChar(Char)
Creates the char using the specified c.
Declaration
public static Link FromChar(char c)Parameters
| Type | Name | Description | 
|---|---|---|
| Char | c | The . 
 | 
Returns
| Type | Description | 
|---|---|
| Link | The link 
 | 
FromChars(Char[])
Creates the chars using the specified chars.
Declaration
public static Link FromChars(char[] chars)Parameters
| Type | Name | Description | 
|---|---|---|
| Char[] | chars | The chars. 
 | 
Returns
| Type | Description | 
|---|---|
| Link | The link 
 | 
FromChars(Char[], Int32, Int32)
Creates the chars using the specified chars.
Declaration
public static Link FromChars(char[] chars, int takeFrom, int takeUntil)Parameters
| Type | Name | Description | 
|---|---|---|
| Char[] | chars | The chars. 
 | 
| Int32 | takeFrom | The take from. 
 | 
| Int32 | takeUntil | The take until. 
 | 
Returns
| Type | Description | 
|---|---|
| Link | The link 
 | 
FromChars(String)
Creates the chars using the specified str.
Declaration
public static Link FromChars(string str)Parameters
| Type | Name | Description | 
|---|---|---|
| String | str | The str. 
 | 
Returns
| Type | Description | 
|---|---|
| Link | The link 
 | 
FromList(Link[])
Creates the list using the specified links.
Declaration
public static Link FromList(Link[] links)Parameters
| Type | Name | Description | 
|---|---|---|
| Link[] | links | The links. 
 | 
Returns
| Type | Description | 
|---|---|
| Link | The element. 
 | 
FromList(List<Link>)
Creates the list using the specified links.
Declaration
public static Link FromList(List<Link> links)Parameters
| Type | Name | Description | 
|---|---|---|
| List<Link> | links | The links. 
 | 
Returns
| Type | Description | 
|---|---|
| Link | The element. 
 | 
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 link 
 | 
FromNumbers(Boolean[])
Creates the numbers using the specified numbers.
Declaration
public static Link FromNumbers(bool[] numbers)Parameters
| Type | Name | Description | 
|---|---|---|
| Boolean[] | numbers | The numbers. 
 | 
Returns
| Type | Description | 
|---|---|
| Link | The link 
 | 
FromNumbers(Boolean[], Int32, Int32)
Creates the numbers using the specified numbers.
Declaration
public static Link FromNumbers(bool[] numbers, int takeFrom, int takeUntil)Parameters
| Type | Name | Description | 
|---|---|---|
| Boolean[] | numbers | The numbers. 
 | 
| Int32 | takeFrom | The take from. 
 | 
| Int32 | takeUntil | The take until. 
 | 
Returns
| Type | Description | 
|---|---|
| Link | The link 
 | 
FromNumbers(Byte[])
Creates the numbers using the specified numbers.
Declaration
public static Link FromNumbers(byte[] numbers)Parameters
| Type | Name | Description | 
|---|---|---|
| Byte[] | numbers | The numbers. 
 | 
Returns
| Type | Description | 
|---|---|
| Link | The link 
 | 
FromNumbers(Byte[], Int32, Int32)
Creates the numbers using the specified numbers.
Declaration
public static Link FromNumbers(byte[] numbers, int takeFrom, int takeUntil)Parameters
| Type | Name | Description | 
|---|---|---|
| Byte[] | numbers | The numbers. 
 | 
| Int32 | takeFrom | The take from. 
 | 
| Int32 | takeUntil | The take until. 
 | 
Returns
| Type | Description | 
|---|---|
| Link | The link 
 | 
FromNumbers(Int64[])
Creates the numbers using the specified numbers.
Declaration
public static Link FromNumbers(long[] numbers)Parameters
| Type | Name | Description | 
|---|---|---|
| Int64[] | numbers | The numbers. 
 | 
Returns
| Type | Description | 
|---|---|
| Link | The link 
 | 
FromNumbers(Int64[], Int32, Int32)
Creates the numbers using the specified numbers.
Declaration
public static Link FromNumbers(long[] numbers, int takeFrom, int takeUntil)Parameters
| Type | Name | Description | 
|---|---|---|
| Int64[] | numbers | The numbers. 
 | 
| Int32 | takeFrom | The take from. 
 | 
| Int32 | takeUntil | The take until. 
 | 
Returns
| Type | Description | 
|---|---|
| Link | The link 
 | 
FromNumbers(UInt16[])
Creates the numbers using the specified numbers.
Declaration
public static Link FromNumbers(ushort[] numbers)Parameters
| Type | Name | Description | 
|---|---|---|
| UInt16[] | numbers | The numbers. 
 | 
Returns
| Type | Description | 
|---|---|
| Link | The link 
 | 
FromNumbers(UInt16[], Int32, Int32)
Creates the numbers using the specified numbers.
Declaration
public static Link FromNumbers(ushort[] numbers, int takeFrom, int takeUntil)Parameters
| Type | Name | Description | 
|---|---|---|
| UInt16[] | numbers | The numbers. 
 | 
| Int32 | takeFrom | The take from. 
 | 
| Int32 | takeUntil | The take until. 
 | 
Returns
| Type | Description | 
|---|---|
| Link | The link 
 | 
FromNumbers(UInt32[])
Creates the numbers using the specified numbers.
Declaration
public static Link FromNumbers(uint[] numbers)Parameters
| Type | Name | Description | 
|---|---|---|
| UInt32[] | numbers | The numbers. 
 | 
Returns
| Type | Description | 
|---|---|
| Link | The link 
 | 
FromNumbers(UInt32[], Int32, Int32)
Creates the numbers using the specified numbers.
Declaration
public static Link FromNumbers(uint[] numbers, int takeFrom, int takeUntil)Parameters
| Type | Name | Description | 
|---|---|---|
| UInt32[] | numbers | The numbers. 
 | 
| Int32 | takeFrom | The take from. 
 | 
| Int32 | takeUntil | The take until. 
 | 
Returns
| Type | Description | 
|---|---|
| Link | The link 
 | 
FromObjectsToSequence<T>(T[], Func<T, Link>)
Creates the objects to sequence using the specified objects.
Declaration
public static Link FromObjectsToSequence<T>(T[] objects, Func<T, Link> converter)Parameters
| Type | Name | Description | 
|---|---|---|
| T[] | objects | The objects. 
 | 
| Func<T, Link> | converter | The converter. 
 | 
Returns
| Type | Description | 
|---|---|
| Link | The link 
 | 
Type Parameters
| Name | Description | 
|---|---|
| T | The . 
 | 
FromObjectsToSequence<T>(T[], Int32, Int32, Func<T, Link>)
Creates the objects to sequence using the specified objects.
Declaration
public static Link FromObjectsToSequence<T>(T[] objects, int takeFrom, int takeUntil, Func<T, Link> converter)Parameters
| Type | Name | Description | 
|---|---|---|
| T[] | objects | The objects. 
 | 
| Int32 | takeFrom | The take from. 
 | 
| Int32 | takeUntil | The take until. 
 | 
| Func<T, Link> | converter | The converter. 
 | 
Returns
| Type | Description | 
|---|---|
| Link | The link 
 | 
Type Parameters
| Name | Description | 
|---|---|
| T | The . 
 | 
Exceptions
| Type | Condition | 
|---|---|
| ArgumentOutOfRangeException | Нельзя преобразовать пустой список к связям. 
 | 
FromString(String)
Creates the string using the specified str.
Declaration
public static Link FromString(string str)Parameters
| Type | Name | Description | 
|---|---|---|
| String | str | The str. 
 | 
Returns
| Type | Description | 
|---|---|
| Link | The str link. 
 | 
ToChar(Link)
Returns the char using the specified char link.
Declaration
public static char ToChar(Link charLink)Parameters
| Type | Name | Description | 
|---|---|---|
| Link | charLink | The char link. 
 | 
Returns
| Type | Description | 
|---|---|
| Char | The char 
 | 
ToList(Link)
Returns the list using the specified link.
Declaration
public static List<Link> ToList(Link link)Parameters
| Type | Name | Description | 
|---|---|---|
| Link | link | The link. 
 | 
Returns
| Type | Description | 
|---|---|
| List<Link> | The list. 
 | 
ToNumber(Link)
Returns the number using the specified number.
Declaration
public static long ToNumber(Link number)Parameters
| Type | Name | Description | 
|---|---|---|
| Link | number | The number. 
 | 
Returns
| Type | Description | 
|---|---|
| Int64 | The long 
 | 
ToString(Link)
Returns the string using the specified link.
Declaration
public static string ToString(Link link)Parameters
| Type | Name | Description | 
|---|---|---|
| Link | link | The link. 
 | 
Returns
| Type | Description | 
|---|---|
| String | The string 
 | 
Exceptions
| Type | Condition | 
|---|---|
| ArgumentOutOfRangeException | Specified link is not a string. 
 | 
ToString(List<Link>)
Returns the string using the specified char links.
Declaration
public static string ToString(List<Link> charLinks)Parameters
| Type | Name | Description | 
|---|---|---|
| List<Link> | charLinks | The char links. 
 | 
Returns
| Type | Description | 
|---|---|
| String | The string 
 |