Beispiel #1
0
 /// <summary>
 /// Compares the <see cref="OrderField"/> object equality against the given target object.
 /// </summary>
 /// <param name="other">The object to be compared to the current object.</param>
 /// <returns>True if the instances are equal.</returns>
 public bool Equals(OrderField other)
 {
     return(other?.GetHashCode() == GetHashCode());
 }
Beispiel #2
0
 /// <summary>
 /// Compares the <see cref="OrderField"/> object equality against the given target object.
 /// </summary>
 /// <param name="other">The object to be compared to the current object.</param>
 /// <returns>True if the instances are equal.</returns>
 public bool Equals(OrderField other) =>
 other?.GetHashCode() == GetHashCode();