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