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
TypeNameDescription
ILoggableTasktask

The ETLBox loggable task

Returns
TypeDescription
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
TypeNameDescription
System.Stringtext

Text that needs to be hashed

Returns
TypeDescription
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
TypeNameDescription
System.Collections.Generic.IEnumerable<System.Object>objectList

A list of objects

Returns
TypeDescription
System.Int32

A unique hash value