コード例 #1
0
ファイル: CompatDifference.cs プロジェクト: nohwnd/sdk
 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
ファイル: CompatDifference.cs プロジェクト: safern/apicompat
 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);