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); } }
int ComputeHashCode() { return(HashCode.Compute( Negate.GetHashCode(), CharacterClass.GetHashCode())); }