Class Hash<T>
Inheritance
System.Object
Hash<T>
Implements
System.IEquatable<T>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: LLBModdingLib.dll
Syntax
public abstract class Hash<T> : IEquatable<T>
Type Parameters
Constructors
Hash()
Declaration
Hash(Byte[])
Declaration
protected Hash(byte[] bytes)
Parameters
| Type |
Name |
Description |
| System.Byte[] |
bytes |
|
Fields
HashLength
Declaration
protected static int HashLength
Field Value
| Type |
Description |
| System.Int32 |
|
Properties
Bytes
Declaration
public byte[] Bytes { get; protected set; }
Property Value
| Type |
Description |
| System.Byte[] |
|
Methods
Equals(T)
Declaration
public abstract bool Equals(T other)
Parameters
| Type |
Name |
Description |
| T |
other |
|
Returns
| Type |
Description |
| System.Boolean |
|
Equals(Hash<T>)
Declaration
public bool Equals(Hash<T> other)
Parameters
| Type |
Name |
Description |
| Hash<T> |
other |
|
Returns
| Type |
Description |
| System.Boolean |
|
Equals(Byte[])
Declaration
public bool Equals(byte[] other)
Parameters
| Type |
Name |
Description |
| System.Byte[] |
other |
|
Returns
| Type |
Description |
| System.Boolean |
|
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
| Type |
Name |
Description |
| System.Object |
obj |
|
Returns
| Type |
Description |
| System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
GetHashCode()
Declaration
public override int GetHashCode()
Returns
| Type |
Description |
| System.Int32 |
|
Overrides
System.Object.GetHashCode()
ToString()
Returns a System.String that contains the hex representation of the current Hash<T>.
Declaration
public override string ToString()
Returns
| Type |
Description |
| System.String |
A System.String that represents the current Hash<T>.
|
Overrides
System.Object.ToString()
Operators
Equality(Hash<T>, Hash<T>)
Declaration
public static bool operator ==(Hash<T> hash1, Hash<T> hash2)
Parameters
| Type |
Name |
Description |
| Hash<T> |
hash1 |
|
| Hash<T> |
hash2 |
|
Returns
| Type |
Description |
| System.Boolean |
|
Equality(Hash<T>, Byte[])
Declaration
public static bool operator ==(Hash<T> hash1, byte[] hash2)
Parameters
| Type |
Name |
Description |
| Hash<T> |
hash1 |
|
| System.Byte[] |
hash2 |
|
Returns
| Type |
Description |
| System.Boolean |
|
Equality(Byte[], Hash<T>)
Declaration
public static bool operator ==(byte[] hash1, Hash<T> hash2)
Parameters
| Type |
Name |
Description |
| System.Byte[] |
hash1 |
|
| Hash<T> |
hash2 |
|
Returns
| Type |
Description |
| System.Boolean |
|
Explicit(Hash<T> to Byte[])
Declaration
public static explicit operator byte[](Hash<T> a)
Parameters
| Type |
Name |
Description |
| Hash<T> |
a |
|
Returns
| Type |
Description |
| System.Byte[] |
|
Inequality(Hash<T>, Hash<T>)
Declaration
public static bool operator !=(Hash<T> hash1, Hash<T> hash2)
Parameters
| Type |
Name |
Description |
| Hash<T> |
hash1 |
|
| Hash<T> |
hash2 |
|
Returns
| Type |
Description |
| System.Boolean |
|
Inequality(Hash<T>, Byte[])
Declaration
public static bool operator !=(Hash<T> hash1, byte[] hash2)
Parameters
| Type |
Name |
Description |
| Hash<T> |
hash1 |
|
| System.Byte[] |
hash2 |
|
Returns
| Type |
Description |
| System.Boolean |
|
Inequality(Byte[], Hash<T>)
Declaration
public static bool operator !=(byte[] hash1, Hash<T> hash2)
Parameters
| Type |
Name |
Description |
| System.Byte[] |
hash1 |
|
| Hash<T> |
hash2 |
|
Returns
| Type |
Description |
| System.Boolean |
|
Implements
System.IEquatable<T>