Class HashAlgorithmTable
Inherited Members
Namespace: Libplanet.Blocks
Assembly: Libplanet.dll
Syntax
public static class HashAlgorithmTable
Methods
| Improve this Doc View SourceToHashAlgorithmGetter(IEnumerable<KeyValuePair<Int64, HashAlgorithmType>>)
Creates a HashAlgorithmGetter delegate from a table
.
Declaration
public static HashAlgorithmGetter ToHashAlgorithmGetter(this IEnumerable<KeyValuePair<long, HashAlgorithmType>> table)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<KeyValuePair<Int64, HashAlgorithmType>> | table | A table with block index offsets and their corresponding
HashAlgorithmType. For example, |
Returns
Type | Description |
---|---|
HashAlgorithmGetter | A corresponding HashAlgorithmGetter. |
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown when |