Skip to content
Auto
Products

FileHash

Namespace: TagBites.IO
Assembly: TagBites.IO.dll
Product: TagBites.IO v. 2.0.0

Provides evidence about the hash value for a file.

public struct FileHash

Initializes a new instance of type FileHash with specified algorithm and value.

public FileHash(FileHashAlgorithm algorithm, string value)

Represents the empty file hash. This field is read-only.

public FileHash Empty

FileHash

Gets the algorithm used for generating hash value.

public FileHashAlgorithm Algorithm { get; }

FileHashAlgorithm

A FileHashAlgorithm value specifies the algorithm used for generating hash value.

Determines whether the current file hash is empty.

public bool IsEmpty { get; }

bool

true if the file hash is empty; otherwise, false.

Gets a String representing the value of the current file hash.

public string Value { get; }

string

A String containing the hash value, or a null reference when no algorithm is used.

Determines whether the specified FileHash instance is equals to current file hash.

public bool Equals(FileHash other)

bool

true if the FileHash object is equals to current file hash; otherwise, false.

public virtual bool Equals(object obj)

bool

public virtual int GetHashCode()

int

public virtual string ToString()

string

Determines whether the specified FileHash instances are considered equal.

public static bool operator ==(FileHash left, FileHash right)

bool

true if the FileHash objects are considered equal; otherwise, false.

Determines whether the specified FileHash instances are considered different.

public static bool operator !=(FileHash left, FileHash right)

bool

true if the FileHash objects are considered different; otherwise, false.