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); } }
protected bool Equals(NameDeclarationNodeBase other) { return(IsConstant.Equals(other.IsConstant) && string.Equals(Name, other.Name) && Equals(Value, other.Value)); }