Пример #1
0
 public bool Equals(CompatDifference other) => other != null &&
 (object.ReferenceEquals(this, other) ||
  (DiagnosticId.Equals(other.DiagnosticId, StringComparison.InvariantCultureIgnoreCase) &
   Type.Equals(other.Type) &
   ReferenceId.Equals(other.ReferenceId, StringComparison.InvariantCultureIgnoreCase)));
Пример #2
0
 public bool Equals(CompatDifference other) =>
 Type == other.Type &&
 DiagnosticId.Equals(other.DiagnosticId, StringComparison.OrdinalIgnoreCase) &&
 ReferenceId.Equals(other.ReferenceId, StringComparison.OrdinalIgnoreCase) &&
 Message.Equals(other.Message, StringComparison.OrdinalIgnoreCase);