Show / Hide Table of Contents

Class HashDigestExtensions

Augments types to have some shortcut methods dealing with HashDigest<T> values.

Inheritance
Object
HashDigestExtensions
Namespace: Libplanet
Assembly: Libplanet.dll
Syntax
public static class HashDigestExtensions : object

Methods

| Improve this Doc View Source

ToHashDigest<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 which corresponds to a digest.

See Also
FromString(String)
ToString()
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2021 Planetarium