Exemple #1
0
 /// <summary>Determines whether the specified object is equal to the current object</summary>
 /// <param name="obj">The object to compare with the current object</param>
 /// <returns>true if the specified object is equal to the current object; otherwise, false</returns>
 public override bool Equals(Object obj)
 {
      if (!(obj is SeriesItem))
          return false;
      if (obj == this)
          return true;
 
      SeriesItem that = (SeriesItem) obj;
      return new EqualsBuilder<SeriesItem>(this, that)
         .With(m => m.ItemType)
         .With(m => m.ItemId)
         .With(m => m.Time)
         .Equals();
 }
        /// <summary>Determines whether the specified object is equal to the current object</summary>
        /// <param name="obj">The object to compare with the current object</param>
        /// <returns>true if the specified object is equal to the current object; otherwise, false</returns>
        public override bool Equals(Object obj)
        {
            if (!(obj is SeriesItem))
            {
                return(false);
            }
            if (obj == this)
            {
                return(true);
            }

            SeriesItem that = (SeriesItem)obj;

            return(new EqualsBuilder <SeriesItem>(this, that)
                   .With(m => m.ItemType)
                   .With(m => m.ItemId)
                   .With(m => m.Time)
                   .Equals());
        }