Class InputHashHelper
This class provides helper function to calculate stable hashcode for given Input,
which is valid beyond application lifecycle.
Inheritance
System.Object
InputHashHelper
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: Mars.Common
Assembly: Mars.Common.dll
Syntax
public static class InputHashHelper
Methods
| Improve this Doc View SourceComputeHash(IEnumerable<Input>)
Computes a combined hash from a collection of Inputs
Declaration
public static int ComputeHash(IEnumerable<Input> imports)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<Input> | imports | All sources which are relevant together. |
Returns
Type | Description |
---|---|
System.Int32 | Return string hash. |
GetHash(Input)
This class provides helper function to calculate stable hashcode for given Input,
which is valid beyond application lifecycle.
Declaration
public static string GetHash(Input import)
Parameters
Type | Name | Description |
---|---|---|
Input | import |
Returns
Type | Description |
---|---|
System.String |