public override int GetHashCode() { int hashIndentTitle = Title == null ? 0 : Title.GetHashCode(); int hashIndentId = IndentId.GetHashCode(); return(hashIndentTitle ^ hashIndentId); }
public bool Equals(Indent other) { if (Object.ReferenceEquals(other, null)) { return(false); } if (Object.ReferenceEquals(this, other)) { return(true); } return(IndentId.Equals(other.IndentId) && Title.Equals(other.Title)); }