YamlDotNet.RepresentationModel.YamlNode.CombineHashCodes C# (CSharp) Method

CombineHashCodes() protected static method

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

Usage Example

コード例 #1
0
 public override int GetHashCode()
 {
     return(YamlNode.CombineHashCodes(base.GetHashCode(), YamlNode.GetHashCode(Value)));
 }