Exemplo n.º 1
0
 /// <summary>
 /// Determines whether the specified <see cref="System.Object"/> is equal to this instance.
 /// </summary>
 /// <param name="obj">The <see cref="System.Object"/> to compare with this instance.</param>
 /// <returns><c>true</c> if the specified <see cref="System.Object"/> is equal to this instance; otherwise, <c>false</c>.</returns>
 public override bool Equals(object obj)
 {
     if (obj is Criteria1)
     {
         var c = (Criteria1)obj;
         if (!CreateDocumentEdit.Equals(c.CreateDocumentEdit))
         {
             return(false);
         }
         if (!DocumentId.Equals(c.DocumentId))
         {
             return(false);
         }
         return(true);
     }
     return(false);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Returns a hash code for this instance.
 /// </summary>
 /// <returns>An hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.</returns>
 public override int GetHashCode()
 {
     return(string.Concat("Criteria1", CreateDocumentEdit.ToString(), DocumentId.ToString()).GetHashCode());
 }