示例#1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Negate.GetHashCode();
         hashCode = (hashCode * 397) ^ (Expression != null ? Expression.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Lower != null ? Lower.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Upper != null ? Upper.GetHashCode() : 0);
         return(hashCode);
     }
 }
示例#2
0
 int ComputeHashCode()
 {
     return(HashCode.Compute(
                Negate.GetHashCode(),
                CharacterClass.GetHashCode()));
 }