コード例 #1
0
 public bool Equals([CanBeNull] CitpElementLibraryUpdatedInformation other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(LibraryType == other.LibraryType &&
            LibraryNumber == other.LibraryNumber &&
            LibraryId.Equals(other.LibraryId) &&
            UpdateFlags == other.UpdateFlags &&
            SequenceComparison.SequenceEqual(AffectedElements, other.AffectedElements) &&
            SequenceComparison.SequenceEqual(AffectedLibraries, other.AffectedLibraries));
 }
コード例 #2
0
        public override bool Equals(object obj)
        {
            if (obj == null || GetType() != obj.GetType())
            {
                return(false);
            }

            var other = (BookSearchResult)obj;

            return(LibraryId.Equals(other.LibraryId) &&
                   LibraryName.Equals(other.LibraryName) &&
                   LibraryPicture.Equals(other.LibraryPicture) &&
                   Title.Equals(other.Title) &&
                   Author.Equals(other.Author) &&
                   PublishYear.Equals(other.PublishYear) &&
                   Isbn.Equals(other.Isbn));
        }
コード例 #3
0
 public bool Equals(MsexId other)
 {
     return(LibraryId.Equals(other.LibraryId) || LibraryNumber == other.LibraryNumber);
 }