public void SetSteps(IEnumerable<IStep> steps) { this.steps = new List<IStep>(steps); OatHash hash = new OatHash(); foreach (var step in this.steps) hash.Hash(step.GetHashCode()); hashCode = hash.HashCode; }
public void SetSteps(IEnumerable <IStep> steps) { this.steps = new List <IStep>(steps); OatHash hash = new OatHash(); foreach (var step in this.steps) { hash.Hash(step.GetHashCode()); } hashCode = hash.HashCode; }
public static int CalcHashCode(InputWrapper[] inputs) { OatHash hash = new OatHash(); if (inputs == null) { return(0); } else { foreach (var input in inputs) { hash.Hash(input.GetHashCode()); } } return(hash.HashCode); }