Пример #1
0
 /// <summary>
 /// Returns a value indicating whether this instance is equal to the specified <see cref="NzbFile"/> value.
 /// </summary>
 /// <param name="other">A <see cref="NzbFile"/> object to compare to this instance.</param>
 /// <returns>true if <paramref name="other" /> has the same value as this instance; otherwise, false.</returns>
 public bool Equals(NzbFile other)
 {
     if ((object)other == null)
     {
         return(false);
     }
     return
         (Poster.Equals(other.Poster) &&
          Subject.Equals(other.Subject) &&
          FileName.Equals(other.FileName) &&
          Date.Equals(other.Date) &&
          Groups.Equals(other.Groups) &&
          Size.Equals(other.Size) &&
          Segments.SequenceEqual(other.Segments));
 }