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 FileHashConstructors
Section titled “Constructors”FileHash(FileHashAlgorithm, string)
Section titled “FileHash(FileHashAlgorithm, string)”Initializes a new instance of type FileHash with specified algorithm and value.
public FileHash(FileHashAlgorithm algorithm, string value)Parameters
Section titled “Parameters”algorithmFileHashAlgorithm
The algorithm use for generating hash value.valuestring
The value of file hash.
Fields
Section titled “Fields”Represents the empty file hash. This field is read-only.
public FileHash EmptyField Value
Section titled “Field Value”Properties
Section titled “Properties”Algorithm
Section titled “Algorithm”Gets the algorithm used for generating hash value.
public FileHashAlgorithm Algorithm { get; }Property Value
Section titled “Property Value”A FileHashAlgorithm value specifies the algorithm used for generating hash value.
IsEmpty
Section titled “IsEmpty”Determines whether the current file hash is empty.
public bool IsEmpty { get; }Property Value
Section titled “Property Value”true if the file hash is empty; otherwise, false.
Gets a String representing the value of the current file hash.
public string Value { get; }Property Value
Section titled “Property Value”A String containing the hash value, or a null reference when no algorithm is used.
Methods
Section titled “Methods”Equals(FileHash)
Section titled “Equals(FileHash)”Determines whether the specified FileHash instance is equals to current file hash.
public bool Equals(FileHash other)Parameters
Section titled “Parameters”Returns
Section titled “Returns”true if the FileHash object is equals to current file hash; otherwise, false.
Equals(object)
Section titled “Equals(object)”public virtual bool Equals(object obj)Parameters
Section titled “Parameters”objobject
Returns
Section titled “Returns”GetHashCode()
Section titled “GetHashCode()”public virtual int GetHashCode()Returns
Section titled “Returns”ToString()
Section titled “ToString()”public virtual string ToString()Returns
Section titled “Returns”operator ==(FileHash, FileHash)
Section titled “operator ==(FileHash, FileHash)”Determines whether the specified FileHash instances are considered equal.
public static bool operator ==(FileHash left, FileHash right)Parameters
Section titled “Parameters”leftFileHash
The first FileHash object to compare.rightFileHash
The second FileHash object to compare.
Returns
Section titled “Returns”true if the FileHash objects are considered equal; otherwise, false.
operator !=(FileHash, FileHash)
Section titled “operator !=(FileHash, FileHash)”Determines whether the specified FileHash instances are considered different.
public static bool operator !=(FileHash left, FileHash right)Parameters
Section titled “Parameters”leftFileHash
The first FileHash object to compare.rightFileHash
The second FileHash object to compare.
Returns
Section titled “Returns”true if the FileHash objects are considered different; otherwise, false.