示例#1
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = IsConstant.GetHashCode();
         hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Value != null ? Value.GetHashCode() : 0);
         return(hashCode);
     }
 }
示例#2
0
 protected bool Equals(NameDeclarationNodeBase other)
 {
     return(IsConstant.Equals(other.IsConstant) && string.Equals(Name, other.Name) && Equals(Value, other.Value));
 }