Class HashDigestExtension
Augments types to have some shortcut methods dealing with HashDigest<T> values.
Namespace: Libplanet
Assembly: Libplanet.dll
Syntax
public static class HashDigestExtension : object
Methods
| Improve this Doc View SourceToHashDigest<T>(String)
Converts a given hexadecimal representation of a digest into a HashDigest<T> object.
This is a shortcut of FromString(String) method.
This is an inverse function of ToString() method.
Declaration
public static HashDigest<T> ToHashDigest<T>(this string hexDigest)
where T : HashAlgorithm
Parameters
Type | Name | Description |
---|---|---|
String | hexDigest | A hexadecimal representation of a HashDigest<T>. |
Returns
Type | Description |
---|---|
HashDigest<T> | A corresponding HashDigest<T> value. |
Type Parameters
Name | Description |
---|---|
T | A |