Example #1
0
 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);
 }
Example #2
0
 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));
 }