public override int GetHashCode() { unchecked { int hashCode = (Value != null ? Value.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Label != null ? Label.GetHashCode() : 0); hashCode = (hashCode * 397) ^ LabelColor.GetHashCode(); hashCode = (hashCode * 397) ^ CanEdit.GetHashCode(); hashCode = (hashCode * 397) ^ CanDelete.GetHashCode(); hashCode = (hashCode * 397) ^ Highlight.GetHashCode(); return(hashCode); } }
public bool Equals(ToolbarEntry other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(String.Equals(Value, other.Value) && String.Equals(Label, other.Label) && LabelColor.Equals(other.LabelColor) && CanEdit.Equals(other.CanEdit) && CanDelete.Equals(other.CanDelete) && Highlight.Equals(other.Highlight)); }