Ejemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Owner?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ CreatedUtc.GetHashCode();
         hashCode = (hashCode * 397) ^ ModifiedUtc.GetHashCode();
         hashCode = (hashCode * 397) ^ PublishedUtc.GetHashCode();
         hashCode = (hashCode * 397) ^ Container;
         return(hashCode);
     }
 }
Ejemplo n.º 2
0
        public bool Equals(Common other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }

            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return(string.Equals(Owner, other.Owner) &&
                   CreatedUtc.Equals(other.CreatedUtc) &&
                   ModifiedUtc.Equals(other.ModifiedUtc) &&
                   PublishedUtc.Equals(other.PublishedUtc) &&
                   Container == other.Container);
        }