Пример #1
0
 public override int GetHashCode()
 {
     return(Hash.Combine(ValueSymbol.GetHashCode(),
                         Hash.Combine(ValueExpression.GetHashCode(),
                                      Hash.Combine(ValueDiagnostics.GetHashCode(),
                                                   Hash.Combine(TypeExpression.GetHashCode(), TypeDiagnostics.GetHashCode())))));
 }
Пример #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = ValueExpression.GetHashCode();
         hashCode = (hashCode * 397) ^ FromExpression.GetHashCode();
         hashCode = (hashCode * 397) ^ ForExpression.GetHashCode();
         return(hashCode);
     }
 }