Example #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(((FirstProperty != null ? FirstProperty.GetHashCode() : 0) * 397) ^
                (SecondProperty != null ? SecondProperty.GetHashCode() : 0));
     }
 }
Example #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = FirstProperty.GetHashCode();
         hashCode = (hashCode * 397) ^ (SecondProperty != null ? SecondProperty.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ ThirdProperty.GetHashCode();
         hashCode = (hashCode * 397) ^ (FourthProperty != null ? FourthProperty.GetHashCode() : 0);
         return(hashCode);
     }
 }