public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Title?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ (AddedBy?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ ImageUrl.GetHashCode();
         return(hashCode);
     }
 }
Ejemplo n.º 2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var result = (AddedBy != null ? AddedBy.GetHashCode() : 0);
         result = (result * 397) ^ AddedAt.GetHashCode();
         result = (result * 397) ^ (Subject != null ? Subject.GetHashCode() : 0);
         result = (result * 397) ^ (Body != null ? Body.GetHashCode() : 0);
         result = (result * 397) ^ Area.GetHashCode();
         return(result);
     }
 }