public bool Equals(Note other) { return(other != null && Id == other.Id && Title == other.Title && Content == other.Content && EqualityComparer <int?> .Default.Equals(CategoryId, other.CategoryId) && EqualityComparer <string[]> .Default.Equals(Keywords, other.Keywords) && CreationTime.Equals(other.CreationTime) && ModificationTime.Equals(other.ModificationTime) && UserId == other.UserId); }
public bool Equals(Node other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(Equals(NodeRef, other.NodeRef) && IsDeleted == other.IsDeleted && CreationTime.Equals(other.CreationTime) && ModificationTime.Equals(other.ModificationTime) && DictionaryEqualityComparer.Equals(Properties, other.Properties)); }