YamlDotNet.RepresentationModel.YamlNode.CombineHashCodes C# (CSharp) Méthode

CombineHashCodes() protected static méthode

Combines two hash codes into one.
protected static CombineHashCodes ( int h1, int h2 ) : int
h1 int
h2 int
Résultat int
        protected static int CombineHashCodes(int h1, int h2)
        {
            return unchecked(((h1 << 5) + h1) ^ h2);
        }

Usage Example

Exemple #1
0
 public override int GetHashCode()
 {
     return(YamlNode.CombineHashCodes(base.GetHashCode(), YamlNode.GetHashCode(Value)));
 }