Class HashHelper
This class creates unique strings containing hash values.
Inheritance
System.Object
HashHelper
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.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 |
---|---|
System.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 |
---|---|---|
System.String | text | Text that needs to be hashed |
Returns
Type | Description |
---|---|
System.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<System.Object> | objectList | A list of objects |
Returns
Type | Description |
---|---|
System.Int32 | A unique hash value |