Table of Contents

Class Sha1Hash

Namespace
H.Extensions.Torrent.Provider
Assembly
H.Extensions.Torrent.dll
public sealed class Sha1Hash
Inheritance
Sha1Hash
Inherited Members
Extension Methods

Constructors

Sha1Hash(byte[])

public Sha1Hash(byte[] value)

Parameters

value byte[]

Fields

Empty

public static readonly Sha1Hash Empty

Field Value

Sha1Hash

Length

public const int Length = 20

Field Value

int

Properties

Value

public byte[] Value { get; }

Property Value

byte[]

Methods

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

Operators

operator ==(Sha1Hash, Sha1Hash)

public static bool operator ==(Sha1Hash x, Sha1Hash y)

Parameters

x Sha1Hash
y Sha1Hash

Returns

bool

implicit operator byte[](Sha1Hash)

public static implicit operator byte[](Sha1Hash hash)

Parameters

hash Sha1Hash

Returns

byte[]

operator !=(Sha1Hash, Sha1Hash)

public static bool operator !=(Sha1Hash x, Sha1Hash y)

Parameters

x Sha1Hash
y Sha1Hash

Returns

bool