Exemple #1
0
        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;
        }
Exemple #2
0
        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;
        }
Exemple #3
0
        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);
        }