Class HashHelper
This class creates unique strings containing hash values.
Inheritance
object
HashHelper
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: ETLBox.Helper
Assembly: ETLBox.dll
Syntax
public static class HashHelper
Methods
CreateChar40Hash(ILoggableTask)
Creates a unique hash string from a loggable task
Declaration
public static string CreateChar40Hash(ILoggableTask task)
Parameters
Type | Name | Description |
---|---|---|
ILoggableTask | task | The ETLBox loggable task |
Returns
Type | Description |
---|---|
string | A unique readable hash string with 40 character |
CreateChar40Hash(string)
Creates a 40 character unique hash string
Declaration
public static string CreateChar40Hash(string text)
Parameters
Type | Name | Description |
---|---|---|
string | text | Text that needs to be hashed |
Returns
Type | Description |
---|---|
string | A unique readable hash string with 40 characters |
HashSum(IEnumerable<object>)
Addition of the hash values for a list of object
Declaration
public static int HashSum(IEnumerable<object> objectList)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<T><object> | objectList | A list of objects |
Returns
Type | Description |
---|---|
int | A unique hash value |