Implemented interface member:
method
Equals
System.Collections.Generic.IEqualityComparer<T>.Equals(T, T)
30 overrides of Equals
illink (2)
installer.tasks (1)
StaticFileRegeneration\TpnSection.cs (1)
13public override bool Equals(TpnSection x, TpnSection y) =>
Microsoft.CodeAnalysis (3)
CodeGen\PrivateImplementationDetails.cs (2)
563public override bool Equals((ImmutableArray<byte> Data, ushort Value) x, (ImmutableArray<byte> Data, ushort Value) y) => 577public override bool Equals((ImmutableArray<ConstantValue> Constants, ushort Value) x, (ImmutableArray<ConstantValue> Constants, ushort Value) y)
SwitchConstantValueHelper.cs (1)
99public override bool Equals(object? first, object? second)
Microsoft.CodeAnalysis.Analyzers (1)
src\roslyn\src\Dependencies\Contracts\EqualityComparerExtensions.cs (1)
49public override bool Equals(T? x, T? y) =>
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\roslyn\src\Dependencies\Contracts\EqualityComparerExtensions.cs (1)
49public override bool Equals(T? x, T? y) =>
Microsoft.CodeAnalysis.CodeStyle (1)
src\roslyn\src\Dependencies\Contracts\EqualityComparerExtensions.cs (1)
49public override bool Equals(T? x, T? y) =>
Microsoft.CodeAnalysis.CSharp (4)
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (1)
3523public override bool Equals(TypeWithAnnotations x, TypeWithAnnotations y)
Errors\SameDiagnosticComparer.cs (1)
13public override bool Equals(Diagnostic? x, Diagnostic? y) => x is null ? y is null : x.Equals(y);
Symbols\SymbolEqualityComparer.cs (1)
67public override bool Equals(Symbol x, Symbol y)
Symbols\TypeWithAnnotations.cs (1)
411public override bool Equals(TypeWithAnnotations x, TypeWithAnnotations y)
Microsoft.CodeAnalysis.Extensions.Package (1)
src\roslyn\src\Dependencies\Contracts\EqualityComparerExtensions.cs (1)
49public override bool Equals(T? x, T? y) =>
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\roslyn\src\Dependencies\Contracts\EqualityComparerExtensions.cs (1)
49public override bool Equals(T? x, T? y) =>
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\Source\SourceMemberContainerTypeSymbol.vb (1)
4080Public Overrides Function Equals(type1 As TypeSymbol, type2 As TypeSymbol) As Boolean
Microsoft.DotNet.Build.Tasks.Packaging (1)
GenerateNuSpec.cs (1)
281public override bool Equals(FrameworkAssemblyReference x, FrameworkAssemblyReference y)
Microsoft.ML.TimeSeries (1)
RootCauseAnalyzer.cs (1)
806public override bool Equals(Dictionary<string, object> x, Dictionary<string, object> y)
Mono.Cecil (2)
Mono.Cecil\MethodReferenceComparer.cs (1)
13 public override bool Equals (MethodReference x, MethodReference y)
Mono.Cecil\TypeReferenceEqualityComparer.cs (1)
6 public override bool Equals (TypeReference x, TypeReference y)
Roslyn.Diagnostics.Analyzers (1)
src\roslyn\src\Dependencies\Contracts\EqualityComparerExtensions.cs (1)
49public override bool Equals(T? x, T? y) =>
System.Private.CoreLib (9)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\EqualityComparer.cs (6)
120public override bool Equals(T? x, T? y) => 143public override bool Equals(T? x, T? y) 183public override bool Equals(T? x, T? y) 212public override bool Equals(T? x, T? y) 241public override bool Equals(byte x, byte y) => 321public override bool Equals(string? x, string? y) => string.Equals(x, y);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\RandomizedStringEqualityComparer.cs (2)
60public override bool Equals(string? x, string? y) => string.Equals(x, y); 105public override bool Equals(string? x, string? y) => string.Equals(x, y, StringComparison.OrdinalIgnoreCase);
System\Collections\Generic\EqualityComparer.NativeAot.cs (1)
38public sealed override bool Equals(T x, T y)
754 references to Equals
aspire (4)
Certificates\CertificateGeneration\MacOSCertificateManager.cs (1)
475EqualityComparer<string>.Default.Equals(x?.Thumbprint, y?.Thumbprint);
src\Shared\CircularBuffer.cs (3)
134CountOccurrences(removedItem) == removedItemCount - 1 + (EqualityComparer<T>.Default.Equals(item, removedItem) ? 1 : 0), 214CountOccurrences(removedItem) == removedItemCount - 1 + (EqualityComparer<T>.Default.Equals(item, removedItem) ? 1 : 0), 289if (EqualityComparer<T>.Default.Equals(existingItem, item))
Aspire.Dashboard (19)
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\common\v1\Common.cs (1)
334if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleValue, other.DoubleValue)) return false;
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\metrics\v1\Metrics.cs (12)
3128if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(AsDouble, other.AsDouble)) return false; 3719if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Sum, other.Sum)) return false; 3724if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Min, other.Min)) return false; 3725if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Max, other.Max)) return false; 4431if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Sum, other.Sum)) return false; 4438if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Min, other.Min)) return false; 4439if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Max, other.Max)) return false; 4440if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ZeroThreshold, other.ZeroThreshold)) return false; 5315if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Sum, other.Sum)) return false; 5668if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Quantile, other.Quantile)) return false; 5669if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Value, other.Value)) return false; 6044if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(AsDouble, other.AsDouble)) return false;
Model\SelectViewModel.cs (1)
29return EqualityComparer<T>.Default.Equals(Id, other.Id);
Model\StructuredLogsViewModel.cs (1)
70if (EqualityComparer<T>.Default.Equals(field, value))
Model\TracesViewModel.cs (1)
68if (EqualityComparer<T>.Default.Equals(field, value))
src\Shared\CircularBuffer.cs (3)
134CountOccurrences(removedItem) == removedItemCount - 1 + (EqualityComparer<T>.Default.Equals(item, removedItem) ? 1 : 0), 214CountOccurrences(removedItem) == removedItemCount - 1 + (EqualityComparer<T>.Default.Equals(item, removedItem) ? 1 : 0), 289if (EqualityComparer<T>.Default.Equals(existingItem, item))
Aspire.Hosting (3)
src\Shared\CircularBuffer.cs (3)
134CountOccurrences(removedItem) == removedItemCount - 1 + (EqualityComparer<T>.Default.Equals(item, removedItem) ? 1 : 0), 214CountOccurrences(removedItem) == removedItemCount - 1 + (EqualityComparer<T>.Default.Equals(item, removedItem) ? 1 : 0), 289if (EqualityComparer<T>.Default.Equals(existingItem, item))
dotnet-aot (4)
parent\dotnet\ToolManifest\ToolManifestPackage.cs (1)
40EqualityComparer<NuGetVersion>.Default.Equals(Version, other.Version) &&
parent\dotnet\ToolPackage\RestoredCommandIdentifier.cs (3)
32EqualityComparer<NuGetVersion>.Default.Equals(Version, other.Version) && 33EqualityComparer<NuGetFramework>.Default.Equals(TargetFramework, other.TargetFramework) && 55return EqualityComparer<RestoredCommandIdentifier>.Default.Equals(id1, id2);
dotnet-dev-certs (1)
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
417EqualityComparer<string>.Default.Equals(x?.Thumbprint, y?.Thumbprint);
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedKeyedCollection.cs (1)
167return EqualityComparer<T>.Default.Equals(item, itemInDict);
GenerateDocumentationAndConfigFiles (28)
src\roslyn\src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
266? EqualityComparer<V>.Default.Equals(item, (V)_value)
src\roslyn\src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
51if (defaultComparer.Equals(yi, xi))
src\roslyn\src\Dependencies\Collections\OneOrMany.cs (3)
112=> HasOneItem ? EqualityComparer<T>.Default.Equals(item, _one) : _many.Contains(item); 118return EqualityComparer<T>.Default.Equals(item, _one) ? Empty : this; 121return OneOrMany.Create(_many.WhereAsArray(static (value, item) => !EqualityComparer<T>.Default.Equals(value, item), item));
src\roslyn\src\Dependencies\Collections\RoslynImmutableInterlocked.cs (1)
569if (!priorCollection.TryGetValue(key, out var priorValue) || !valueComparer.Equals(priorValue, comparisonValue))
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
186&& EqualityComparer<TValue>.Default.Equals(value, pair.Value);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
149&& EqualityComparer<TValue>.Default.Equals(value, item.Value);
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray.cs (1)
318if (EqualityComparer<T>.Default.Equals(array[i], value))
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (8)
276if (!RoslynUnsafe.IsNullRef(ref value) && EqualityComparer<TValue>.Default.Equals(value, keyValuePair.Value)) 287if (!RoslynUnsafe.IsNullRef(ref value) && EqualityComparer<TValue>.Default.Equals(value, keyValuePair.Value)) 334if (entries[i]._next >= -1 && EqualityComparer<TValue>.Default.Equals(entries[i]._value, value)) 348if (entries[i]._next >= -1 && defaultComparer.Equals(entries[i]._value, value)) 431if (entry._hashCode == hashCode && EqualityComparer<TKey>.Default.Equals(entry._key, key)) 545if (entries[i]._hashCode == hashCode && EqualityComparer<TKey>.Default.Equals(entries[i]._key, key)) 723(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry._key, key) : comparer!.Equals(entry._key, key))) 800(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry._key, key) : comparer!.Equals(entry._key, key)))
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
242if (entry._hashCode == hashCode && EqualityComparer<T>.Default.Equals(entry._value, item)) 315if (entry._hashCode == hashCode && (comparer?.Equals(entry._value, item) ?? EqualityComparer<T>.Default.Equals(entry._value, item))) 1046if (entry._hashCode == hashCode && EqualityComparer<T>.Default.Equals(entry._value, value))
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
38return EqualityComparer<T>.Default.Equals(_loneValue, item);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (2)
102return EqualityComparer<T>.Default.Equals(value, Value) ? this : new CodeStyleOption2<T>(value, Notification); 232&& EqualityComparer<T>.Default.Equals(Value, other.Value)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticEquivalence.cs (1)
135? EqualityComparer<ISymbol?>.Default.Equals(info1.Symbol, info2.Symbol)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\ContextMutableIntervalTree.cs (2)
119if (EqualityComparer<T?>.Default.Equals(result, default)) 159if (EqualityComparer<T?>.Default.Equals(result, default) ||
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (1)
217if (collection.Length == 1 && EqualityComparer<TValue>.Default.Equals(collection[0], value))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IReadOnlyListExtensions.cs (1)
29if (EqualityComparer<T>.Default.Equals(list[index], value))
ILCompiler.Compiler (2)
src\runtime\src\tools\illink\src\ILLink.Shared\DataFlow\ValueSet.cs (2)
202return EqualityComparer<TValue>.Default.Equals(value, otherValue); 241return EqualityComparer<TValue>.Default.Equals(value, thisValue);
illink (2)
ILLink.RoslynAnalyzer (3)
DataFlow\LocalStateLattice.cs (1)
64(!HasValue || EqualityComparer<TValue>.Default.Equals(Value, other.Value));
src\runtime\src\tools\illink\src\ILLink.Shared\DataFlow\ValueSet.cs (2)
202return EqualityComparer<TValue>.Default.Equals(value, otherValue); 241return EqualityComparer<TValue>.Default.Equals(value, thisValue);
Microsoft.AspNetCore.App.Analyzers (1)
Infrastructure\RoutePattern\RoutePatternHelpers.cs (1)
27if (EqualityComparer<TSyntaxKind>.Default.Equals(nodeOrToken.Kind, kind))
Microsoft.AspNetCore.Components (2)
src\aspnetcore\src\Http\Http.Abstractions\src\Routing\RouteValueDictionary.cs (2)
411return TryGetValue(item.Key, out var value) && EqualityComparer<object>.Default.Equals(value, item.Value); 495if (index >= 0 && EqualityComparer<object>.Default.Equals(array[index].Value, item.Value))
Microsoft.AspNetCore.Components.Endpoints (2)
Discovery\ComponentBuilder.cs (1)
37EqualityComparer<Type>.Default.Equals(ComponentType, other.ComponentType);
Discovery\PageComponentBuilder.cs (1)
65EqualityComparer<Type>.Default.Equals(PageType, other.PageType);
Microsoft.AspNetCore.Components.Web (2)
Forms\InputBase.cs (1)
94var hasChanged = !EqualityComparer<TValue>.Default.Equals(value, Value);
Virtualization\Virtualize.cs (1)
1021if (newFirstItem != null && !EqualityComparer<TItem>.Default.Equals(_previousFirstLoadedItem, newFirstItem))
Microsoft.AspNetCore.DeveloperCertificates.XPlat (1)
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
417EqualityComparer<string>.Default.Equals(x?.Thumbprint, y?.Thumbprint);
Microsoft.AspNetCore.Http (2)
parent\parent\parent\Shared\Dictionary\AdaptiveCapacityDictionary.cs (2)
270return TryGetValue(item.Key, out var value) && EqualityComparer<object>.Default.Equals(value, item.Value); 356if (index >= 0 && EqualityComparer<TValue>.Default.Equals(array[index].Value, item.Value))
Microsoft.AspNetCore.Http.Abstractions (2)
Routing\RouteValueDictionary.cs (2)
411return TryGetValue(item.Key, out var value) && EqualityComparer<object>.Default.Equals(value, item.Value); 495if (index >= 0 && EqualityComparer<object>.Default.Equals(array[index].Value, item.Value))
Microsoft.AspNetCore.Server.Kestrel.Core (1)
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
417EqualityComparer<string>.Default.Equals(x?.Thumbprint, y?.Thumbprint);
Microsoft.Build (26)
BackEnd\Components\SdkResolution\SdkResult.cs (1)
117EqualityComparer<SdkReference>.Default.Equals(_sdkReference, result._sdkReference))
Collections\CopyOnWritePropertyDictionary.cs (3)
188!EqualityComparer<T>.Default.Equals(thisProp, thatProp)) 238!EqualityComparer<T>.Default.Equals(thisProp, thatProp)) 290return EqualityComparer<T>.Default.Equals(value, item.Value);
Collections\PropertyDictionary.cs (1)
465EqualityComparer<T>.Default.Equals(existingItem, item);
src\5057ed6cf5d6323b\ImmutableSegmentedDictionary`2.cs (1)
186&& EqualityComparer<TValue>.Default.Equals(value, pair.Value);
src\5057ed6cf5d6323b\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
149&& EqualityComparer<TValue>.Default.Equals(value, item.Value);
src\5057ed6cf5d6323b\SegmentedDictionary`2.cs (8)
276if (!RoslynUnsafe.IsNullRef(ref value) && EqualityComparer<TValue>.Default.Equals(value, keyValuePair.Value)) 287if (!RoslynUnsafe.IsNullRef(ref value) && EqualityComparer<TValue>.Default.Equals(value, keyValuePair.Value)) 334if (entries[i]._next >= -1 && EqualityComparer<TValue>.Default.Equals(entries[i]._value, value)) 348if (entries[i]._next >= -1 && defaultComparer.Equals(entries[i]._value, value)) 431if (entry._hashCode == hashCode && EqualityComparer<TKey>.Default.Equals(entry._key, key)) 545if (entries[i]._hashCode == hashCode && EqualityComparer<TKey>.Default.Equals(entries[i]._key, key)) 723(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry._key, key) : comparer!.Equals(entry._key, key))) 800(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry._key, key) : comparer!.Equals(entry._key, key)))
src\697a1c9088572269\SegmentedHashSetEqualityComparer`1.cs (1)
51if (defaultComparer.Equals(yi, xi))
src\8b3a4ac2431f87ea\SpecializedCollections.Singleton.Collection`1.cs (1)
38return EqualityComparer<T>.Default.Equals(_loneValue, item);
src\9f0d3f3da306d8cf\ImmutableArrayExtensions.cs (1)
1058return EqualityComparer<T>.Default.Equals(array[0], array[1]);
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\OneOrMany.cs (3)
112=> HasOneItem ? EqualityComparer<T>.Default.Equals(item, _one) : _many.Contains(item); 118return EqualityComparer<T>.Default.Equals(item, _one) ? Empty : this; 121return OneOrMany.Create(_many.WhereAsArray(static (value, item) => !EqualityComparer<T>.Default.Equals(value, item), item));
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\RoslynImmutableInterlocked.cs (1)
569if (!priorCollection.TryGetValue(key, out var priorValue) || !valueComparer.Equals(priorValue, comparisonValue))
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Segmented\SegmentedArray.cs (1)
318if (EqualityComparer<T>.Default.Equals(array[i], value))
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Segmented\SegmentedHashSet`1.cs (3)
242if (entry._hashCode == hashCode && EqualityComparer<T>.Default.Equals(entry._value, item)) 315if (entry._hashCode == hashCode && (comparer?.Equals(entry._value, item) ?? EqualityComparer<T>.Default.Equals(entry._value, item))) 1046if (entry._hashCode == hashCode && EqualityComparer<T>.Default.Equals(entry._value, value))
Microsoft.Build.Framework (7)
Assumed.cs (6)
257if (!EqualityComparer<T>.Default.Equals(value, other)) 278if (!EqualityComparer<T>.Default.Equals(value, other)) 344if (EqualityComparer<T>.Default.Equals(value, other)) 365if (EqualityComparer<T>.Default.Equals(value, other)) 1022isEnabled = !EqualityComparer<T>.Default.Equals(value, other); 1082isEnabled = EqualityComparer<T>.Default.Equals(value, other);
TaskItem_T.cs (1)
172EqualityComparer<T>.Default.Equals(Value, other.Value);
Microsoft.CodeAnalysis (27)
Collections\OrderPreservingMultiDictionary.cs (1)
266? EqualityComparer<V>.Default.Equals(item, (V)_value)
DiagnosticAnalyzer\Suppression.cs (2)
72return EqualityComparer<SuppressionDescriptor>.Default.Equals(Descriptor, other.Descriptor) 73&& EqualityComparer<Diagnostic>.Default.Equals(SuppressedDiagnostic, other.SuppressedDiagnostic);
MetadataReference\AssemblyIdentity.cs (1)
372return EqualityComparer<AssemblyIdentity>.Default.Equals(left, right);
SourceGeneration\Nodes\BatchNode.cs (1)
80if (!EqualityComparer<TInput>.Default.Equals(entry.Item, previousItems[indexInPrevious]))
src\roslyn\src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
51if (defaultComparer.Equals(yi, xi))
src\roslyn\src\Dependencies\Collections\OneOrMany.cs (3)
112=> HasOneItem ? EqualityComparer<T>.Default.Equals(item, _one) : _many.Contains(item); 118return EqualityComparer<T>.Default.Equals(item, _one) ? Empty : this; 121return OneOrMany.Create(_many.WhereAsArray(static (value, item) => !EqualityComparer<T>.Default.Equals(value, item), item));
src\roslyn\src\Dependencies\Collections\RoslynImmutableInterlocked.cs (1)
569if (!priorCollection.TryGetValue(key, out var priorValue) || !valueComparer.Equals(priorValue, comparisonValue))
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
186&& EqualityComparer<TValue>.Default.Equals(value, pair.Value);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
149&& EqualityComparer<TValue>.Default.Equals(value, item.Value);
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray.cs (1)
318if (EqualityComparer<T>.Default.Equals(array[i], value))
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (8)
276if (!RoslynUnsafe.IsNullRef(ref value) && EqualityComparer<TValue>.Default.Equals(value, keyValuePair.Value)) 287if (!RoslynUnsafe.IsNullRef(ref value) && EqualityComparer<TValue>.Default.Equals(value, keyValuePair.Value)) 334if (entries[i]._next >= -1 && EqualityComparer<TValue>.Default.Equals(entries[i]._value, value)) 348if (entries[i]._next >= -1 && defaultComparer.Equals(entries[i]._value, value)) 431if (entry._hashCode == hashCode && EqualityComparer<TKey>.Default.Equals(entry._key, key)) 545if (entries[i]._hashCode == hashCode && EqualityComparer<TKey>.Default.Equals(entries[i]._key, key)) 723(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry._key, key) : comparer!.Equals(entry._key, key))) 800(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry._key, key) : comparer!.Equals(entry._key, key)))
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
242if (entry._hashCode == hashCode && EqualityComparer<T>.Default.Equals(entry._value, item)) 315if (entry._hashCode == hashCode && (comparer?.Equals(entry._value, item) ?? EqualityComparer<T>.Default.Equals(entry._value, item))) 1046if (entry._hashCode == hashCode && EqualityComparer<T>.Default.Equals(entry._value, value))
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
38return EqualityComparer<T>.Default.Equals(_loneValue, item);
Text\TextChange.cs (2)
66EqualityComparer<TextSpan>.Default.Equals(this.Span, other.Span) && 67EqualityComparer<string>.Default.Equals(this.NewText, other.NewText);
Microsoft.CodeAnalysis.Analyzers (31)
src\roslyn\src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
266? EqualityComparer<V>.Default.Equals(item, (V)_value)
src\roslyn\src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
51if (defaultComparer.Equals(yi, xi))
src\roslyn\src\Dependencies\Collections\OneOrMany.cs (3)
112=> HasOneItem ? EqualityComparer<T>.Default.Equals(item, _one) : _many.Contains(item); 118return EqualityComparer<T>.Default.Equals(item, _one) ? Empty : this; 121return OneOrMany.Create(_many.WhereAsArray(static (value, item) => !EqualityComparer<T>.Default.Equals(value, item), item));
src\roslyn\src\Dependencies\Collections\RoslynImmutableInterlocked.cs (1)
569if (!priorCollection.TryGetValue(key, out var priorValue) || !valueComparer.Equals(priorValue, comparisonValue))
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
186&& EqualityComparer<TValue>.Default.Equals(value, pair.Value);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
149&& EqualityComparer<TValue>.Default.Equals(value, item.Value);
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray.cs (1)
318if (EqualityComparer<T>.Default.Equals(array[i], value))
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (8)
276if (!RoslynUnsafe.IsNullRef(ref value) && EqualityComparer<TValue>.Default.Equals(value, keyValuePair.Value)) 287if (!RoslynUnsafe.IsNullRef(ref value) && EqualityComparer<TValue>.Default.Equals(value, keyValuePair.Value)) 334if (entries[i]._next >= -1 && EqualityComparer<TValue>.Default.Equals(entries[i]._value, value)) 348if (entries[i]._next >= -1 && defaultComparer.Equals(entries[i]._value, value)) 431if (entry._hashCode == hashCode && EqualityComparer<TKey>.Default.Equals(entry._key, key)) 545if (entries[i]._hashCode == hashCode && EqualityComparer<TKey>.Default.Equals(entries[i]._key, key)) 723(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry._key, key) : comparer!.Equals(entry._key, key))) 800(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry._key, key) : comparer!.Equals(entry._key, key)))
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
242if (entry._hashCode == hashCode && EqualityComparer<T>.Default.Equals(entry._value, item)) 315if (entry._hashCode == hashCode && (comparer?.Equals(entry._value, item) ?? EqualityComparer<T>.Default.Equals(entry._value, item))) 1046if (entry._hashCode == hashCode && EqualityComparer<T>.Default.Equals(entry._value, value))
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
38return EqualityComparer<T>.Default.Equals(_loneValue, item);
src\roslyn\src\Dependencies\Contracts\EqualityComparerExtensions.cs (2)
28/// <see cref="EqualityComparer{T}.Equals"/> and <see cref="EqualityComparer{T}.GetHashCode"/> methods. 30/// <param name="equals">The delegate to use to implement the <see cref="EqualityComparer{T}.Equals"/> method.</param>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (2)
102return EqualityComparer<T>.Default.Equals(value, Value) ? this : new CodeStyleOption2<T>(value, Notification); 232&& EqualityComparer<T>.Default.Equals(Value, other.Value)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ReadOnlySpanExtensions.cs (1)
17if (EqualityComparer<T>.Default.Equals(v, value))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticEquivalence.cs (1)
135? EqualityComparer<ISymbol?>.Default.Equals(info1.Symbol, info2.Symbol)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\ContextMutableIntervalTree.cs (2)
119if (EqualityComparer<T?>.Default.Equals(result, default)) 159if (EqualityComparer<T?>.Default.Equals(result, default) ||
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (1)
217if (collection.Length == 1 && EqualityComparer<TValue>.Default.Equals(collection[0], value))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IReadOnlyListExtensions.cs (1)
29if (EqualityComparer<T>.Default.Equals(list[index], value))
Microsoft.CodeAnalysis.AnalyzerUtilities (33)
src\roslyn\src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
266? EqualityComparer<V>.Default.Equals(item, (V)_value)
src\roslyn\src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
51if (defaultComparer.Equals(yi, xi))
src\roslyn\src\Dependencies\Collections\OneOrMany.cs (3)
112=> HasOneItem ? EqualityComparer<T>.Default.Equals(item, _one) : _many.Contains(item); 118return EqualityComparer<T>.Default.Equals(item, _one) ? Empty : this; 121return OneOrMany.Create(_many.WhereAsArray(static (value, item) => !EqualityComparer<T>.Default.Equals(value, item), item));
src\roslyn\src\Dependencies\Collections\RoslynImmutableInterlocked.cs (1)
569if (!priorCollection.TryGetValue(key, out var priorValue) || !valueComparer.Equals(priorValue, comparisonValue))
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
186&& EqualityComparer<TValue>.Default.Equals(value, pair.Value);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
149&& EqualityComparer<TValue>.Default.Equals(value, item.Value);
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray.cs (1)
318if (EqualityComparer<T>.Default.Equals(array[i], value))
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (8)
276if (!RoslynUnsafe.IsNullRef(ref value) && EqualityComparer<TValue>.Default.Equals(value, keyValuePair.Value)) 287if (!RoslynUnsafe.IsNullRef(ref value) && EqualityComparer<TValue>.Default.Equals(value, keyValuePair.Value)) 334if (entries[i]._next >= -1 && EqualityComparer<TValue>.Default.Equals(entries[i]._value, value)) 348if (entries[i]._next >= -1 && defaultComparer.Equals(entries[i]._value, value)) 431if (entry._hashCode == hashCode && EqualityComparer<TKey>.Default.Equals(entry._key, key)) 545if (entries[i]._hashCode == hashCode && EqualityComparer<TKey>.Default.Equals(entries[i]._key, key)) 723(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry._key, key) : comparer!.Equals(entry._key, key))) 800(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry._key, key) : comparer!.Equals(entry._key, key)))
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
242if (entry._hashCode == hashCode && EqualityComparer<T>.Default.Equals(entry._value, item)) 315if (entry._hashCode == hashCode && (comparer?.Equals(entry._value, item) ?? EqualityComparer<T>.Default.Equals(entry._value, item))) 1046if (entry._hashCode == hashCode && EqualityComparer<T>.Default.Equals(entry._value, value))
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
38return EqualityComparer<T>.Default.Equals(_loneValue, item);
src\roslyn\src\Dependencies\Contracts\EqualityComparerExtensions.cs (2)
28/// <see cref="EqualityComparer{T}.Equals"/> and <see cref="EqualityComparer{T}.GetHashCode"/> methods. 30/// <param name="equals">The delegate to use to implement the <see cref="EqualityComparer{T}.Equals"/> method.</param>
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (1)
2094dict1.Keys.All(key => dict2.TryGetValue(key, out TValue value2) && EqualityComparer<TValue>.Default.Equals(dict1[key], value2));
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\PredicatedAnalysisData.cs (1)
421EqualityComparer<TValue>.Default.Equals(dict1[key], value2));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (2)
102return EqualityComparer<T>.Default.Equals(value, Value) ? this : new CodeStyleOption2<T>(value, Notification); 232&& EqualityComparer<T>.Default.Equals(Value, other.Value)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ReadOnlySpanExtensions.cs (1)
17if (EqualityComparer<T>.Default.Equals(v, value))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticEquivalence.cs (1)
135? EqualityComparer<ISymbol?>.Default.Equals(info1.Symbol, info2.Symbol)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\ContextMutableIntervalTree.cs (2)
119if (EqualityComparer<T?>.Default.Equals(result, default)) 159if (EqualityComparer<T?>.Default.Equals(result, default) ||
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (1)
217if (collection.Length == 1 && EqualityComparer<TValue>.Default.Equals(collection[0], value))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IReadOnlyListExtensions.cs (1)
29if (EqualityComparer<T>.Default.Equals(list[index], value))
Microsoft.CodeAnalysis.CodeStyle (31)
src\roslyn\src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
266? EqualityComparer<V>.Default.Equals(item, (V)_value)
src\roslyn\src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
51if (defaultComparer.Equals(yi, xi))
src\roslyn\src\Dependencies\Collections\OneOrMany.cs (3)
112=> HasOneItem ? EqualityComparer<T>.Default.Equals(item, _one) : _many.Contains(item); 118return EqualityComparer<T>.Default.Equals(item, _one) ? Empty : this; 121return OneOrMany.Create(_many.WhereAsArray(static (value, item) => !EqualityComparer<T>.Default.Equals(value, item), item));
src\roslyn\src\Dependencies\Collections\RoslynImmutableInterlocked.cs (1)
569if (!priorCollection.TryGetValue(key, out var priorValue) || !valueComparer.Equals(priorValue, comparisonValue))
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
186&& EqualityComparer<TValue>.Default.Equals(value, pair.Value);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
149&& EqualityComparer<TValue>.Default.Equals(value, item.Value);
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray.cs (1)
318if (EqualityComparer<T>.Default.Equals(array[i], value))
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (8)
276if (!RoslynUnsafe.IsNullRef(ref value) && EqualityComparer<TValue>.Default.Equals(value, keyValuePair.Value)) 287if (!RoslynUnsafe.IsNullRef(ref value) && EqualityComparer<TValue>.Default.Equals(value, keyValuePair.Value)) 334if (entries[i]._next >= -1 && EqualityComparer<TValue>.Default.Equals(entries[i]._value, value)) 348if (entries[i]._next >= -1 && defaultComparer.Equals(entries[i]._value, value)) 431if (entry._hashCode == hashCode && EqualityComparer<TKey>.Default.Equals(entry._key, key)) 545if (entries[i]._hashCode == hashCode && EqualityComparer<TKey>.Default.Equals(entries[i]._key, key)) 723(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry._key, key) : comparer!.Equals(entry._key, key))) 800(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry._key, key) : comparer!.Equals(entry._key, key)))
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
242if (entry._hashCode == hashCode && EqualityComparer<T>.Default.Equals(entry._value, item)) 315if (entry._hashCode == hashCode && (comparer?.Equals(entry._value, item) ?? EqualityComparer<T>.Default.Equals(entry._value, item))) 1046if (entry._hashCode == hashCode && EqualityComparer<T>.Default.Equals(entry._value, value))
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
38return EqualityComparer<T>.Default.Equals(_loneValue, item);
src\roslyn\src\Dependencies\Contracts\EqualityComparerExtensions.cs (2)
28/// <see cref="EqualityComparer{T}.Equals"/> and <see cref="EqualityComparer{T}.GetHashCode"/> methods. 30/// <param name="equals">The delegate to use to implement the <see cref="EqualityComparer{T}.Equals"/> method.</param>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (2)
102return EqualityComparer<T>.Default.Equals(value, Value) ? this : new CodeStyleOption2<T>(value, Notification); 232&& EqualityComparer<T>.Default.Equals(Value, other.Value)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ReadOnlySpanExtensions.cs (1)
17if (EqualityComparer<T>.Default.Equals(v, value))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticEquivalence.cs (1)
135? EqualityComparer<ISymbol?>.Default.Equals(info1.Symbol, info2.Symbol)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\ContextMutableIntervalTree.cs (2)
119if (EqualityComparer<T?>.Default.Equals(result, default)) 159if (EqualityComparer<T?>.Default.Equals(result, default) ||
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (1)
217if (collection.Length == 1 && EqualityComparer<TValue>.Default.Equals(collection[0], value))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IReadOnlyListExtensions.cs (1)
29if (EqualityComparer<T>.Default.Equals(list[index], value))
Microsoft.CodeAnalysis.CSharp (104)
Binder\Binder_Operators.cs (1)
3967return typeComparer.Equals(x.ContainingType, y.ContainingType) &&
FlowAnalysis\NullableWalker.cs (1)
14469Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(x.type, y.type);
Generated\BoundNodes.xml.Generated.cs (99)
313if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(field, this.Field) || locals != this.Locals || value != this.Value) 343if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(property, this.Property) || locals != this.Locals || value != this.Value) 373if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(parameter, this.Parameter) || locals != this.Locals || value != this.Value) 543if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(variableSymbol, this.VariableSymbol) || isDiscardExpression != this.IsDiscardExpression || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 1102if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(aliasOpt, this.AliasOpt) || boundContainingTypeOpt != this.BoundContainingTypeOpt || boundDimensionsOpt != this.BoundDimensionsOpt || typeWithAnnotations != this.TypeWithAnnotations || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 1151if (binder != this.Binder || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(valueSymbol, this.ValueSymbol) || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 1192if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(namespaceSymbol, this.NamespaceSymbol) || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(aliasOpt, this.AliasOpt)) 1234if (operatorKind != this.OperatorKind || operand != this.Operand || constantValueOpt != this.ConstantValueOpt || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(methodOpt, this.MethodOpt) || !TypeSymbol.Equals(constrainedToTypeOpt, this.ConstrainedToTypeOpt, TypeCompareKind.ConsiderEverything) || resultKind != this.ResultKind || originalUserDefinedOperatorsOpt != this.OriginalUserDefinedOperatorsOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 1282if (operatorKind != this.OperatorKind || operand != this.Operand || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(methodOpt, this.MethodOpt) || !TypeSymbol.Equals(constrainedToTypeOpt, this.ConstrainedToTypeOpt, TypeCompareKind.ConsiderEverything) || operandPlaceholder != this.OperandPlaceholder || operandConversion != this.OperandConversion || resultPlaceholder != this.ResultPlaceholder || resultConversion != this.ResultConversion || resultKind != this.ResultKind || originalUserDefinedOperatorsOpt != this.OriginalUserDefinedOperatorsOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 1386if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(targetMethod, this.TargetMethod) || !TypeSymbol.Equals(constrainedToTypeOpt, this.ConstrainedToTypeOpt, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 1524if (operand != this.Operand || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(getTypeFromHandle, this.GetTypeFromHandle) || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 1618if (operand != this.Operand || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(methodOpt, this.MethodOpt) || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 1651if (leftOperandOpt != this.LeftOperandOpt || rightOperandOpt != this.RightOperandOpt || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(methodOpt, this.MethodOpt) || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 1799if (operatorKind != this.OperatorKind || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(logicalOperator, this.LogicalOperator) || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(trueOperator, this.TrueOperator) || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(falseOperator, this.FalseOperator) || trueFalseOperandPlaceholder != this.TrueFalseOperandPlaceholder || trueFalseOperandConversion != this.TrueFalseOperandConversion || !TypeSymbol.Equals(constrainedToTypeOpt, this.ConstrainedToTypeOpt, TypeCompareKind.ConsiderEverything) || resultKind != this.ResultKind || originalUserDefinedOperatorsOpt != this.OriginalUserDefinedOperatorsOpt || left != this.Left || right != this.Right || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 2204if (awaitableInstancePlaceholder != this.AwaitableInstancePlaceholder || isDynamic != this.IsDynamic || getAwaiter != this.GetAwaiter || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(isCompleted, this.IsCompleted) || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(getResult, this.GetResult) || runtimeAsyncAwaitCall != this.RuntimeAsyncAwaitCall || runtimeAsyncAwaitCallPlaceholder != this.RuntimeAsyncAwaitCallPlaceholder) 2292if (sourceType != this.SourceType || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(getTypeFromHandle, this.GetTypeFromHandle) || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 2368if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(method, this.Method) || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 2411if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(local, this.Local) || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(hoistedField, this.HoistedField) || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 2454if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(parameter, this.Parameter) || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(hoistedField, this.HoistedField) || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 2785if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(method, this.Method) || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(getMethodFromHandle, this.GetMethodFromHandle) || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 2828if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(field, this.Field) || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(getFieldFromHandle, this.GetFieldFromHandle) || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 3067if (operand != this.Operand || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(conversionMethod, this.ConversionMethod) || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 3172if (!TypeSymbol.Equals(elementPointerType, this.ElementPointerType, TypeCompareKind.ConsiderEverything) || elementPointerPlaceholder != this.ElementPointerPlaceholder || elementPointerConversion != this.ElementPointerConversion || expression != this.Expression || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(getPinnableOpt, this.GetPinnableOpt) || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 3475if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(localSymbol, this.LocalSymbol) || declaredTypeOpt != this.DeclaredTypeOpt || initializerOpt != this.InitializerOpt || argumentsOpt != this.ArgumentsOpt || inferredType != this.InferredType) 3577if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(symbol, this.Symbol) || blockBody != this.BlockBody || expressionBody != this.ExpressionBody) 3769if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(label, this.Label) || labelExpressionOpt != this.LabelExpressionOpt) 3799if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(label, this.Label) || labelExpressionOpt != this.LabelExpressionOpt) 3844if (expression != this.Expression || innerLocals != this.InnerLocals || innerLocalFunctions != this.InnerLocalFunctions || switchSections != this.SwitchSections || reachabilityDecisionDag != this.ReachabilityDecisionDag || defaultLabel != this.DefaultLabel || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(breakLabel, this.BreakLabel)) 3880if (expression != this.Expression || cases != this.Cases || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(defaultLabel, this.DefaultLabel) || lengthBasedStringSwitchDataOpt != this.LengthBasedStringSwitchDataOpt) 3993if (locals != this.Locals || condition != this.Condition || body != this.Body || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(breakLabel, this.BreakLabel) || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(continueLabel, this.ContinueLabel)) 4023if (locals != this.Locals || condition != this.Condition || body != this.Body || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(breakLabel, this.BreakLabel) || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(continueLabel, this.ContinueLabel)) 4065if (outerLocals != this.OuterLocals || initializer != this.Initializer || innerLocals != this.InnerLocals || condition != this.Condition || increment != this.Increment || body != this.Body || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(breakLabel, this.BreakLabel) || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(continueLabel, this.ContinueLabel)) 4114if (enumeratorInfoOpt != this.EnumeratorInfoOpt || elementPlaceholder != this.ElementPlaceholder || elementConversion != this.ElementConversion || iterationVariableType != this.IterationVariableType || iterationVariables != this.IterationVariables || iterationErrorExpressionOpt != this.IterationErrorExpressionOpt || expression != this.Expression || deconstructionOpt != this.DeconstructionOpt || body != this.Body || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(breakLabel, this.BreakLabel) || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(continueLabel, this.ContinueLabel)) 4286if (tryBlock != this.TryBlock || catchBlocks != this.CatchBlocks || finallyBlockOpt != this.FinallyBlockOpt || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(finallyLabelOpt, this.FinallyLabelOpt) || preferFaultHandler != this.PreferFaultHandler) 4581if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(localSymbol, this.LocalSymbol) || declarationKind != this.DeclarationKind || constantValueOpt != this.ConstantValueOpt || isNullableUnknown != this.IsNullableUnknown || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 4626if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(localSymbol, this.LocalSymbol) || emitExpressions != this.EmitExpressions || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 4659if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(rangeVariableSymbol, this.RangeVariableSymbol) || value != this.Value || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 4699if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(parameterSymbol, this.ParameterSymbol) || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 4736if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(label, this.Label)) 4768if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(label, this.Label) || caseExpressionOpt != this.CaseExpressionOpt || labelExpressionOpt != this.LabelExpressionOpt) 4799if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(label, this.Label) || body != this.Body) 4836if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(label, this.Label) || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 4906if (condition != this.Condition || jumpIfTrue != this.JumpIfTrue || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(label, this.Label)) 4971if (locals != this.Locals || pattern != this.Pattern || hasUnionMatching != this.HasUnionMatching || whenClause != this.WhenClause || value != this.Value || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(label, this.Label)) 4999if (expression != this.Expression || switchArms != this.SwitchArms || reachabilityDecisionDag != this.ReachabilityDecisionDag || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(defaultLabel, this.DefaultLabel) || reportedNotExhaustive != this.ReportedNotExhaustive || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 5033if (!TypeSymbol.Equals(naturalTypeOpt, this.NaturalTypeOpt, TypeCompareKind.ConsiderEverything) || wasTargetTyped != this.WasTargetTyped || expression != this.Expression || switchArms != this.SwitchArms || reachabilityDecisionDag != this.ReachabilityDecisionDag || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(defaultLabel, this.DefaultLabel) || reportedNotExhaustive != this.ReportedNotExhaustive || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 5214if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(label, this.Label)) 5444if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(deconstructMethod, this.DeconstructMethod) || input != this.Input) 5502if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(field, this.Field) || input != this.Input) 5533if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(property, this.Property) || isLengthOrCount != this.IsLengthOrCount || input != this.Input) 5564if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(property, this.Property) || index != this.Index || input != this.Input) 5782if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(label, this.Label) || pattern != this.Pattern || hasUnionMatching != this.HasUnionMatching || whenClause != this.WhenClause) 6062if (receiver != this.Receiver || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(hasValueMethodOpt, this.HasValueMethodOpt) || whenNotNull != this.WhenNotNull || whenNullOpt != this.WhenNullOpt || id != this.Id || forceCopyOfNullableValueType != this.ForceCopyOfNullableValueType || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 6174if (typeArgumentsOpt != this.TypeArgumentsOpt || name != this.Name || methods != this.Methods || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(lookupSymbolOpt, this.LookupSymbolOpt) || lookupError != this.LookupError || flags != this.Flags || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(functionType, this.FunctionType) || receiverOpt != this.ReceiverOpt || resultKind != this.ResultKind) 6261if (receiverOpt != this.ReceiverOpt || initialBindingReceiverIsSubjectToCloning != this.InitialBindingReceiverIsSubjectToCloning || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(method, this.Method) || arguments != this.Arguments || argumentNamesOpt != this.ArgumentNamesOpt || argumentRefKindsOpt != this.ArgumentRefKindsOpt || isDelegateCall != this.IsDelegateCall || expanded != this.Expanded || invokedAsExtensionMethod != this.InvokedAsExtensionMethod || argsToParamsOpt != this.ArgsToParamsOpt || defaultArguments != this.DefaultArguments || resultKind != this.ResultKind || originalMethodsOpt != this.OriginalMethodsOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 6300if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(@event, this.Event) || isAddition != this.IsAddition || isDynamic != this.IsDynamic || receiverOpt != this.ReceiverOpt || argument != this.Argument || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 6345if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(constructor, this.Constructor) || constructorArguments != this.ConstructorArguments || constructorArgumentNamesOpt != this.ConstructorArgumentNamesOpt || constructorArgumentsToParamsOpt != this.ConstructorArgumentsToParamsOpt || constructorExpanded != this.ConstructorExpanded || constructorDefaultArguments != this.ConstructorDefaultArguments || namedArguments != this.NamedArguments || resultKind != this.ResultKind || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 6455if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(constructor, this.Constructor) || constructorsGroup != this.ConstructorsGroup || arguments != this.Arguments || argumentNamesOpt != this.ArgumentNamesOpt || argumentRefKindsOpt != this.ArgumentRefKindsOpt || expanded != this.Expanded || argsToParamsOpt != this.ArgsToParamsOpt || defaultArguments != this.DefaultArguments || constantValueOpt != this.ConstantValueOpt || initializerExpressionOpt != this.InitializerExpressionOpt || wasTargetTyped != this.WasTargetTyped || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 6583if (collectionTypeKind != this.CollectionTypeKind || placeholder != this.Placeholder || collectionCreation != this.CollectionCreation || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(collectionBuilderMethod, this.CollectionBuilderMethod) || collectionBuilderElementsPlaceholder != this.CollectionBuilderElementsPlaceholder || wasTargetTyped != this.WasTargetTyped || hasWithElement != this.HasWithElement || unconvertedCollectionExpression != this.UnconvertedCollectionExpression || elements != this.Elements || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 6897if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(memberSymbol, this.MemberSymbol) || arguments != this.Arguments || argumentNamesOpt != this.ArgumentNamesOpt || argumentRefKindsOpt != this.ArgumentRefKindsOpt || expanded != this.Expanded || argsToParamsOpt != this.ArgsToParamsOpt || defaultArguments != this.DefaultArguments || resultKind != this.ResultKind || accessorKind != this.AccessorKind || !TypeSymbol.Equals(receiverType, this.ReceiverType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 7015if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(addMethod, this.AddMethod) || arguments != this.Arguments || implicitReceiverOpt != this.ImplicitReceiverOpt || expanded != this.Expanded || argsToParamsOpt != this.ArgsToParamsOpt || defaultArguments != this.DefaultArguments || invokedAsExtensionMethod != this.InvokedAsExtensionMethod || resultKind != this.ResultKind || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 7118if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(constructor, this.Constructor) || arguments != this.Arguments || declarations != this.Declarations || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 7158if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(property, this.Property) || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 7224if (argument != this.Argument || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(methodOpt, this.MethodOpt) || isExtensionMethod != this.IsExtensionMethod || wasTargetTyped != this.WasTargetTyped || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 7402if (receiverOpt != this.ReceiverOpt || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(fieldSymbol, this.FieldSymbol) || constantValueOpt != this.ConstantValueOpt || resultKind != this.ResultKind || isByValue != this.IsByValue || isDeclaration != this.IsDeclaration || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 7442if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(fieldSymbol, this.FieldSymbol) || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 7480if (receiverOpt != this.ReceiverOpt || initialBindingReceiverIsSubjectToCloning != this.InitialBindingReceiverIsSubjectToCloning || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(propertySymbol, this.PropertySymbol) || autoPropertyAccessorKind != this.AutoPropertyAccessorKind || resultKind != this.ResultKind || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 7516if (receiverOpt != this.ReceiverOpt || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(eventSymbol, this.EventSymbol) || isUsableAsField != this.IsUsableAsField || resultKind != this.ResultKind || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 7567if (receiverOpt != this.ReceiverOpt || initialBindingReceiverIsSubjectToCloning != this.InitialBindingReceiverIsSubjectToCloning || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(indexer, this.Indexer) || arguments != this.Arguments || argumentNamesOpt != this.ArgumentNamesOpt || argumentRefKindsOpt != this.ArgumentRefKindsOpt || expanded != this.Expanded || accessorKind != this.AccessorKind || argsToParamsOpt != this.ArgsToParamsOpt || defaultArguments != this.DefaultArguments || originalIndexersOpt != this.OriginalIndexersOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 7737if (unboundLambda != this.UnboundLambda || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(symbol, this.Symbol) || body != this.Body || diagnostics != this.Diagnostics || binder != this.Binder || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 7781if (data != this.Data || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(functionType, this.FunctionType) || withDependencies != this.WithDependencies) 7822if (value != this.Value || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(definedSymbol, this.DefinedSymbol) || operation != this.Operation || cast != this.Cast || binder != this.Binder || unoptimizedForm != this.UnoptimizedForm || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 8100if (expression != this.Expression || pattern != this.Pattern || hasUnionMatching != this.HasUnionMatching || isNegated != this.IsNegated || reachabilityDecisionDag != this.ReachabilityDecisionDag || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(whenTrueLabel, this.WhenTrueLabel) || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(whenFalseLabel, this.WhenFalseLabel) || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 8308if (declaredType != this.DeclaredType || isVar != this.IsVar || isUnionMatching != this.IsUnionMatching || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(variable, this.Variable) || variableAccess != this.VariableAccess || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything)) 8351if (declaredType != this.DeclaredType || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(deconstructMethod, this.DeconstructMethod) || deconstruction != this.Deconstruction || properties != this.Properties || isExplicitNotNullTest != this.IsExplicitNotNullTest || isUnionMatching != this.IsUnionMatching || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(variable, this.Variable) || variableAccess != this.VariableAccess || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything)) 8395if (subpatterns != this.Subpatterns || hasSlice != this.HasSlice || lengthAccess != this.LengthAccess || indexerAccess != this.IndexerAccess || receiverPlaceholder != this.ReceiverPlaceholder || argumentPlaceholder != this.ArgumentPlaceholder || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(variable, this.Variable) || variableAccess != this.VariableAccess || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything)) 8474if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(getLengthMethod, this.GetLengthMethod) || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(getItemMethod, this.GetItemMethod) || subpatterns != this.Subpatterns || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything)) 8520if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(symbol, this.Symbol) || pattern != this.Pattern) 8582if (receiver != this.Receiver || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(symbol, this.Symbol) || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 8840if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(variableSymbol, this.VariableSymbol) || receiverOpt != this.ReceiverOpt) 8866if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(variableSymbol, this.VariableSymbol) || receiverOpt != this.ReceiverOpt) 8901if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(variableSymbol, this.VariableSymbol) || isDiscardExpression != this.IsDiscardExpression) 9058if (receiver != this.Receiver || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(cloneMethod, this.CloneMethod) || initializerExpression != this.InitializerExpression || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
Lowering\LocalRewriter\DelegateCacheContainer.cs (3)
101return symbolComparer.Equals(x.delegateType, y.delegateType) && 102symbolComparer.Equals(x.targetMethod, y.targetMethod) && 103symbolComparer.Equals(x.constrainedToTypeOpt, y.constrainedToTypeOpt);
Microsoft.CodeAnalysis.Extensions.Package (20)
src\roslyn\src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
51if (defaultComparer.Equals(yi, xi))
src\roslyn\src\Dependencies\Collections\OneOrMany.cs (3)
112=> HasOneItem ? EqualityComparer<T>.Default.Equals(item, _one) : _many.Contains(item); 118return EqualityComparer<T>.Default.Equals(item, _one) ? Empty : this; 121return OneOrMany.Create(_many.WhereAsArray(static (value, item) => !EqualityComparer<T>.Default.Equals(value, item), item));
src\roslyn\src\Dependencies\Collections\RoslynImmutableInterlocked.cs (1)
569if (!priorCollection.TryGetValue(key, out var priorValue) || !valueComparer.Equals(priorValue, comparisonValue))
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
186&& EqualityComparer<TValue>.Default.Equals(value, pair.Value);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
149&& EqualityComparer<TValue>.Default.Equals(value, item.Value);
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray.cs (1)
318if (EqualityComparer<T>.Default.Equals(array[i], value))
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (8)
276if (!RoslynUnsafe.IsNullRef(ref value) && EqualityComparer<TValue>.Default.Equals(value, keyValuePair.Value)) 287if (!RoslynUnsafe.IsNullRef(ref value) && EqualityComparer<TValue>.Default.Equals(value, keyValuePair.Value)) 334if (entries[i]._next >= -1 && EqualityComparer<TValue>.Default.Equals(entries[i]._value, value)) 348if (entries[i]._next >= -1 && defaultComparer.Equals(entries[i]._value, value)) 431if (entry._hashCode == hashCode && EqualityComparer<TKey>.Default.Equals(entry._key, key)) 545if (entries[i]._hashCode == hashCode && EqualityComparer<TKey>.Default.Equals(entries[i]._key, key)) 723(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry._key, key) : comparer!.Equals(entry._key, key))) 800(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry._key, key) : comparer!.Equals(entry._key, key)))
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
242if (entry._hashCode == hashCode && EqualityComparer<T>.Default.Equals(entry._value, item)) 315if (entry._hashCode == hashCode && (comparer?.Equals(entry._value, item) ?? EqualityComparer<T>.Default.Equals(entry._value, item))) 1046if (entry._hashCode == hashCode && EqualityComparer<T>.Default.Equals(entry._value, value))
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
38return EqualityComparer<T>.Default.Equals(_loneValue, item);
Microsoft.CodeAnalysis.NetAnalyzers (2)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (1)
2091dict1.Keys.All(key => dict2.TryGetValue(key, out TValue value2) && EqualityComparer<TValue>.Default.Equals(dict1[key], value2));
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\PredicatedAnalysisData.cs (1)
419EqualityComparer<TValue>.Default.Equals(dict1[key], value2));
Microsoft.CodeAnalysis.Razor.Compiler (1)
Language\Intermediate\IntermediateNodeCollection.InlineList.cs (1)
189if (_count == 1 && EqualityComparer<IntermediateNode>.Default.Equals(_single, item))
Microsoft.CodeAnalysis.ResxSourceGenerator (31)
src\roslyn\src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
266? EqualityComparer<V>.Default.Equals(item, (V)_value)
src\roslyn\src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
51if (defaultComparer.Equals(yi, xi))
src\roslyn\src\Dependencies\Collections\OneOrMany.cs (3)
112=> HasOneItem ? EqualityComparer<T>.Default.Equals(item, _one) : _many.Contains(item); 118return EqualityComparer<T>.Default.Equals(item, _one) ? Empty : this; 121return OneOrMany.Create(_many.WhereAsArray(static (value, item) => !EqualityComparer<T>.Default.Equals(value, item), item));
src\roslyn\src\Dependencies\Collections\RoslynImmutableInterlocked.cs (1)
569if (!priorCollection.TryGetValue(key, out var priorValue) || !valueComparer.Equals(priorValue, comparisonValue))
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
186&& EqualityComparer<TValue>.Default.Equals(value, pair.Value);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
149&& EqualityComparer<TValue>.Default.Equals(value, item.Value);
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray.cs (1)
318if (EqualityComparer<T>.Default.Equals(array[i], value))
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (8)
276if (!RoslynUnsafe.IsNullRef(ref value) && EqualityComparer<TValue>.Default.Equals(value, keyValuePair.Value)) 287if (!RoslynUnsafe.IsNullRef(ref value) && EqualityComparer<TValue>.Default.Equals(value, keyValuePair.Value)) 334if (entries[i]._next >= -1 && EqualityComparer<TValue>.Default.Equals(entries[i]._value, value)) 348if (entries[i]._next >= -1 && defaultComparer.Equals(entries[i]._value, value)) 431if (entry._hashCode == hashCode && EqualityComparer<TKey>.Default.Equals(entry._key, key)) 545if (entries[i]._hashCode == hashCode && EqualityComparer<TKey>.Default.Equals(entries[i]._key, key)) 723(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry._key, key) : comparer!.Equals(entry._key, key))) 800(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry._key, key) : comparer!.Equals(entry._key, key)))
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
242if (entry._hashCode == hashCode && EqualityComparer<T>.Default.Equals(entry._value, item)) 315if (entry._hashCode == hashCode && (comparer?.Equals(entry._value, item) ?? EqualityComparer<T>.Default.Equals(entry._value, item))) 1046if (entry._hashCode == hashCode && EqualityComparer<T>.Default.Equals(entry._value, value))
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
38return EqualityComparer<T>.Default.Equals(_loneValue, item);
src\roslyn\src\Dependencies\Contracts\EqualityComparerExtensions.cs (2)
28/// <see cref="EqualityComparer{T}.Equals"/> and <see cref="EqualityComparer{T}.GetHashCode"/> methods. 30/// <param name="equals">The delegate to use to implement the <see cref="EqualityComparer{T}.Equals"/> method.</param>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (2)
102return EqualityComparer<T>.Default.Equals(value, Value) ? this : new CodeStyleOption2<T>(value, Notification); 232&& EqualityComparer<T>.Default.Equals(Value, other.Value)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ReadOnlySpanExtensions.cs (1)
17if (EqualityComparer<T>.Default.Equals(v, value))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticEquivalence.cs (1)
135? EqualityComparer<ISymbol?>.Default.Equals(info1.Symbol, info2.Symbol)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\ContextMutableIntervalTree.cs (2)
119if (EqualityComparer<T?>.Default.Equals(result, default)) 159if (EqualityComparer<T?>.Default.Equals(result, default) ||
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (1)
217if (collection.Length == 1 && EqualityComparer<TValue>.Default.Equals(collection[0], value))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IReadOnlyListExtensions.cs (1)
29if (EqualityComparer<T>.Default.Equals(list[index], value))
Microsoft.CodeAnalysis.Workspaces (36)
Editing\SyntaxGenerator.cs (1)
1576if (EqualityComparer<T>.Default.Equals(list[i], element))
FindSymbols\ReferenceLocation.cs (3)
116EqualityComparer<IAliasSymbol>.Default.Equals(this.Alias, other.Alias) && 117EqualityComparer<Location>.Default.Equals(this.Location, other.Location) && 118EqualityComparer<DocumentId>.Default.Equals(this.Document.Id, other.Document.Id) &&
src\roslyn\src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
266? EqualityComparer<V>.Default.Equals(item, (V)_value)
src\roslyn\src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
51if (defaultComparer.Equals(yi, xi))
src\roslyn\src\Dependencies\Collections\OneOrMany.cs (3)
112=> HasOneItem ? EqualityComparer<T>.Default.Equals(item, _one) : _many.Contains(item); 118return EqualityComparer<T>.Default.Equals(item, _one) ? Empty : this; 121return OneOrMany.Create(_many.WhereAsArray(static (value, item) => !EqualityComparer<T>.Default.Equals(value, item), item));
src\roslyn\src\Dependencies\Collections\RoslynImmutableInterlocked.cs (1)
569if (!priorCollection.TryGetValue(key, out var priorValue) || !valueComparer.Equals(priorValue, comparisonValue))
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
186&& EqualityComparer<TValue>.Default.Equals(value, pair.Value);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
149&& EqualityComparer<TValue>.Default.Equals(value, item.Value);
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray.cs (1)
318if (EqualityComparer<T>.Default.Equals(array[i], value))
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (8)
276if (!RoslynUnsafe.IsNullRef(ref value) && EqualityComparer<TValue>.Default.Equals(value, keyValuePair.Value)) 287if (!RoslynUnsafe.IsNullRef(ref value) && EqualityComparer<TValue>.Default.Equals(value, keyValuePair.Value)) 334if (entries[i]._next >= -1 && EqualityComparer<TValue>.Default.Equals(entries[i]._value, value)) 348if (entries[i]._next >= -1 && defaultComparer.Equals(entries[i]._value, value)) 431if (entry._hashCode == hashCode && EqualityComparer<TKey>.Default.Equals(entry._key, key)) 545if (entries[i]._hashCode == hashCode && EqualityComparer<TKey>.Default.Equals(entries[i]._key, key)) 723(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry._key, key) : comparer!.Equals(entry._key, key))) 800(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry._key, key) : comparer!.Equals(entry._key, key)))
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
242if (entry._hashCode == hashCode && EqualityComparer<T>.Default.Equals(entry._value, item)) 315if (entry._hashCode == hashCode && (comparer?.Equals(entry._value, item) ?? EqualityComparer<T>.Default.Equals(entry._value, item))) 1046if (entry._hashCode == hashCode && EqualityComparer<T>.Default.Equals(entry._value, value))
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
38return EqualityComparer<T>.Default.Equals(_loneValue, item);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (2)
102return EqualityComparer<T>.Default.Equals(value, Value) ? this : new CodeStyleOption2<T>(value, Notification); 232&& EqualityComparer<T>.Default.Equals(Value, other.Value)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticEquivalence.cs (1)
135? EqualityComparer<ISymbol?>.Default.Equals(info1.Symbol, info2.Symbol)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\ContextMutableIntervalTree.cs (2)
119if (EqualityComparer<T?>.Default.Equals(result, default)) 159if (EqualityComparer<T?>.Default.Equals(result, default) ||
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (1)
217if (collection.Length == 1 && EqualityComparer<TValue>.Default.Equals(collection[0], value))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IReadOnlyListExtensions.cs (1)
29if (EqualityComparer<T>.Default.Equals(list[index], value))
Workspace\Solution\DocumentId.cs (1)
82=> EqualityComparer<DocumentId?>.Default.Equals(left, right);
Workspace\Solution\ProjectId.cs (1)
83=> EqualityComparer<ProjectId?>.Default.Equals(left, right);
Workspace\Solution\ProjectReference.cs (1)
57=> EqualityComparer<ProjectReference>.Default.Equals(left, right);
Workspace\Solution\SolutionId.cs (1)
69=> EqualityComparer<SolutionId>.Default.Equals(left, right);
Microsoft.CSharp (2)
Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeTable.cs (2)
25EqualityComparer<TKey1>.Default.Equals(_pKey1, other._pKey1) 26&& EqualityComparer<TKey2>.Default.Equals(_pKey2, other._pKey2);
Microsoft.DotNet.TemplateLocator (2)
parent\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\ManifestVersionUpdate.cs (2)
40return EqualityComparer<ManifestId>.Default.Equals(ManifestId, other.ManifestId) && 41EqualityComparer<ManifestVersion?>.Default.Equals(NewVersion, other.NewVersion) &&
Microsoft.Extensions.Telemetry (3)
src\Shared\Memoization\MemoizedFunction.cs (3)
53public bool Equals(MemoizedFunction<TParameter, TResult>.Arg other) => EqualityComparer<TParameter>.Default.Equals(Arg1, other.Arg1); 125EqualityComparer<TParameter1>.Default.Equals(Arg1, other.Arg1) 126&& EqualityComparer<TParameter2>.Default.Equals(Arg2, other.Arg2);
Microsoft.Extensions.Validation.ValidationsGenerator (1)
Extensions\IncrementalValuesProviderExtensions.cs (1)
114if (!EqualityComparer<T>.Default.Equals(x[i], y[i]))
Microsoft.Maui.Controls (5)
Shell\ShellAppearance.cs (4)
109 if (!EqualityComparer<Color>.Default.Equals(_colorArray[i], appearance._colorArray[i])) 115 if (!EqualityComparer<Brush>.Default.Equals(_brushArray[i], appearance._brushArray[i])) 121 if (!EqualityComparer<double>.Default.Equals(_doubleArray[i], appearance._doubleArray[i])) 194 return EqualityComparer<ShellAppearance>.Default.Equals(appearance1, appearance2);
Toolbar\Toolbar.cs (1)
74 if (EqualityComparer<T>.Default.Equals(backingStore, value))
Microsoft.Maui.Controls.Foldable (2)
DualScreenInfo.cs (1)
223 if (EqualityComparer<T>.Default.Equals(backingStore, value))
TwoPaneViewLayoutGuide.cs (1)
392 if (EqualityComparer<T>.Default.Equals(backingStore, value))
Microsoft.ML.Data (1)
Data\RowCursorUtils.cs (1)
329if (compare.Equals(val, old))
Microsoft.ML.OnnxConverter (1)
OnnxMl.cs (1)
531if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(F, other.F)) return false;
Microsoft.ML.OnnxTransformer (1)
parent\Microsoft.ML.OnnxConverter\OnnxMl.cs (1)
531if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(F, other.F)) return false;
Microsoft.ML.TestFramework (4)
BaseTestBaseline.cs (1)
447equalFunc = EqualityComparer<T>.Default.Equals;
DataPipe\TestDataPipe.cs (3)
503if (EqualityComparer<TDst>.Default.Equals(dst, v)) 507if (EqualityComparer<TDst>.Default.Equals(dst, default(TDst)) && !EqualityComparer<TSrc>.Default.Equals(src, vSrc))
Microsoft.NET.Build.Tasks (2)
parent\parent\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\ManifestVersionUpdate.cs (2)
40return EqualityComparer<ManifestId>.Default.Equals(ManifestId, other.ManifestId) && 41EqualityComparer<ManifestVersion?>.Default.Equals(NewVersion, other.NewVersion) &&
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (3)
parent\parent\StaticWebAssetsSdk\Tasks\Data\StaticWebAssetPathPattern.cs (1)
563public static bool operator ==(StaticWebAssetPathPattern left, StaticWebAssetPathPattern right) => EqualityComparer<StaticWebAssetPathPattern>.Default.Equals(left, right);
parent\parent\StaticWebAssetsSdk\Tasks\Data\StaticWebAssetPathSegment.cs (1)
48public static bool operator ==(StaticWebAssetPathSegment left, StaticWebAssetPathSegment right) => EqualityComparer<StaticWebAssetPathSegment>.Default.Equals(left, right);
parent\parent\StaticWebAssetsSdk\Tasks\Data\StaticWebAssetSegmentPart.cs (1)
51public static bool operator ==(StaticWebAssetSegmentPart left, StaticWebAssetSegmentPart right) => EqualityComparer<StaticWebAssetSegmentPart>.Default.Equals(left, right);
Microsoft.NET.Sdk.StaticWebAssets.Tasks (7)
Data\StaticAssetsManifest.cs (4)
133&& EqualityComparer<ReferencedProjectConfiguration[]>.Default.Equals(ReferencedProjectsConfiguration, other.ReferencedProjectsConfiguration) 134&& EqualityComparer<StaticWebAssetsDiscoveryPattern[]>.Default.Equals(DiscoveryPatterns, other.DiscoveryPatterns) 135&& EqualityComparer<StaticWebAsset[]>.Default.Equals(Assets, other.Assets) 136&& EqualityComparer<StaticWebAssetEndpoint[]>.Default.Equals(Endpoints, other.Endpoints);
Data\StaticWebAssetPathPattern.cs (1)
563public static bool operator ==(StaticWebAssetPathPattern left, StaticWebAssetPathPattern right) => EqualityComparer<StaticWebAssetPathPattern>.Default.Equals(left, right);
Data\StaticWebAssetPathSegment.cs (1)
48public static bool operator ==(StaticWebAssetPathSegment left, StaticWebAssetPathSegment right) => EqualityComparer<StaticWebAssetPathSegment>.Default.Equals(left, right);
Data\StaticWebAssetSegmentPart.cs (1)
51public static bool operator ==(StaticWebAssetSegmentPart left, StaticWebAssetSegmentPart right) => EqualityComparer<StaticWebAssetSegmentPart>.Default.Equals(left, right);
Microsoft.NET.Sdk.WorkloadManifestReader (2)
ManifestVersionUpdate.cs (2)
40return EqualityComparer<ManifestId>.Default.Equals(ManifestId, other.ManifestId) && 41EqualityComparer<ManifestVersion?>.Default.Equals(NewVersion, other.NewVersion) &&
Microsoft.TemplateEngine.Utils (1)
EqualityExtensions.cs (1)
25comparer ??= EqualityComparer<TValue?>.Default.Equals;
NuGet.Build.Tasks (1)
RestoreSettingsUtils.cs (1)
76for (var i = 0; EqualityComparer<T>.Default.Equals(result, default(T)) && i < funcs.Length; i++)
NuGet.Commands (2)
RestoreCommand\Utility\PackageSpecFactory.cs (1)
900for (var i = 0; EqualityComparer<T>.Default.Equals(result, default) && i < funcs.Length; i++)
src\nuget-client\build\Shared\EqualityUtility.cs (1)
260Func<TValue, TValue, bool> comparerFunc = (s, o) => comparer.Equals(s, o);
NuGet.Configuration (1)
src\nuget-client\build\Shared\EqualityUtility.cs (1)
260Func<TValue, TValue, bool> comparerFunc = (s, o) => comparer.Equals(s, o);
NuGet.LibraryModel (1)
src\nuget-client\build\Shared\EqualityUtility.cs (1)
260Func<TValue, TValue, bool> comparerFunc = (s, o) => comparer.Equals(s, o);
NuGet.PackageManagement (1)
src\nuget-client\build\Shared\EqualityUtility.cs (1)
260Func<TValue, TValue, bool> comparerFunc = (s, o) => comparer.Equals(s, o);
NuGet.Packaging (2)
Core\PackageDependencyGroup.cs (1)
93return EqualityComparer<NuGetFramework>.Default.Equals(TargetFramework, other.TargetFramework)
src\nuget-client\build\Shared\EqualityUtility.cs (1)
260Func<TValue, TValue, bool> comparerFunc = (s, o) => comparer.Equals(s, o);
NuGet.ProjectModel (1)
src\nuget-client\build\Shared\EqualityUtility.cs (1)
260Func<TValue, TValue, bool> comparerFunc = (s, o) => comparer.Equals(s, o);
NuGet.Protocol (1)
src\nuget-client\build\Shared\EqualityUtility.cs (1)
260Func<TValue, TValue, bool> comparerFunc = (s, o) => comparer.Equals(s, o);
NuGet.Versioning (1)
src\nuget-client\build\Shared\EqualityUtility.cs (1)
260Func<TValue, TValue, bool> comparerFunc = (s, o) => comparer.Equals(s, o);
PresentationFramework (1)
MS\Internal\WindowsRuntime\Generated\WinRT\Projections\IReadOnlyList.cs (1)
152if (EqualityComparer<T>.Default.Equals(value, _list[i]))
RepoTasks (1)
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
417EqualityComparer<string>.Default.Equals(x?.Thumbprint, y?.Thumbprint);
Roslyn.Diagnostics.Analyzers (31)
src\roslyn\src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
266? EqualityComparer<V>.Default.Equals(item, (V)_value)
src\roslyn\src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
51if (defaultComparer.Equals(yi, xi))
src\roslyn\src\Dependencies\Collections\OneOrMany.cs (3)
112=> HasOneItem ? EqualityComparer<T>.Default.Equals(item, _one) : _many.Contains(item); 118return EqualityComparer<T>.Default.Equals(item, _one) ? Empty : this; 121return OneOrMany.Create(_many.WhereAsArray(static (value, item) => !EqualityComparer<T>.Default.Equals(value, item), item));
src\roslyn\src\Dependencies\Collections\RoslynImmutableInterlocked.cs (1)
569if (!priorCollection.TryGetValue(key, out var priorValue) || !valueComparer.Equals(priorValue, comparisonValue))
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
186&& EqualityComparer<TValue>.Default.Equals(value, pair.Value);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
149&& EqualityComparer<TValue>.Default.Equals(value, item.Value);
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray.cs (1)
318if (EqualityComparer<T>.Default.Equals(array[i], value))
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (8)
276if (!RoslynUnsafe.IsNullRef(ref value) && EqualityComparer<TValue>.Default.Equals(value, keyValuePair.Value)) 287if (!RoslynUnsafe.IsNullRef(ref value) && EqualityComparer<TValue>.Default.Equals(value, keyValuePair.Value)) 334if (entries[i]._next >= -1 && EqualityComparer<TValue>.Default.Equals(entries[i]._value, value)) 348if (entries[i]._next >= -1 && defaultComparer.Equals(entries[i]._value, value)) 431if (entry._hashCode == hashCode && EqualityComparer<TKey>.Default.Equals(entry._key, key)) 545if (entries[i]._hashCode == hashCode && EqualityComparer<TKey>.Default.Equals(entries[i]._key, key)) 723(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry._key, key) : comparer!.Equals(entry._key, key))) 800(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry._key, key) : comparer!.Equals(entry._key, key)))
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
242if (entry._hashCode == hashCode && EqualityComparer<T>.Default.Equals(entry._value, item)) 315if (entry._hashCode == hashCode && (comparer?.Equals(entry._value, item) ?? EqualityComparer<T>.Default.Equals(entry._value, item))) 1046if (entry._hashCode == hashCode && EqualityComparer<T>.Default.Equals(entry._value, value))
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
38return EqualityComparer<T>.Default.Equals(_loneValue, item);
src\roslyn\src\Dependencies\Contracts\EqualityComparerExtensions.cs (2)
28/// <see cref="EqualityComparer{T}.Equals"/> and <see cref="EqualityComparer{T}.GetHashCode"/> methods. 30/// <param name="equals">The delegate to use to implement the <see cref="EqualityComparer{T}.Equals"/> method.</param>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (2)
102return EqualityComparer<T>.Default.Equals(value, Value) ? this : new CodeStyleOption2<T>(value, Notification); 232&& EqualityComparer<T>.Default.Equals(Value, other.Value)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ReadOnlySpanExtensions.cs (1)
17if (EqualityComparer<T>.Default.Equals(v, value))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticEquivalence.cs (1)
135? EqualityComparer<ISymbol?>.Default.Equals(info1.Symbol, info2.Symbol)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\ContextMutableIntervalTree.cs (2)
119if (EqualityComparer<T?>.Default.Equals(result, default)) 159if (EqualityComparer<T?>.Default.Equals(result, default) ||
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (1)
217if (collection.Length == 1 && EqualityComparer<TValue>.Default.Equals(collection[0], value))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IReadOnlyListExtensions.cs (1)
29if (EqualityComparer<T>.Default.Equals(list[index], value))
Shared (3)
Memoization\MemoizedFunction.cs (3)
53public bool Equals(MemoizedFunction<TParameter, TResult>.Arg other) => EqualityComparer<TParameter>.Default.Equals(Arg1, other.Arg1); 125EqualityComparer<TParameter1>.Default.Equals(Arg1, other.Arg1) 126&& EqualityComparer<TParameter2>.Default.Equals(Arg2, other.Arg2);
Stress.ApiService (13)
artifacts\obj\Stress.ApiService\Debug\net8.0\opentelemetry\proto\common\v1\Common.cs (1)
331if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleValue, other.DoubleValue)) return false;
artifacts\obj\Stress.ApiService\Debug\net8.0\opentelemetry\proto\metrics\v1\Metrics.cs (12)
3039if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(AsDouble, other.AsDouble)) return false; 3624if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Sum, other.Sum)) return false; 3629if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Min, other.Min)) return false; 3630if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Max, other.Max)) return false; 4335if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Sum, other.Sum)) return false; 4342if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Min, other.Min)) return false; 4343if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Max, other.Max)) return false; 4344if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ZeroThreshold, other.ZeroThreshold)) return false; 5217if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Sum, other.Sum)) return false; 5570if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Quantile, other.Quantile)) return false; 5571if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Value, other.Value)) return false; 5946if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(AsDouble, other.AsDouble)) return false;
Stress.TelemetryService (13)
artifacts\obj\Stress.TelemetryService\Debug\net8.0\opentelemetry\proto\common\v1\Common.cs (1)
331if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleValue, other.DoubleValue)) return false;
artifacts\obj\Stress.TelemetryService\Debug\net8.0\opentelemetry\proto\metrics\v1\Metrics.cs (12)
3039if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(AsDouble, other.AsDouble)) return false; 3624if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Sum, other.Sum)) return false; 3629if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Min, other.Min)) return false; 3630if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Max, other.Max)) return false; 4335if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Sum, other.Sum)) return false; 4342if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Min, other.Min)) return false; 4343if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Max, other.Max)) return false; 4344if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ZeroThreshold, other.ZeroThreshold)) return false; 5217if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Sum, other.Sum)) return false; 5570if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Quantile, other.Quantile)) return false; 5571if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Value, other.Value)) return false; 5946if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(AsDouble, other.AsDouble)) return false;
System.Collections (18)
System\Collections\Generic\LinkedList.cs (2)
231if (c.Equals(node!.item, value)) 266if (c.Equals(node!.item, value))
System\Collections\Generic\OrderedDictionary.cs (10)
564if (EqualityComparer<TValue>.Default.Equals(value, entries[i].Value)) 575if (comparer.Equals(value, entries[i].Value)) 651if (entry.HashCode == hashCode && EqualityComparer<TKey>.Default.Equals(entry.Key, key)) 827if (EqualityComparer<TKey>.Default.Equals(key, e.Key)) 1178if (EqualityComparer<TValue>.Default.Equals(item.Value, _entries[index].Value)) 1200EqualityComparer<TValue>.Default.Equals(value, item.Value); 1223if (TryGetValue(item.Key, out TValue? value, out int index) && EqualityComparer<TValue>.Default.Equals(value, item.Value)) 1342EqualityComparer<TValue>.Default.Equals(v, pair.Value); 1752if (EqualityComparer<TValue>.Default.Equals(item, entries[i].Value)) 1811if (EqualityComparer<TValue>.Default.Equals(tvalue, entries[i].Value))
System\Collections\Generic\PriorityQueue.cs (1)
889if (EqualityComparer<TElement>.Default.Equals(element, nodes[i].Element))
System\Collections\Generic\SortedDictionary.cs (3)
78return EqualityComparer<TValue>.Default.Equals(node.Item.Value, keyValuePair.Value); 90if (EqualityComparer<TValue>.Default.Equals(node.Item.Value, keyValuePair.Value)) 228if (valueComparer.Equals(node.Item.Value, value))
System\Collections\Generic\SortedList.cs (2)
197if (index >= 0 && EqualityComparer<TValue>.Default.Equals(values[index], keyValuePair.Value)) 207if (index >= 0 && EqualityComparer<TValue>.Default.Equals(values[index], keyValuePair.Value))
System.Collections.Immutable (10)
System\Collections\Frozen\FrozenDictionary.cs (1)
604EqualityComparer<TValue>.Default.Equals(value, item.Value);
System\Collections\Frozen\SmallValueTypeDefaultComparerFrozenDictionary.cs (1)
41if (EqualityComparer<TKey>.Default.Equals(keys[i], key))
System\Collections\Frozen\SmallValueTypeDefaultComparerFrozenSet.cs (1)
36if (EqualityComparer<T>.Default.Equals(item, items[i]))
System\Collections\Frozen\ValueTypeDefaultComparerFrozenDictionary.cs (1)
32if (EqualityComparer<TKey>.Default.Equals(key, _keys[index]))
System\Collections\Frozen\ValueTypeDefaultComparerFrozenSet.cs (1)
29if (EqualityComparer<T>.Default.Equals(item, _items[index]))
System\Collections\Immutable\ImmutableHashSet_1.cs (2)
746if (EqualityComparer<IEqualityComparer<T>>.Default.Equals(origin.EqualityComparer, otherAsImmutableHashSet.KeyComparer)) 762if (EqualityComparer<IEqualityComparer<T>>.Default.Equals(origin.EqualityComparer, otherAsHashset.Comparer))
System\Collections\Immutable\ImmutableInterlocked.cs (1)
480if (!priorCollection.TryGetValue(key, out priorValue!) || !valueComparer.Equals(priorValue, comparisonValue))
System\Collections\Immutable\ImmutableSortedSet_1.cs (2)
381if (EqualityComparer<IComparer<T>>.Default.Equals(this.KeyComparer, otherAsImmutableSortedSet.KeyComparer)) 397if (EqualityComparer<IComparer<T>>.Default.Equals(this.KeyComparer, otherAsSortedSet.Comparer))
System.Linq (23)
System\Linq\AppendPrepend.SpeedOpt.cs (2)
181EqualityComparer<TSource>.Default.Equals(_item, value) || 292if (EqualityComparer<TSource>.Default.Equals(node.Item, value))
System\Linq\Cast.SpeedOpt.cs (1)
118if (EqualityComparer<TResult>.Default.Equals(item, value))
System\Linq\Contains.cs (1)
57if (EqualityComparer<TSource>.Default.Equals(element, value))
System\Linq\DefaultIfEmpty.SpeedOpt.cs (3)
93EqualityComparer<TSource>.Default.Equals(value, _default); 101return EqualityComparer<TSource>.Default.Equals(value, _default); 106if (EqualityComparer<TSource>.Default.Equals(enumerator.Current, value))
System\Linq\OfType.SpeedOpt.cs (1)
189if (item is TResult castItem && EqualityComparer<TResult>.Default.Equals(castItem, value))
System\Linq\Repeat.SpeedOpt.cs (1)
87return EqualityComparer<TResult>.Default.Equals(_current, item);
System\Linq\Select.SpeedOpt.cs (5)
240if (EqualityComparer<TResult>.Default.Equals(_selector(item), value)) 384if (EqualityComparer<TResult>.Default.Equals(_selector(i), value)) 501if (EqualityComparer<TResult>.Default.Equals(_selector(_source[i]), value)) 619if (EqualityComparer<TResult>.Default.Equals(_selector(_source[i]), value)) 1015if (EqualityComparer<TResult>.Default.Equals(_selector(_source[i]), value))
System\Linq\Shuffle.SpeedOpt.cs (3)
308if (EqualityComparer<TSource>.Default.Equals(list[i], value)) 327if (EqualityComparer<TSource>.Default.Equals(item, value)) 339if (EqualityComparer<TSource>.Default.Equals(item, value))
System\Linq\SkipTake.SpeedOpt.cs (1)
184if (EqualityComparer<TSource>.Default.Equals(source[i], item))
System\Linq\Where.SpeedOpt.cs (5)
159if (predicate(item) && EqualityComparer<TSource>.Default.Equals(item, value)) 304if (predicate(item) && EqualityComparer<TSource>.Default.Equals(item, value)) 388if (predicate(item) && EqualityComparer<TSource>.Default.Equals(item, value)) 536if (predicate(item) && EqualityComparer<TResult>.Default.Equals(selector(item), value)) 717if (predicate(item) && EqualityComparer<TResult>.Default.Equals(_selector(item), value))
System.Linq.Expressions (3)
System\Dynamic\Utils\CollectionExtensions.cs (1)
114if (!cmp.Equals(first[i], second[i]))
System\Dynamic\Utils\Helpers.cs (1)
15if (cmp.Equals(first, second))
System\Linq\Expressions\Interpreter\LabelInfo.cs (1)
222if (cmp.Equals(first, second))
System.Numerics.Tensors (2)
System\Numerics\Tensors\netcore\TensorPrimitives.HammingDistance.cs (2)
180if (!EqualityComparer<T>.Default.Equals(x[i], y[i])) 191if (!comparer.Equals(x[i], y[i]))
System.ObjectModel (1)
System\Collections\ObjectModel\KeyedCollection.cs (1)
126return EqualityComparer<TItem>.Default.Equals(itemInDict, item);
System.Private.CoreLib (126)
Internal\IntrinsicSupport\EqualityComparerHelpers.cs (1)
174return EqualityComparer<T>.Default.Equals(left, right);
src\runtime\src\libraries\System.Private.CoreLib\src\System\ArgumentOutOfRangeException.cs (2)
162if (EqualityComparer<T>.Default.Equals(value, other)) 172if (!EqualityComparer<T>.Default.Equals(value, other))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Concurrent\ConcurrentDictionary.cs (6)
326EqualityComparer<TKey>.Default.Equals(node._key, key) : 476bool valuesMatch = EqualityComparer<TValue>.Default.Equals(oldValue, curr._value); 533if (hashcode == n._hashcode && EqualityComparer<TKey>.Default.Equals(n._key, key)) 567if (hashcode == n._hashcode && EqualityComparer<TKey>.Default.Equals(n._key, key)) 669if (valueComparer.Equals(node._value, comparisonValue)) 1615EqualityComparer<TValue>.Default.Equals(value, keyValuePair.Value);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (9)
260if (!Unsafe.IsNullRef(ref value) && EqualityComparer<TValue>.Default.Equals(value, keyValuePair.Value)) 271if (!Unsafe.IsNullRef(ref value) && EqualityComparer<TValue>.Default.Equals(value, keyValuePair.Value)) 318if (entries![i].next >= -1 && EqualityComparer<TValue>.Default.Equals(entries[i].value, value)) 332if (entries![i].next >= -1 && defaultComparer.Equals(entries[i].value, value)) 429if (entry.hashCode == hashCode && EqualityComparer<TKey>.Default.Equals(entry.key, key)) 539if (entries[i].hashCode == hashCode && EqualityComparer<TKey>.Default.Equals(entries[i].key, key)) 1104if (entries[i].hashCode == hashCode && EqualityComparer<TKey>.Default.Equals(entries[i].key, key)) 1326if (entry.hashCode == hashCode && EqualityComparer<TKey>.Default.Equals(entry.key, key)) 1452if (entry.hashCode == hashCode && EqualityComparer<TKey>.Default.Equals(entry.key, key))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\EqualityComparer.cs (4)
18/// <see cref="EqualityComparer{T}.Equals"/> and <see cref="EqualityComparer{T}.GetHashCode"/> methods. 20/// <param name="equals">The delegate to use to implement the <see cref="EqualityComparer{T}.Equals"/> method.</param> 75if ((x is T) && (y is T)) return Equals((T)x, (T)y); 187if (y.HasValue) return EqualityComparer<T>.Default.Equals(x.value, y.value);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\HashSet.cs (3)
230if (entry.HashCode == hashCode && EqualityComparer<T>.Default.Equals(entry.Value, item)) 307if (entry.HashCode == hashCode && (comparer?.Equals(entry.Value, item) ?? EqualityComparer<T>.Default.Equals(entry.Value, item))) 1482if (entry.HashCode == hashCode && EqualityComparer<T>.Default.Equals(entry.Value, value))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\HashSetEqualityComparer.cs (1)
40if (defaultComparer.Equals(yi, xi))
src\runtime\src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (31)
899if (!EqualityComparer<T>.Default.Equals(span[i], value)) 1003if (!EqualityComparer<T>.Default.Equals(span[i], value0) && 1004!EqualityComparer<T>.Default.Equals(span[i], value1)) 1115if (!EqualityComparer<T>.Default.Equals(span[i], value0) && 1116!EqualityComparer<T>.Default.Equals(span[i], value1) && 1117!EqualityComparer<T>.Default.Equals(span[i], value2)) 1477if (!EqualityComparer<T>.Default.Equals(span[i], value)) 1581if (!EqualityComparer<T>.Default.Equals(span[i], value0) && 1582!EqualityComparer<T>.Default.Equals(span[i], value1)) 1693if (!EqualityComparer<T>.Default.Equals(span[i], value0) && 1694!EqualityComparer<T>.Default.Equals(span[i], value1) && 1695!EqualityComparer<T>.Default.Equals(span[i], value2)) 2285if (EqualityComparer<T>.Default.Equals(span[i], value)) 2490if (EqualityComparer<T>.Default.Equals(span[i], value)) 2730if (EqualityComparer<T>.Default.Equals(span[i], value0) || 2731EqualityComparer<T>.Default.Equals(span[i], value1)) 2835if (EqualityComparer<T>.Default.Equals(span[i], value0) || 2836EqualityComparer<T>.Default.Equals(span[i], value1) || 2837EqualityComparer<T>.Default.Equals(span[i], value2)) 3150if (EqualityComparer<T>.Default.Equals(span[i], value0) || 3151EqualityComparer<T>.Default.Equals(span[i], value1)) 3256if (EqualityComparer<T>.Default.Equals(span[i], value0) || 3257EqualityComparer<T>.Default.Equals(span[i], value1) || 3258EqualityComparer<T>.Default.Equals(span[i], value2)) 3506if (!EqualityComparer<T>.Default.Equals(span[i], other[i])) 3686(comparer is null ? EqualityComparer<T>.Default.Equals(span[0], value) : comparer.Equals(span[0], value)); 3710(comparer is null ? EqualityComparer<T>.Default.Equals(span[^1], value) : comparer.Equals(span[^1], value)); 4595if (EqualityComparer<T>.Default.Equals(span[i], oldValue)) 4792destination[i] = EqualityComparer<T>.Default.Equals(source[i], oldValue) ? newValue : source[i]; 4968if (!EqualityComparer<T>.Default.Equals(span[i], other[i])) 5515if (EqualityComparer<T>.Default.Equals(span[i], value))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Nullable.cs (1)
94if (n2.HasValue) return EqualityComparer<T>.Default.Equals(n1.value, n2.value);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Colors\Argb.T.cs (4)
106return comparer.Equals(A, other.A) && 107comparer.Equals(R, other.R) && 108comparer.Equals(G, other.G) && 109comparer.Equals(B, other.B);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Colors\Rgba.T.cs (4)
106return comparer.Equals(R, other.R) && 107comparer.Equals(G, other.G) && 108comparer.Equals(B, other.B) && 109comparer.Equals(A, other.A);
src\runtime\src\libraries\System.Private.CoreLib\src\System\SpanHelpers.T.cs (21)
1183if (!EqualityComparer<T>.Default.Equals(Unsafe.Add(ref searchSpace, i), value0)) 1198if (!EqualityComparer<T>.Default.Equals(Unsafe.Add(ref searchSpace, i), value0)) 1214if (!EqualityComparer<T>.Default.Equals(current, value0) && !EqualityComparer<T>.Default.Equals(current, value1)) 1230if (!EqualityComparer<T>.Default.Equals(current, value0) && !EqualityComparer<T>.Default.Equals(current, value1)) 1246if (!EqualityComparer<T>.Default.Equals(current, value0) 1247&& !EqualityComparer<T>.Default.Equals(current, value1) 1248&& !EqualityComparer<T>.Default.Equals(current, value2)) 1264if (!EqualityComparer<T>.Default.Equals(current, value0) 1265&& !EqualityComparer<T>.Default.Equals(current, value1) 1266&& !EqualityComparer<T>.Default.Equals(current, value2)) 1282if (!EqualityComparer<T>.Default.Equals(current, value0) 1283&& !EqualityComparer<T>.Default.Equals(current, value1) 1284&& !EqualityComparer<T>.Default.Equals(current, value2) 1285&& !EqualityComparer<T>.Default.Equals(current, value3)) 1301if (!EqualityComparer<T>.Default.Equals(current, value0) 1302&& !EqualityComparer<T>.Default.Equals(current, value1) 1303&& !EqualityComparer<T>.Default.Equals(current, value2) 1304&& !EqualityComparer<T>.Default.Equals(current, value3)) 3461Unsafe.Add(ref dst, idx) = EqualityComparer<T>.Default.Equals(original, oldValue) ? newValue : original;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\ValueTask.cs (1)
565EqualityComparer<TResult>.Default.Equals(_result, other._result);
src\runtime\src\libraries\System.Private.CoreLib\src\System\ValueTuple.cs (36)
310return EqualityComparer<T1>.Default.Equals(Item1, other.Item1); 481return EqualityComparer<T1>.Default.Equals(Item1, other.Item1) 482&& EqualityComparer<T2>.Default.Equals(Item2, other.Item2); 688return EqualityComparer<T1>.Default.Equals(Item1, other.Item1) 689&& EqualityComparer<T2>.Default.Equals(Item2, other.Item2) 690&& EqualityComparer<T3>.Default.Equals(Item3, other.Item3); 893return EqualityComparer<T1>.Default.Equals(Item1, other.Item1) 894&& EqualityComparer<T2>.Default.Equals(Item2, other.Item2) 895&& EqualityComparer<T3>.Default.Equals(Item3, other.Item3) 896&& EqualityComparer<T4>.Default.Equals(Item4, other.Item4); 1116return EqualityComparer<T1>.Default.Equals(Item1, other.Item1) 1117&& EqualityComparer<T2>.Default.Equals(Item2, other.Item2) 1118&& EqualityComparer<T3>.Default.Equals(Item3, other.Item3) 1119&& EqualityComparer<T4>.Default.Equals(Item4, other.Item4) 1120&& EqualityComparer<T5>.Default.Equals(Item5, other.Item5); 1357return EqualityComparer<T1>.Default.Equals(Item1, other.Item1) 1358&& EqualityComparer<T2>.Default.Equals(Item2, other.Item2) 1359&& EqualityComparer<T3>.Default.Equals(Item3, other.Item3) 1360&& EqualityComparer<T4>.Default.Equals(Item4, other.Item4) 1361&& EqualityComparer<T5>.Default.Equals(Item5, other.Item5) 1362&& EqualityComparer<T6>.Default.Equals(Item6, other.Item6); 1616return EqualityComparer<T1>.Default.Equals(Item1, other.Item1) 1617&& EqualityComparer<T2>.Default.Equals(Item2, other.Item2) 1618&& EqualityComparer<T3>.Default.Equals(Item3, other.Item3) 1619&& EqualityComparer<T4>.Default.Equals(Item4, other.Item4) 1620&& EqualityComparer<T5>.Default.Equals(Item5, other.Item5) 1621&& EqualityComparer<T6>.Default.Equals(Item6, other.Item6) 1622&& EqualityComparer<T7>.Default.Equals(Item7, other.Item7); 1899return EqualityComparer<T1>.Default.Equals(Item1, other.Item1) 1900&& EqualityComparer<T2>.Default.Equals(Item2, other.Item2) 1901&& EqualityComparer<T3>.Default.Equals(Item3, other.Item3) 1902&& EqualityComparer<T4>.Default.Equals(Item4, other.Item4) 1903&& EqualityComparer<T5>.Default.Equals(Item5, other.Item5) 1904&& EqualityComparer<T6>.Default.Equals(Item6, other.Item6) 1905&& EqualityComparer<T7>.Default.Equals(Item7, other.Item7) 1906&& EqualityComparer<TRest>.Default.Equals(Rest, other.Rest);
System\Array.NativeAot.cs (2)
469if (comparer.Equals(array[i], value)) 495if (comparer.Equals(array[i], value))
System.Private.Xml (1)
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (1)
337if (!hasDefault || !EqualityComparer<T>.Default.Equals(value, defaultValue))
System.ServiceModel.Primitives (1)
System\ServiceModel\SynchronizedKeyedCollection.cs (1)
195return EqualityComparer<T>.Default.Equals(item, itemInDict);
System.Text.Json (3)
System\Text\Json\Nodes\JsonValueOfTPrimitive.cs (1)
36return EqualityComparer<TValue>.Default.Equals(Value, v);
System\Text\Json\Serialization\Metadata\JsonPropertyInfoOfT.cs (2)
449return default(T) is null ? value is not null : !EqualityComparer<T>.Default.Equals(default, value); 455return default(T) is null ? value is null : EqualityComparer<T>.Default.Equals(default, value);
System.Text.RegularExpressions (4)
System\Text\RegularExpressions\CaptureCollection.cs (1)
206if (EqualityComparer<Capture>.Default.Equals(this[i], item))
System\Text\RegularExpressions\GroupCollection.cs (1)
262if (EqualityComparer<Group>.Default.Equals(this[i], item))
System\Text\RegularExpressions\Symbolic\SymbolicRegexBuilder.cs (2)
79EqualityComparer<TSet>.Default.Equals(Set, other.Set) && 80EqualityComparer<SymbolicRegexInfo>.Default.Equals(Info, other.Info);
System.Text.RegularExpressions.Generator (2)
src\runtime\src\libraries\Common\src\Polyfills\MemoryExtensionsPolyfills.cs (2)
35if (EqualityComparer<T>.Default.Equals(span[i], value)) 48while (i < length && EqualityComparer<T>.Default.Equals(span[i], other[i]))
System.Xaml (21)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Utility\FrugalList.cs (21)
262return EqualityComparer<T>.Default.Equals(_loneEntry, value); 267if (EqualityComparer<T>.Default.Equals(_loneEntry, value)) 297if (EqualityComparer<T>.Default.Equals(_loneEntry, value)) 430if (EqualityComparer<T>.Default.Equals(_entry0, value)) 437if (EqualityComparer<T>.Default.Equals(_entry1, value)) 442if ((_count == 3) && EqualityComparer<T>.Default.Equals(_entry2, value)) 511if (EqualityComparer<T>.Default.Equals(_entry0, value)) 518if (EqualityComparer<T>.Default.Equals(_entry1, value)) 523else if ((_count == 3) && EqualityComparer<T>.Default.Equals(_entry2, value)) 776if (EqualityComparer<T>.Default.Equals(_entry0, value)) 783if (EqualityComparer<T>.Default.Equals(_entry1, value)) 790if (EqualityComparer<T>.Default.Equals(_entry2, value)) 797if (EqualityComparer<T>.Default.Equals(_entry3, value)) 804if (EqualityComparer<T>.Default.Equals(_entry4, value)) 809if ((_count == 6) && EqualityComparer<T>.Default.Equals(_entry5, value)) 917if (EqualityComparer<T>.Default.Equals(_entry0, value)) 924if (EqualityComparer<T>.Default.Equals(_entry1, value)) 931if (EqualityComparer<T>.Default.Equals(_entry2, value)) 938if (EqualityComparer<T>.Default.Equals(_entry3, value)) 945if (EqualityComparer<T>.Default.Equals(_entry4, value)) 950else if ((_count == 6) && EqualityComparer<T>.Default.Equals(_entry5, value))