1611 references to Equals
aspire (10)
Resources\AddCommandStrings.Designer.cs (1)
30if (object.Equals(null, resourceMan)) {
Resources\ConfigCommandStrings.Designer.cs (1)
30if (object.Equals(null, resourceMan)) {
Resources\ErrorStrings.Designer.cs (1)
30if (object.Equals(null, resourceMan)) {
Resources\InteractionServiceStrings.Designer.cs (1)
30if (object.Equals(null, resourceMan)) {
Resources\NewCommandStrings.Designer.cs (1)
30if (object.Equals(null, resourceMan)) {
Resources\PublishCommandStrings.Designer.cs (1)
30if (object.Equals(null, resourceMan)) {
Resources\RootCommandStrings.Designer.cs (1)
30if (object.Equals(null, resourceMan)) {
Resources\RunCommandStrings.Designer.cs (1)
30if (object.Equals(null, resourceMan)) {
Resources\TemplatingStrings.Designer.cs (1)
30if (object.Equals(null, resourceMan)) {
src\Shared\CircularBuffer.cs (1)
62if (Equals(this[index], item))
Aspire.Dashboard (120)
artifacts\obj\Aspire.Dashboard\Debug\net8.0\DashboardService.cs (49)
308return Equals(_unknownFields, other._unknownFields); 483return Equals(_unknownFields, other._unknownFields); 886if (!object.Equals(Parameter, other.Parameter)) return false; 892return Equals(_unknownFields, other._unknownFields); 1345if (!object.Equals(Parameter, other.Parameter)) return false; 1346return Equals(_unknownFields, other._unknownFields); 1650return Equals(_unknownFields, other._unknownFields); 1929return Equals(_unknownFields, other._unknownFields); 2205return Equals(_unknownFields, other._unknownFields); 2535if (!object.Equals(DisplayProperties, other.DisplayProperties)) return false; 2536return Equals(_unknownFields, other._unknownFields); 2855return Equals(_unknownFields, other._unknownFields); 3133return Equals(_unknownFields, other._unknownFields); 3471return Equals(_unknownFields, other._unknownFields); 3758return Equals(_unknownFields, other._unknownFields); 4065if (!object.Equals(Value, other.Value)) return false; 4067return Equals(_unknownFields, other._unknownFields); 4629if (!object.Equals(CreatedAt, other.CreatedAt)) return false; 4637if (!object.Equals(StartedAt, other.StartedAt)) return false; 4638if (!object.Equals(StoppedAt, other.StoppedAt)) return false; 4642return Equals(_unknownFields, other._unknownFields); 5203return Equals(_unknownFields, other._unknownFields); 5418return Equals(_unknownFields, other._unknownFields); 5679if (!object.Equals(Delete, other.Delete)) return false; 5680if (!object.Equals(Upsert, other.Upsert)) return false; 5682return Equals(_unknownFields, other._unknownFields); 5932return Equals(_unknownFields, other._unknownFields); 6143return Equals(_unknownFields, other._unknownFields); 6391if (!object.Equals(InitialData, other.InitialData)) return false; 6392if (!object.Equals(Changes, other.Changes)) return false; 6394return Equals(_unknownFields, other._unknownFields); 6693return Equals(_unknownFields, other._unknownFields); 6961return Equals(_unknownFields, other._unknownFields); 7185return Equals(_unknownFields, other._unknownFields); 7465if (!object.Equals(Complete, other.Complete)) return false; 7466if (!object.Equals(MessageBox, other.MessageBox)) return false; 7467if (!object.Equals(InputsDialog, other.InputsDialog)) return false; 7468if (!object.Equals(MessageBar, other.MessageBar)) return false; 7470return Equals(_unknownFields, other._unknownFields); 8006if (!object.Equals(Complete, other.Complete)) return false; 8007if (!object.Equals(MessageBox, other.MessageBox)) return false; 8008if (!object.Equals(InputsDialog, other.InputsDialog)) return false; 8009if (!object.Equals(MessageBar, other.MessageBar)) return false; 8011return Equals(_unknownFields, other._unknownFields); 8507return Equals(_unknownFields, other._unknownFields); 8716return Equals(_unknownFields, other._unknownFields); 8999return Equals(_unknownFields, other._unknownFields); 9268return Equals(_unknownFields, other._unknownFields); 9541return Equals(_unknownFields, other._unknownFields);
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\collector\logs\v1\LogsService.cs (4)
135return Equals(_unknownFields, other._unknownFields); 339if (!object.Equals(PartialSuccess, other.PartialSuccess)) return false; 340return Equals(_unknownFields, other._unknownFields); 576return Equals(_unknownFields, other._unknownFields);
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\collector\metrics\v1\MetricsService.cs (4)
137return Equals(_unknownFields, other._unknownFields); 341if (!object.Equals(PartialSuccess, other.PartialSuccess)) return false; 342return Equals(_unknownFields, other._unknownFields); 578return Equals(_unknownFields, other._unknownFields);
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\collector\trace\v1\TraceService.cs (4)
136return Equals(_unknownFields, other._unknownFields); 340if (!object.Equals(PartialSuccess, other.PartialSuccess)) return false; 341return Equals(_unknownFields, other._unknownFields); 577return Equals(_unknownFields, other._unknownFields);
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\common\v1\Common.cs (8)
332if (!object.Equals(ArrayValue, other.ArrayValue)) return false; 333if (!object.Equals(KvlistValue, other.KvlistValue)) return false; 336return Equals(_unknownFields, other._unknownFields); 708return Equals(_unknownFields, other._unknownFields); 908return Equals(_unknownFields, other._unknownFields); 1113if (!object.Equals(Value, other.Value)) return false; 1114return Equals(_unknownFields, other._unknownFields); 1397return Equals(_unknownFields, other._unknownFields);
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\logs\v1\Logs.cs (7)
229return Equals(_unknownFields, other._unknownFields); 455if (!object.Equals(Resource, other.Resource)) return false; 458return Equals(_unknownFields, other._unknownFields); 739if (!object.Equals(Scope, other.Scope)) return false; 742return Equals(_unknownFields, other._unknownFields); 1182if (!object.Equals(Body, other.Body)) return false; 1188return Equals(_unknownFields, other._unknownFields);
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\metrics\v1\Metrics.cs (25)
329return Equals(_unknownFields, other._unknownFields); 555if (!object.Equals(Resource, other.Resource)) return false; 558return Equals(_unknownFields, other._unknownFields); 839if (!object.Equals(Scope, other.Scope)) return false; 842return Equals(_unknownFields, other._unknownFields); 1311if (!object.Equals(Gauge, other.Gauge)) return false; 1312if (!object.Equals(Sum, other.Sum)) return false; 1313if (!object.Equals(Histogram, other.Histogram)) return false; 1314if (!object.Equals(ExponentialHistogram, other.ExponentialHistogram)) return false; 1315if (!object.Equals(Summary, other.Summary)) return false; 1317return Equals(_unknownFields, other._unknownFields); 1755return Equals(_unknownFields, other._unknownFields); 1981return Equals(_unknownFields, other._unknownFields); 2236return Equals(_unknownFields, other._unknownFields); 2468return Equals(_unknownFields, other._unknownFields); 2686return Equals(_unknownFields, other._unknownFields); 3044return Equals(_unknownFields, other._unknownFields); 3631return Equals(_unknownFields, other._unknownFields); 4338if (!object.Equals(Positive, other.Positive)) return false; 4339if (!object.Equals(Negative, other.Negative)) return false; 4345return Equals(_unknownFields, other._unknownFields); 4876return Equals(_unknownFields, other._unknownFields); 5220return Equals(_unknownFields, other._unknownFields); 5572return Equals(_unknownFields, other._unknownFields); 5951return Equals(_unknownFields, other._unknownFields);
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\resource\v1\Resource.cs (1)
144return Equals(_unknownFields, other._unknownFields);
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\trace\v1\Trace.cs (10)
175return Equals(_unknownFields, other._unknownFields); 401if (!object.Equals(Resource, other.Resource)) return false; 404return Equals(_unknownFields, other._unknownFields); 685if (!object.Equals(Scope, other.Scope)) return false; 688return Equals(_unknownFields, other._unknownFields); 1225if (!object.Equals(Status, other.Status)) return false; 1226return Equals(_unknownFields, other._unknownFields); 1828return Equals(_unknownFields, other._unknownFields); 2165return Equals(_unknownFields, other._unknownFields); 2474return Equals(_unknownFields, other._unknownFields);
Components\Controls\Chart\MetricTable.razor.cs (1)
52if (!Equals(_instrument?.Name, InstrumentViewModel.Instrument?.Name) || _showCount != InstrumentViewModel.ShowCount)
Components\Layout\MainLayout.razor.cs (2)
180if (Equals(_openPageDialog.Id, HelpDialogId)) 215if (Equals(_openPageDialog.Id, SettingsDialogId))
Extensions\CollectionExtensions.cs (1)
15return !array.Where((t, i) => !Equals(t, other[i])).Any();
Otlp\Model\MetricValues\MetricValue.cs (1)
47&& Equals(Value, other.Value);
Resources\Metrics.Designer.cs (1)
30if (object.Equals(null, resourceMan)) {
Resources\TraceDetail.Designer.cs (1)
30if (object.Equals(null, resourceMan)) {
src\Shared\CircularBuffer.cs (1)
62if (Equals(this[index], item))
Aspire.Dashboard.Components.Tests (1)
tests\Shared\Logging\LogValuesAssert.cs (1)
61return string.Equals(x.Key, y.Key) && object.Equals(x.Value, y.Value);
Aspire.Dashboard.Tests (1)
tests\Shared\Logging\LogValuesAssert.cs (1)
61return string.Equals(x.Key, y.Key) && object.Equals(x.Value, y.Value);
Aspire.Hosting (50)
artifacts\obj\Aspire.Hosting\Debug\net8.0\Dashboard\proto\DashboardService.cs (49)
309return Equals(_unknownFields, other._unknownFields); 484return Equals(_unknownFields, other._unknownFields); 887if (!object.Equals(Parameter, other.Parameter)) return false; 893return Equals(_unknownFields, other._unknownFields); 1346if (!object.Equals(Parameter, other.Parameter)) return false; 1347return Equals(_unknownFields, other._unknownFields); 1651return Equals(_unknownFields, other._unknownFields); 1930return Equals(_unknownFields, other._unknownFields); 2206return Equals(_unknownFields, other._unknownFields); 2536if (!object.Equals(DisplayProperties, other.DisplayProperties)) return false; 2537return Equals(_unknownFields, other._unknownFields); 2856return Equals(_unknownFields, other._unknownFields); 3134return Equals(_unknownFields, other._unknownFields); 3472return Equals(_unknownFields, other._unknownFields); 3759return Equals(_unknownFields, other._unknownFields); 4066if (!object.Equals(Value, other.Value)) return false; 4068return Equals(_unknownFields, other._unknownFields); 4630if (!object.Equals(CreatedAt, other.CreatedAt)) return false; 4638if (!object.Equals(StartedAt, other.StartedAt)) return false; 4639if (!object.Equals(StoppedAt, other.StoppedAt)) return false; 4643return Equals(_unknownFields, other._unknownFields); 5204return Equals(_unknownFields, other._unknownFields); 5419return Equals(_unknownFields, other._unknownFields); 5680if (!object.Equals(Delete, other.Delete)) return false; 5681if (!object.Equals(Upsert, other.Upsert)) return false; 5683return Equals(_unknownFields, other._unknownFields); 5933return Equals(_unknownFields, other._unknownFields); 6144return Equals(_unknownFields, other._unknownFields); 6392if (!object.Equals(InitialData, other.InitialData)) return false; 6393if (!object.Equals(Changes, other.Changes)) return false; 6395return Equals(_unknownFields, other._unknownFields); 6694return Equals(_unknownFields, other._unknownFields); 6962return Equals(_unknownFields, other._unknownFields); 7186return Equals(_unknownFields, other._unknownFields); 7466if (!object.Equals(Complete, other.Complete)) return false; 7467if (!object.Equals(MessageBox, other.MessageBox)) return false; 7468if (!object.Equals(InputsDialog, other.InputsDialog)) return false; 7469if (!object.Equals(MessageBar, other.MessageBar)) return false; 7471return Equals(_unknownFields, other._unknownFields); 8007if (!object.Equals(Complete, other.Complete)) return false; 8008if (!object.Equals(MessageBox, other.MessageBox)) return false; 8009if (!object.Equals(InputsDialog, other.InputsDialog)) return false; 8010if (!object.Equals(MessageBar, other.MessageBar)) return false; 8012return Equals(_unknownFields, other._unknownFields); 8508return Equals(_unknownFields, other._unknownFields); 8717return Equals(_unknownFields, other._unknownFields); 9000return Equals(_unknownFields, other._unknownFields); 9269return Equals(_unknownFields, other._unknownFields); 9542return Equals(_unknownFields, other._unknownFields);
src\Shared\CircularBuffer.cs (1)
62if (Equals(this[index], item))
Aspire.Hosting.Analyzers (1)
Infrastructure\BoundedCacheWithFactory.cs (1)
46if (Equals(cachedEntry.Key, key))
Aspire.Hosting.Testing.Tests (1)
tests\Shared\Logging\LogValuesAssert.cs (1)
61return string.Equals(x.Key, y.Key) && object.Equals(x.Value, y.Value);
Aspire.Hosting.Tests (2)
tests\Shared\Logging\LogValuesAssert.cs (1)
61return string.Equals(x.Key, y.Key) && object.Equals(x.Value, y.Value);
Utils\StringComparersTests.cs (1)
95if (Equals(c, comparer))
Aspire.Playground.Tests (1)
tests\Shared\Logging\LogValuesAssert.cs (1)
61return string.Equals(x.Key, y.Key) && object.Equals(x.Value, y.Value);
BasketService (11)
artifacts\obj\BasketService\Debug\net8.0\Protos\Basket.cs (11)
141return Equals(_unknownFields, other._unknownFields); 352return Equals(_unknownFields, other._unknownFields); 576return Equals(_unknownFields, other._unknownFields); 840if (!object.Equals(UnitPrice, other.UnitPrice)) return false; 841if (!object.Equals(OldUnitPrice, other.OldUnitPrice)) return false; 843return Equals(_unknownFields, other._unknownFields); 1151return Equals(_unknownFields, other._unknownFields); 1335return Equals(_unknownFields, other._unknownFields); 1510return Equals(_unknownFields, other._unknownFields); 1694return Equals(_unknownFields, other._unknownFields); 1894return Equals(_unknownFields, other._unknownFields);
BuildActionTelemetryTable (1)
Program.cs (1)
359=> Equals(x?.FullName, y?.FullName);
dotnet-svcutil-lib (4)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (2)
1004if (!object.Equals(fieldValue, defaultValue)) 1013if (!object.Equals(propertyValue, defaultValue))
FrameworkFork\System.ServiceModel\System\ServiceModel\OperationContext.cs (1)
341if (!object.Equals(message, _clientReply))
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedCollection.cs (1)
160if (object.Equals(_items[i], item))
GenerateDocumentationAndConfigFiles (29)
src\Compilers\Core\Portable\InternalUtilities\DocumentationCommentXmlNames.cs (1)
64return object.Equals(left, right);
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
310if (Equals(self.KeyComparer, equalityComparer))
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
47if (Equals(KeyComparer, value ?? EqualityComparer<T>.Default))
src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
85if (Equals(_loneValue, item))
src\RoslynAnalyzers\Utilities\Compiler\BoundedCacheWithFactory.cs (1)
48if (Equals(cachedEntry.Key, key))
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (1)
52/// Checks if the given <paramref name="method"/> is <see cref="object.Equals(object, object)"/> or <see cref="object.ReferenceEquals(object, object)"/>.
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISymbolExtensions.cs (1)
51Equals(associated.AssociatedSymbol, propertySymbol))
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (1)
204return !Equals(false, typedConstant.Value);
src\RoslynAnalyzers\Utilities\Compiler\Lightup\LightupHelpers.cs (1)
117if (Equals(newValue, fallbackResult))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.cs (1)
47.FirstOrDefault(o => Equals((o as ILocalFunctionOperation)?.Symbol, localFunction));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageResult.cs (2)
59if (kvp.Key.write == null && Equals(kvp.Key.symbol, parameter)) 76if (Equals(kvp.Key.symbol, symbol))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFactsExtensions.cs (2)
51if (!Equals(semanticModel.GetTypeInfo(parentBinaryLeft).Type, 57if (!Equals(semanticModel.GetTypeInfo(parentBinaryLeft).ConvertedType,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (2)
418Contract.ThrowIfFalse(Equals(method, _methodSymbolStack[^1])); 434Contract.ThrowIfFalse(Equals(contextualSymbol, _contextualSymbolStack.Peek()));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (3)
1171if (!object.Equals(parameter2.ExplicitDefaultValue, parameter1.ExplicitDefaultValue)) 1176if (object.Equals(parameter1.ExplicitDefaultValue, 0.0)) 1178RoslynDebug.Assert(object.Equals(parameter2.ExplicitDefaultValue, 0.0));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IAssemblySymbolExtensions.cs (1)
66Equals(assembly, toAssembly) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IMethodSymbolExtensions.cs (2)
25Debug.Assert(method.PartialImplementationPart == null && !Equals(method.PartialDefinitionPart, method)); 30Debug.Assert(!Equals(method.PartialImplementationPart, method));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (2)
260return implementation != null && Equals(implementation.ContainingType, classOrStructType); 279return implementation != null && Equals(implementation.ContainingType, classOrStructType);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
721(Equals(iDisposableType, type) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.SubstituteTypesVisitor.cs (4)
61if (!Equals(mapped, symbol)) 82if (!Equals(updatedContainingType, symbol.ContainingType)) 99if (!Equals(mapped, symbol)) 116if (!Equals(mapped, symbol))
IIS.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (2)
108Assert.True(string.Equals(400, response.Status), i.ToString("X2", CultureInfo.InvariantCulture) + ";" + response); 119Assert.True(string.Equals(400, response.Status), i.ToString("X2", CultureInfo.InvariantCulture) + ";" + response);
IISExpress.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (2)
108Assert.True(string.Equals(400, response.Status), i.ToString("X2", CultureInfo.InvariantCulture) + ";" + response); 119Assert.True(string.Equals(400, response.Status), i.ToString("X2", CultureInfo.InvariantCulture) + ";" + response);
IntegrationTestsWebsite (6)
artifacts\obj\IntegrationTestsWebsite\Release\net10.0\Protos\Greet.cs (6)
169return Equals(_unknownFields, other._unknownFields); 358if (!object.Equals(Name, other.Name)) return false; 359return Equals(_unknownFields, other._unknownFields); 575return Equals(_unknownFields, other._unknownFields); 793return Equals(_unknownFields, other._unknownFields); 986return Equals(_unknownFields, other._unknownFields);
InteropClient (26)
artifacts\obj\InteropClient\Release\net10.0\Empty.cs (1)
106return Equals(_unknownFields, other._unknownFields);
artifacts\obj\InteropClient\Release\net10.0\Messages.cs (23)
172return Equals(_unknownFields, other._unknownFields); 385return Equals(_unknownFields, other._unknownFields); 616return Equals(_unknownFields, other._unknownFields); 952if (!object.Equals(Payload, other.Payload)) return false; 955if (!object.Equals(ResponseCompressed, other.ResponseCompressed)) return false; 956if (!object.Equals(ResponseStatus, other.ResponseStatus)) return false; 957if (!object.Equals(ExpectCompressed, other.ExpectCompressed)) return false; 958return Equals(_unknownFields, other._unknownFields); 1383if (!object.Equals(Payload, other.Payload)) return false; 1386return Equals(_unknownFields, other._unknownFields); 1655if (!object.Equals(Payload, other.Payload)) return false; 1656if (!object.Equals(ExpectCompressed, other.ExpectCompressed)) return false; 1657return Equals(_unknownFields, other._unknownFields); 1894return Equals(_unknownFields, other._unknownFields); 2127if (!object.Equals(Compressed, other.Compressed)) return false; 2128return Equals(_unknownFields, other._unknownFields); 2430if (!object.Equals(Payload, other.Payload)) return false; 2431if (!object.Equals(ResponseStatus, other.ResponseStatus)) return false; 2432return Equals(_unknownFields, other._unknownFields); 2704if (!object.Equals(Payload, other.Payload)) return false; 2705return Equals(_unknownFields, other._unknownFields); 2908return Equals(_unknownFields, other._unknownFields); 3116return Equals(_unknownFields, other._unknownFields);
Assert.cs (2)
43if (!Equals(expected, actual)) 104if (Equals(item, expected))
InteropWebsite (24)
artifacts\obj\InteropWebsite\Release\net10.0\Empty.cs (1)
106return Equals(_unknownFields, other._unknownFields);
artifacts\obj\InteropWebsite\Release\net10.0\Messages.cs (23)
172return Equals(_unknownFields, other._unknownFields); 385return Equals(_unknownFields, other._unknownFields); 616return Equals(_unknownFields, other._unknownFields); 952if (!object.Equals(Payload, other.Payload)) return false; 955if (!object.Equals(ResponseCompressed, other.ResponseCompressed)) return false; 956if (!object.Equals(ResponseStatus, other.ResponseStatus)) return false; 957if (!object.Equals(ExpectCompressed, other.ExpectCompressed)) return false; 958return Equals(_unknownFields, other._unknownFields); 1383if (!object.Equals(Payload, other.Payload)) return false; 1386return Equals(_unknownFields, other._unknownFields); 1655if (!object.Equals(Payload, other.Payload)) return false; 1656if (!object.Equals(ExpectCompressed, other.ExpectCompressed)) return false; 1657return Equals(_unknownFields, other._unknownFields); 1894return Equals(_unknownFields, other._unknownFields); 2127if (!object.Equals(Compressed, other.Compressed)) return false; 2128return Equals(_unknownFields, other._unknownFields); 2430if (!object.Equals(Payload, other.Payload)) return false; 2431if (!object.Equals(ResponseStatus, other.ResponseStatus)) return false; 2432return Equals(_unknownFields, other._unknownFields); 2704if (!object.Equals(Payload, other.Payload)) return false; 2705return Equals(_unknownFields, other._unknownFields); 2908return Equals(_unknownFields, other._unknownFields); 3116return Equals(_unknownFields, other._unknownFields);
Metrics (33)
src\Compilers\Core\Portable\InternalUtilities\DocumentationCommentXmlNames.cs (1)
64return object.Equals(left, right);
src\Compilers\Core\Portable\InternalUtilities\ReferenceEqualityComparer.cs (1)
37/// It is not necessarily equivalent to calling <see cref="object.Equals(object?, object?)"/>.
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
310if (Equals(self.KeyComparer, equalityComparer))
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
47if (Equals(KeyComparer, value ?? EqualityComparer<T>.Default))
src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
85if (Equals(_loneValue, item))
src\RoslynAnalyzers\Utilities\Compiler\BoundedCacheWithFactory.cs (1)
48if (Equals(cachedEntry.Key, key))
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (3)
75if (!Equals(model.GetDeclaredSymbol(declSyntax, context.CancellationToken), symbol)) 183while (declSyntax.Parent != null && Equals(model.GetDeclaredSymbol(declSyntax.Parent, context.CancellationToken), declaredSymbol)) 248if (declaredSymbol != null && !Equals(symbol, declaredSymbol) && declaredSymbol.Kind != SymbolKind.Parameter)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (1)
52/// Checks if the given <paramref name="method"/> is <see cref="object.Equals(object, object)"/> or <see cref="object.ReferenceEquals(object, object)"/>.
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISymbolExtensions.cs (1)
51Equals(associated.AssociatedSymbol, propertySymbol))
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (1)
204return !Equals(false, typedConstant.Value);
src\RoslynAnalyzers\Utilities\Compiler\Lightup\LightupHelpers.cs (1)
117if (Equals(newValue, fallbackResult))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.cs (1)
47.FirstOrDefault(o => Equals((o as ILocalFunctionOperation)?.Symbol, localFunction));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageResult.cs (2)
59if (kvp.Key.write == null && Equals(kvp.Key.symbol, parameter)) 76if (Equals(kvp.Key.symbol, symbol))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFactsExtensions.cs (2)
51if (!Equals(semanticModel.GetTypeInfo(parentBinaryLeft).Type, 57if (!Equals(semanticModel.GetTypeInfo(parentBinaryLeft).ConvertedType,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (2)
418Contract.ThrowIfFalse(Equals(method, _methodSymbolStack[^1])); 434Contract.ThrowIfFalse(Equals(contextualSymbol, _contextualSymbolStack.Peek()));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (3)
1171if (!object.Equals(parameter2.ExplicitDefaultValue, parameter1.ExplicitDefaultValue)) 1176if (object.Equals(parameter1.ExplicitDefaultValue, 0.0)) 1178RoslynDebug.Assert(object.Equals(parameter2.ExplicitDefaultValue, 0.0));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IAssemblySymbolExtensions.cs (1)
66Equals(assembly, toAssembly) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IMethodSymbolExtensions.cs (2)
25Debug.Assert(method.PartialImplementationPart == null && !Equals(method.PartialDefinitionPart, method)); 30Debug.Assert(!Equals(method.PartialImplementationPart, method));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (2)
260return implementation != null && Equals(implementation.ContainingType, classOrStructType); 279return implementation != null && Equals(implementation.ContainingType, classOrStructType);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
721(Equals(iDisposableType, type) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.SubstituteTypesVisitor.cs (4)
61if (!Equals(mapped, symbol)) 82if (!Equals(updatedContainingType, symbol.ContainingType)) 99if (!Equals(mapped, symbol)) 116if (!Equals(mapped, symbol))
Metrics.Legacy (33)
src\Compilers\Core\Portable\InternalUtilities\DocumentationCommentXmlNames.cs (1)
64return object.Equals(left, right);
src\Compilers\Core\Portable\InternalUtilities\ReferenceEqualityComparer.cs (1)
37/// It is not necessarily equivalent to calling <see cref="object.Equals(object?, object?)"/>.
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
310if (Equals(self.KeyComparer, equalityComparer))
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
47if (Equals(KeyComparer, value ?? EqualityComparer<T>.Default))
src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
85if (Equals(_loneValue, item))
src\RoslynAnalyzers\Utilities\Compiler\BoundedCacheWithFactory.cs (1)
48if (Equals(cachedEntry.Key, key))
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (3)
75if (!Equals(model.GetDeclaredSymbol(declSyntax, context.CancellationToken), symbol)) 183while (declSyntax.Parent != null && Equals(model.GetDeclaredSymbol(declSyntax.Parent, context.CancellationToken), declaredSymbol)) 248if (declaredSymbol != null && !Equals(symbol, declaredSymbol) && declaredSymbol.Kind != SymbolKind.Parameter)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (1)
52/// Checks if the given <paramref name="method"/> is <see cref="object.Equals(object, object)"/> or <see cref="object.ReferenceEquals(object, object)"/>.
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISymbolExtensions.cs (1)
51Equals(associated.AssociatedSymbol, propertySymbol))
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (1)
204return !Equals(false, typedConstant.Value);
src\RoslynAnalyzers\Utilities\Compiler\Lightup\LightupHelpers.cs (1)
117if (Equals(newValue, fallbackResult))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.cs (1)
47.FirstOrDefault(o => Equals((o as ILocalFunctionOperation)?.Symbol, localFunction));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageResult.cs (2)
59if (kvp.Key.write == null && Equals(kvp.Key.symbol, parameter)) 76if (Equals(kvp.Key.symbol, symbol))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFactsExtensions.cs (2)
51if (!Equals(semanticModel.GetTypeInfo(parentBinaryLeft).Type, 57if (!Equals(semanticModel.GetTypeInfo(parentBinaryLeft).ConvertedType,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (2)
418Contract.ThrowIfFalse(Equals(method, _methodSymbolStack[^1])); 434Contract.ThrowIfFalse(Equals(contextualSymbol, _contextualSymbolStack.Peek()));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (3)
1171if (!object.Equals(parameter2.ExplicitDefaultValue, parameter1.ExplicitDefaultValue)) 1176if (object.Equals(parameter1.ExplicitDefaultValue, 0.0)) 1178RoslynDebug.Assert(object.Equals(parameter2.ExplicitDefaultValue, 0.0));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IAssemblySymbolExtensions.cs (1)
66Equals(assembly, toAssembly) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IMethodSymbolExtensions.cs (2)
25Debug.Assert(method.PartialImplementationPart == null && !Equals(method.PartialDefinitionPart, method)); 30Debug.Assert(!Equals(method.PartialImplementationPart, method));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (2)
260return implementation != null && Equals(implementation.ContainingType, classOrStructType); 279return implementation != null && Equals(implementation.ContainingType, classOrStructType);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
721(Equals(iDisposableType, type) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.SubstituteTypesVisitor.cs (4)
61if (!Equals(mapped, symbol)) 82if (!Equals(updatedContainingType, symbol.ContainingType)) 99if (!Equals(mapped, symbol)) 116if (!Equals(mapped, symbol))
Microsoft.Analyzers.Local (1)
ApiLifecycle\Json\JsonValue.cs (1)
542&& Equals(a._reference, b._reference);
Microsoft.Arcade.Test.Common (6)
AssertEx.cs (6)
41return object.Equals(@object, default(T)); 53if (object.Equals(x, default(T))) 55return object.Equals(y, default(T)); 58if (object.Equals(y, default(T))) 105if (!Equals(enumeratorX.Current, enumeratorY.Current)) 112return object.Equals(x, y);
Microsoft.AspNetCore.Antiforgery (2)
Internal\DefaultAntiforgeryTokenGenerator.cs (2)
132if (!object.Equals(cookieToken.SecurityToken, requestToken.SecurityToken)) 167if (!object.Equals(requestToken.ClaimUid, currentClaimUid))
Microsoft.AspNetCore.App.Analyzers (5)
Infrastructure\AmbiguousRoutePatternComparer.cs (2)
139RoutePatternPolicyFragment xFragment => yPart is RoutePatternPolicyFragment yFragment && Equals(xFragment.ArgumentToken.Value, yFragment.ArgumentToken.Value), 140RoutePatternPolicyFragmentEscapedNode xFragmentEscaped => yPart is RoutePatternPolicyFragmentEscapedNode yFragmentEscaped && Equals(xFragmentEscaped.ArgumentToken.Value, yFragmentEscaped.ArgumentToken.Value),
RouteHandlers\DetectAmbiguousRoutes.cs (2)
174Equals(ParentOperation, other.ParentOperation) && 258if (!Equals(literal.ConstantValue, otherLiteral.ConstantValue))
src\Shared\RoslynUtils\BoundedCacheWithFactory.cs (1)
49if (Equals(cachedEntry.Key, key))
Microsoft.AspNetCore.App.Analyzers.Test (1)
RouteEmbeddedLanguage\RoutePatternParserTests.cs (1)
212Assert.True(Equals(routeParameter.DefaultValue, parsedRoutePattern.Default), "DefaultValue");
Microsoft.AspNetCore.Components (7)
RenderTree\RenderTreeDiffBuilder.cs (2)
110if (Equals(oldKey, newKey)) 766var valueChanged = !Equals(oldFrame.AttributeValueField, newFrame.AttributeValueField);
Routing\RouteKey.cs (1)
26if (!Equals(AppAssembly, other.AppAssembly))
Sections\SectionContent.cs (1)
68if (!object.Equals(identifier, _registeredIdentifier) || IsDefaultContent != _registeredIsDefaultContent)
Sections\SectionOutlet.cs (1)
62if (!object.Equals(identifier, _subscribedIdentifier))
src\Http\Routing\src\Patterns\RoutePatternFactory.cs (2)
583if (parameter.Default != null && !Equals(newDefault, parameter.Default)) 626if (Equals(parameter.Default, @default)
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
src\Components\Shared\src\WebRootComponentParameters.cs (1)
58else if (!Equals(value, otherValue))
Microsoft.AspNetCore.Components.Server (1)
src\Components\Shared\src\WebRootComponentParameters.cs (1)
58else if (!Equals(value, otherValue))
Microsoft.AspNetCore.Components.Server.Tests (5)
src\SignalR\common\SignalR.Common\test\Internal\Protocol\TestHubMessageEqualityComparer.cs (5)
20if (!Equals(x.GetType(), y.GetType())) 57&& (Equals(x.Result, y.Result) || SequenceEqual(x.Result, y.Result)); 64&& (Equals(x.Item, y.Item) || SequenceEqual(x.Item, y.Item)); 99if (!(Equals(left[i], right[i]) || SequenceEqual(left[i], right[i]))) 127if (!Equals(leftEnumerator.Current, rightEnumerator.Current))
Microsoft.AspNetCore.Components.WebAssembly (1)
src\Components\Shared\src\WebRootComponentParameters.cs (1)
58else if (!Equals(value, otherValue))
Microsoft.AspNetCore.Connections.Abstractions (1)
ConnectionItems.cs (1)
116if (Items.TryGetValue(item.Key, out var value) && Equals(item.Value, value))
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (33)
artifacts\obj\Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests\Release\net10.0\Proto\Httpbody.cs (3)
131if (!object.Equals(Sub, other.Sub)) return false; 132return Equals(_unknownFields, other._unknownFields); 354return Equals(_unknownFields, other._unknownFields);
artifacts\obj\Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests\Release\net10.0\Proto\Issue045270\Hello.cs (2)
134return Equals(_unknownFields, other._unknownFields); 361return Equals(_unknownFields, other._unknownFields);
artifacts\obj\Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests\Release\net10.0\Proto\Issue047349\Message.cs (1)
139return Equals(_unknownFields, other._unknownFields);
artifacts\obj\Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests\Release\net10.0\Proto\Issue048192\Customhttp.cs (4)
156return Equals(_unknownFields, other._unknownFields); 908if (!object.Equals(Custom, other.Custom)) return false; 913return Equals(_unknownFields, other._unknownFields); 1340return Equals(_unknownFields, other._unknownFields);
artifacts\obj\Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests\Release\net10.0\Proto\Issue048192\Hello.cs (2)
117return Equals(_unknownFields, other._unknownFields); 307return Equals(_unknownFields, other._unknownFields);
artifacts\obj\Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests\Release\net10.0\Proto\Transcoding.cs (21)
614if (!object.Equals(Sub, other.Sub)) return false; 615if (!object.Equals(Data, other.Data)) return false; 616if (!object.Equals(Wrappers, other.Wrappers)) return false; 618if (!object.Equals(AnyMessage, other.AnyMessage)) return false; 627if (!object.Equals(TimestampValue, other.TimestampValue)) return false; 628if (!object.Equals(DurationValue, other.DurationValue)) return false; 629if (!object.Equals(ValueValue, other.ValueValue)) return false; 630if (!object.Equals(StructValue, other.StructValue)) return false; 631if (!object.Equals(ListValue, other.ListValue)) return false; 633if (!object.Equals(FieldMaskValue, other.FieldMaskValue)) return false; 640return Equals(_unknownFields, other._unknownFields); 1441return Equals(_unknownFields, other._unknownFields); 1867if (!object.Equals(SingleMessage, other.SingleMessage)) return false; 1868return Equals(_unknownFields, other._unknownFields); 2449return Equals(_unknownFields, other._unknownFields); 2774return Equals(_unknownFields, other._unknownFields); 3262if (!object.Equals(AnyMessage, other.AnyMessage)) return false; 3263if (!object.Equals(Sub, other.Sub)) return false; 3264return Equals(_unknownFields, other._unknownFields); 3576return Equals(_unknownFields, other._unknownFields); 3784return Equals(_unknownFields, other._unknownFields);
Microsoft.AspNetCore.Grpc.Microbenchmarks (4)
artifacts\obj\Microsoft.AspNetCore.Grpc.Microbenchmarks\Release\net10.0\Proto\Chat.cs (1)
131return Equals(_unknownFields, other._unknownFields);
artifacts\obj\Microsoft.AspNetCore.Grpc.Microbenchmarks\Release\net10.0\Proto\Greet.cs (3)
121return Equals(_unknownFields, other._unknownFields); 327if (!object.Equals(Timestamp, other.Timestamp)) return false; 328return Equals(_unknownFields, other._unknownFields);
Microsoft.AspNetCore.Grpc.Swagger.Tests (47)
artifacts\obj\Microsoft.AspNetCore.Grpc.Swagger.Tests\Release\net10.0\Proto\Body.cs (4)
154if (!object.Equals(ParameterThree, other.ParameterThree)) return false; 155return Equals(_unknownFields, other._unknownFields); 380return Equals(_unknownFields, other._unknownFields); 570return Equals(_unknownFields, other._unknownFields);
artifacts\obj\Microsoft.AspNetCore.Grpc.Swagger.Tests\Release\net10.0\Proto\Counter.cs (2)
131return Equals(_unknownFields, other._unknownFields); 344return Equals(_unknownFields, other._unknownFields);
artifacts\obj\Microsoft.AspNetCore.Grpc.Swagger.Tests\Release\net10.0\Proto\Greeter.cs (2)
122return Equals(_unknownFields, other._unknownFields); 318return Equals(_unknownFields, other._unknownFields);
artifacts\obj\Microsoft.AspNetCore.Grpc.Swagger.Tests\Release\net10.0\Proto\Messages.cs (19)
239if (!object.Equals(Sub, other.Sub)) return false; 240if (!object.Equals(Data, other.Data)) return false; 241if (!object.Equals(Wrappers, other.Wrappers)) return false; 243return Equals(_unknownFields, other._unknownFields); 558return Equals(_unknownFields, other._unknownFields); 984if (!object.Equals(SingleMessage, other.SingleMessage)) return false; 985return Equals(_unknownFields, other._unknownFields); 1566return Equals(_unknownFields, other._unknownFields); 1891return Equals(_unknownFields, other._unknownFields); 2337return Equals(_unknownFields, other._unknownFields); 2542return Equals(_unknownFields, other._unknownFields); 2737if (!object.Equals(Child, other.Child)) return false; 2738return Equals(_unknownFields, other._unknownFields); 2953return Equals(_unknownFields, other._unknownFields); 3172return Equals(_unknownFields, other._unknownFields); 3537return Equals(_unknownFields, other._unknownFields); 3803return Equals(_unknownFields, other._unknownFields); 3982if (!object.Equals(FieldMaskValue, other.FieldMaskValue)) return false; 3983return Equals(_unknownFields, other._unknownFields);
artifacts\obj\Microsoft.AspNetCore.Grpc.Swagger.Tests\Release\net10.0\Proto\Parameters.cs (11)
183return Equals(_unknownFields, other._unknownFields); 437if (!object.Equals(ParameterFour, other.ParameterFour)) return false; 438return Equals(_unknownFields, other._unknownFields); 737return Equals(_unknownFields, other._unknownFields); 957if (!object.Equals(ParameterOne, other.ParameterOne)) return false; 959return Equals(_unknownFields, other._unknownFields); 1225return Equals(_unknownFields, other._unknownFields); 1510if (!object.Equals(FieldMaskValue, other.FieldMaskValue)) return false; 1513return Equals(_unknownFields, other._unknownFields); 1770return Equals(_unknownFields, other._unknownFields); 1960return Equals(_unknownFields, other._unknownFields);
artifacts\obj\Microsoft.AspNetCore.Grpc.Swagger.Tests\Release\net10.0\Proto\Responsebody.cs (4)
134return Equals(_unknownFields, other._unknownFields); 341if (!object.Equals(NestedMessage, other.NestedMessage)) return false; 342return Equals(_unknownFields, other._unknownFields); 586return Equals(_unknownFields, other._unknownFields);
artifacts\obj\Microsoft.AspNetCore.Grpc.Swagger.Tests\Release\net10.0\Proto\Xmldoc.cs (5)
135return Equals(_unknownFields, other._unknownFields); 347if (!object.Equals(Detail, other.Detail)) return false; 348return Equals(_unknownFields, other._unknownFields); 579return Equals(_unknownFields, other._unknownFields); 780return Equals(_unknownFields, other._unknownFields);
Microsoft.AspNetCore.Http (1)
Internal\ItemsDictionary.cs (1)
122if (_items.TryGetValue(item.Key, out var value) && Equals(item.Value, value))
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
src\Shared\RoslynUtils\BoundedCacheWithFactory.cs (1)
49if (Equals(cachedEntry.Key, key))
Microsoft.AspNetCore.InternalTesting (1)
Logging\LogValuesAssert.cs (1)
63return string.Equals(x.Key, y.Key) && object.Equals(x.Value, y.Value);
Microsoft.AspNetCore.Mvc.Abstractions (1)
ModelBinding\ModelBindingResult.cs (1)
77object.Equals(Model, other.Model);
Microsoft.AspNetCore.Mvc.Core (2)
Infrastructure\CopyOnWriteList.cs (2)
61if (object.Equals(obj, item)) 88if (object.Equals(obj, item))
Microsoft.AspNetCore.Mvc.Core.Test (1)
Infrastructure\ControllerActionInvokerTest.cs (1)
67Assert.Contains(routeValues, kvp => kvp.Key == "tag" && string.Equals(kvp.Value, "value"));
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Infrastructure\PageActionInvokerTest.cs (1)
55Assert.Contains(routeValues, kvp => kvp.Key == "tag" && string.Equals(kvp.Value, "value"));
Microsoft.AspNetCore.Mvc.TagHelpers.Test (1)
FormTagHelperTest.cs (1)
820It.Is<RouteValueDictionary>(m => string.Equals(m["name"], "value")),
Microsoft.AspNetCore.OpenApi.SourceGenerators (1)
Helpers\DocumentationCommentXmlNames.cs (1)
59return object.Equals(left, right);
Microsoft.AspNetCore.Razor (1)
TagHelpers\TagHelperAttribute.cs (1)
77(ValueStyle == HtmlAttributeValueStyle.Minimized || Equals(Value, other.Value));
Microsoft.AspNetCore.Routing (3)
Patterns\RoutePatternFactory.cs (3)
583if (parameter.Default != null && !Equals(newDefault, parameter.Default)) 626if (Equals(parameter.Default, @default) 1057if (!combinedDictionary.TryAdd(key, value) && !Equals(combinedDictionary[key], value))
Microsoft.AspNetCore.Server.HttpSys (1)
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
161return ((IDictionary<string, StringValues>)this).TryGetValue(item.Key, out var value) && Equals(value, item.Value);
Microsoft.AspNetCore.Server.IIS (1)
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
161return ((IDictionary<string, StringValues>)this).TryGetValue(item.Key, out var value) && Equals(value, item.Value);
Microsoft.AspNetCore.Shared.Tests (1)
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
161return ((IDictionary<string, StringValues>)this).TryGetValue(item.Key, out var value) && Equals(value, item.Value);
Microsoft.AspNetCore.SignalR.Common.Tests (5)
Internal\Protocol\TestHubMessageEqualityComparer.cs (5)
20if (!Equals(x.GetType(), y.GetType())) 57&& (Equals(x.Result, y.Result) || SequenceEqual(x.Result, y.Result)); 64&& (Equals(x.Item, y.Item) || SequenceEqual(x.Item, y.Item)); 99if (!(Equals(left[i], right[i]) || SequenceEqual(left[i], right[i]))) 127if (!Equals(leftEnumerator.Current, rightEnumerator.Current))
Microsoft.Build (8)
BackEnd\BuildManager\BuildManager.cs (4)
1621if (!Equals(CultureInfo.CurrentCulture, _buildParameters!.Culture)) 1626if (!Equals(CultureInfo.CurrentUICulture, _buildParameters.UICulture)) 1642if (!Equals(CultureInfo.CurrentCulture, oldCulture)) 1647if (!Equals(CultureInfo.CurrentUICulture, oldUICulture))
CollectionHelpers.cs (1)
72if (!Equals(aKvp.Value, bValue))
Construction\ProjectRootElement.cs (1)
1557if (HasUnsavedChanges || !Equals(saveEncoding, Encoding))
Evaluation\ItemDataCollectionValue.cs (2)
91else if (object.Equals(_value, item)) 107else if (object.Equals(_value, oldItem))
Microsoft.Build.BuildCheck.UnitTests (6)
EditorConfig_Tests.cs (6)
39return object.Equals(@object, default(T)); 51if (object.Equals(x, default(T))) 53return object.Equals(y, default(T)); 56if (object.Equals(y, default(T))) 100if (!Equals(enumeratorX.Current, enumeratorY.Current)) 107return object.Equals(x, y);
Microsoft.Build.Framework (1)
EncodingUtilities.cs (1)
103if (Equals(encoding1, encoding2))
Microsoft.Build.Utilities.Core (2)
ToolLocationHelper.cs (2)
1346bool isSDKMatch = string.Equals(sdk.TargetPlatformIdentifier, sdkIdentifier, StringComparison.OrdinalIgnoreCase) && Equals(sdk.TargetPlatformVersion, sdkVersion); 1597&& Equals(platform.TargetPlatformVersion, targetPlatformVersion));
Microsoft.Cci.Extensions (3)
Experimental\TypeReferenceSearcher.cs (3)
40return object.Equals(x.TypeReference, y.TypeReference) 41&& object.Equals(x.DependentMember, y.DependentMember) 42&& object.Equals(x.DependentType, y.DependentMember);
Microsoft.CodeAnalysis (44)
Binding\UseSiteInfo.cs (1)
95if (!object.Equals(primaryDependency, PrimaryDependency) && PrimaryDependency is object)
CommandLine\CommonCompiler.SuppressionDiagnostic.cs (3)
83return Equals(_originalDiagnostic, other._originalDiagnostic) && 84Equals(_suppressionId, other._suppressionId) && 85Equals(_suppressionJustification, other._suppressionJustification);
Compilation\CompilationOptions.cs (11)
343&& object.Equals(this.XmlReferenceResolver, other.XmlReferenceResolver) 344&& object.Equals(this.MetadataReferenceResolver, other.MetadataReferenceResolver) 345&& object.Equals(this.AssemblyIdentityComparer, other.AssemblyIdentityComparer); 644object.Equals(this.MetadataReferenceResolver, other.MetadataReferenceResolver) && 645object.Equals(this.XmlReferenceResolver, other.XmlReferenceResolver) && 646object.Equals(this.SourceReferenceResolver, other.SourceReferenceResolver) && 647object.Equals(this.SyntaxTreeOptionsProvider, other.SyntaxTreeOptionsProvider) && 648object.Equals(this.StrongNameProvider, other.StrongNameProvider) && 649object.Equals(this.AssemblyIdentityComparer, other.AssemblyIdentityComparer) && 703return object.Equals(left, right); 708return !object.Equals(left, right);
Compilation\ParseOptions.cs (2)
173return object.Equals(left, right); 178return !object.Equals(left, right);
Compilation\PreprocessingSymbolInfo.cs (2)
33return object.Equals(this.Symbol, other.Symbol) 34&& object.Equals(this.IsDefined, other.IsDefined);
Compilation\SymbolInfo.cs (1)
88object.Equals(this.Symbol, other.Symbol) &&
Compilation\TypeInfo.cs (2)
53return object.Equals(this.Type, other.Type) 54&& object.Equals(this.ConvertedType, other.ConvertedType)
Diagnostic\Diagnostic.DiagnosticWithProgrammaticSuppression.cs (2)
99return Equals(_originalUnsuppressedDiagnostic, other._originalUnsuppressedDiagnostic) && 100Equals(_programmaticSuppressionInfo, other._programmaticSuppressionInfo);
Diagnostic\DiagnosticInfo.cs (1)
422if (!object.Equals(_arguments[i], other._arguments[i]))
DiagnosticAnalyzer\AnalyzerFileReference.cs (1)
431public bool Equals(TExtension? x, TExtension? y) => object.Equals(x?.GetType(), y?.GetType());
DiagnosticAnalyzer\SourceOrAdditionalFile.cs (2)
40=> Equals(left, right); 43=> !Equals(left, right);
Emit\EmitOptions.cs (2)
326return object.Equals(left, right); 331return !object.Equals(left, right);
InternalUtilities\DocumentationCommentXmlNames.cs (1)
64return object.Equals(left, right);
MetadataReference\CompilationReference.cs (2)
130return object.Equals(this.Compilation, other.Compilation) && object.Equals(this.Properties, other.Properties);
PEWriter\UsedNamespaceOrType.cs (1)
69&& object.Equals(TargetAssemblyOpt, other.TargetAssemblyOpt)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
310if (Equals(self.KeyComparer, equalityComparer))
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
47if (Equals(KeyComparer, value ?? EqualityComparer<T>.Default))
src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
85if (Equals(_loneValue, item))
Symbols\TypedConstant.cs (2)
208&& object.Equals(_value, other._value) 209&& object.Equals(_type, other._type);
Symbols\TypedConstantValue.cs (1)
74return object.Equals(_value, other._value);
Syntax\SeparatedSyntaxList.cs (2)
251if (object.Equals(this[i], node)) 290if (object.Equals(this[i], node))
Syntax\SyntaxList`1.cs (2)
511if (object.Equals(child, node)) 558if (object.Equals(this[i], node))
Microsoft.CodeAnalysis.Analyzers (33)
src\Compilers\Core\Portable\InternalUtilities\DocumentationCommentXmlNames.cs (1)
64return object.Equals(left, right);
src\Compilers\Core\Portable\InternalUtilities\ReferenceEqualityComparer.cs (1)
37/// It is not necessarily equivalent to calling <see cref="object.Equals(object?, object?)"/>.
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
310if (Equals(self.KeyComparer, equalityComparer))
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
47if (Equals(KeyComparer, value ?? EqualityComparer<T>.Default))
src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
85if (Equals(_loneValue, item))
src\RoslynAnalyzers\Utilities\Compiler\BoundedCacheWithFactory.cs (1)
48if (Equals(cachedEntry.Key, key))
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (3)
75if (!Equals(model.GetDeclaredSymbol(declSyntax, context.CancellationToken), symbol)) 183while (declSyntax.Parent != null && Equals(model.GetDeclaredSymbol(declSyntax.Parent, context.CancellationToken), declaredSymbol)) 248if (declaredSymbol != null && !Equals(symbol, declaredSymbol) && declaredSymbol.Kind != SymbolKind.Parameter)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (1)
52/// Checks if the given <paramref name="method"/> is <see cref="object.Equals(object, object)"/> or <see cref="object.ReferenceEquals(object, object)"/>.
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISymbolExtensions.cs (1)
51Equals(associated.AssociatedSymbol, propertySymbol))
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (1)
204return !Equals(false, typedConstant.Value);
src\RoslynAnalyzers\Utilities\Compiler\Lightup\LightupHelpers.cs (1)
117if (Equals(newValue, fallbackResult))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.cs (1)
47.FirstOrDefault(o => Equals((o as ILocalFunctionOperation)?.Symbol, localFunction));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageResult.cs (2)
59if (kvp.Key.write == null && Equals(kvp.Key.symbol, parameter)) 76if (Equals(kvp.Key.symbol, symbol))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFactsExtensions.cs (2)
51if (!Equals(semanticModel.GetTypeInfo(parentBinaryLeft).Type, 57if (!Equals(semanticModel.GetTypeInfo(parentBinaryLeft).ConvertedType,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (2)
418Contract.ThrowIfFalse(Equals(method, _methodSymbolStack[^1])); 434Contract.ThrowIfFalse(Equals(contextualSymbol, _contextualSymbolStack.Peek()));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (3)
1171if (!object.Equals(parameter2.ExplicitDefaultValue, parameter1.ExplicitDefaultValue)) 1176if (object.Equals(parameter1.ExplicitDefaultValue, 0.0)) 1178RoslynDebug.Assert(object.Equals(parameter2.ExplicitDefaultValue, 0.0));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IAssemblySymbolExtensions.cs (1)
66Equals(assembly, toAssembly) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IMethodSymbolExtensions.cs (2)
25Debug.Assert(method.PartialImplementationPart == null && !Equals(method.PartialDefinitionPart, method)); 30Debug.Assert(!Equals(method.PartialImplementationPart, method));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (2)
260return implementation != null && Equals(implementation.ContainingType, classOrStructType); 279return implementation != null && Equals(implementation.ContainingType, classOrStructType);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
721(Equals(iDisposableType, type) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.SubstituteTypesVisitor.cs (4)
61if (!Equals(mapped, symbol)) 82if (!Equals(updatedContainingType, symbol.ContainingType)) 99if (!Equals(mapped, symbol)) 116if (!Equals(mapped, symbol))
Microsoft.CodeAnalysis.AnalyzerUtilities (40)
src\Compilers\Core\Portable\InternalUtilities\DocumentationCommentXmlNames.cs (1)
64return object.Equals(left, right);
src\Compilers\Core\Portable\InternalUtilities\ReferenceEqualityComparer.cs (1)
37/// It is not necessarily equivalent to calling <see cref="object.Equals(object?, object?)"/>.
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
310if (Equals(self.KeyComparer, equalityComparer))
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
47if (Equals(KeyComparer, value ?? EqualityComparer<T>.Default))
src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
85if (Equals(_loneValue, item))
src\RoslynAnalyzers\Utilities\Compiler\BoundedCacheWithFactory.cs (1)
48if (Equals(cachedEntry.Key, key))
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (3)
75if (!Equals(model.GetDeclaredSymbol(declSyntax, context.CancellationToken), symbol)) 183while (declSyntax.Parent != null && Equals(model.GetDeclaredSymbol(declSyntax.Parent, context.CancellationToken), declaredSymbol)) 248if (declaredSymbol != null && !Equals(symbol, declaredSymbol) && declaredSymbol.Kind != SymbolKind.Parameter)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (1)
52/// Checks if the given <paramref name="method"/> is <see cref="object.Equals(object, object)"/> or <see cref="object.ReferenceEquals(object, object)"/>.
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISymbolExtensions.cs (1)
51Equals(associated.AssociatedSymbol, propertySymbol))
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (1)
204return !Equals(false, typedConstant.Value);
src\RoslynAnalyzers\Utilities\Compiler\Lightup\LightupHelpers.cs (1)
117if (Equals(newValue, fallbackResult))
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\ParameterValidationAnalysis\ParameterValidationAnalysis.ParameterValidationDataFlowOperationVisitor.cs (2)
68Equals(parameter.ContainingSymbol, GetBottomOfStackOwningSymbol()); 374HandleHazardousOperation(syntaxNode, notValidatedLocations.Where(l => Equals(l.Symbol, parameter)));
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AbstractDataFlowAnalysisContext.cs (1)
50Debug.Assert(Equals(owningSymbol.OriginalDefinition, owningSymbol));
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AbstractLocationDataFlowOperationVisitor.cs (1)
99Debug.Assert(Equals(analysisEntity.Symbol, parameter));
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AnalysisEntity.cs (1)
121Debug.Assert(Equals(instanceLocation.Locations.Single().Symbol, typeSymbol));
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AnalysisEntityDataFlowOperationVisitor.cs (1)
307Debug.Assert(Equals(analysisEntity.Symbol, parameter));
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (1)
984if (Equals(method.ContainingType, ContractNamedType) &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.cs (1)
47.FirstOrDefault(o => Equals((o as ILocalFunctionOperation)?.Symbol, localFunction));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageResult.cs (2)
59if (kvp.Key.write == null && Equals(kvp.Key.symbol, parameter)) 76if (Equals(kvp.Key.symbol, symbol))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFactsExtensions.cs (2)
51if (!Equals(semanticModel.GetTypeInfo(parentBinaryLeft).Type, 57if (!Equals(semanticModel.GetTypeInfo(parentBinaryLeft).ConvertedType,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (2)
418Contract.ThrowIfFalse(Equals(method, _methodSymbolStack[^1])); 434Contract.ThrowIfFalse(Equals(contextualSymbol, _contextualSymbolStack.Peek()));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (3)
1171if (!object.Equals(parameter2.ExplicitDefaultValue, parameter1.ExplicitDefaultValue)) 1176if (object.Equals(parameter1.ExplicitDefaultValue, 0.0)) 1178RoslynDebug.Assert(object.Equals(parameter2.ExplicitDefaultValue, 0.0));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IAssemblySymbolExtensions.cs (1)
66Equals(assembly, toAssembly) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IMethodSymbolExtensions.cs (2)
25Debug.Assert(method.PartialImplementationPart == null && !Equals(method.PartialDefinitionPart, method)); 30Debug.Assert(!Equals(method.PartialImplementationPart, method));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (2)
260return implementation != null && Equals(implementation.ContainingType, classOrStructType); 279return implementation != null && Equals(implementation.ContainingType, classOrStructType);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
721(Equals(iDisposableType, type) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.SubstituteTypesVisitor.cs (4)
61if (!Equals(mapped, symbol)) 82if (!Equals(updatedContainingType, symbol.ContainingType)) 99if (!Equals(mapped, symbol)) 116if (!Equals(mapped, symbol))
Microsoft.CodeAnalysis.BannedApiAnalyzers (34)
RestrictedInternalsVisibleToAnalyzer.cs (1)
257if (Equals(currentNamespace, uptoNamespace))
src\Compilers\Core\Portable\InternalUtilities\DocumentationCommentXmlNames.cs (1)
64return object.Equals(left, right);
src\Compilers\Core\Portable\InternalUtilities\ReferenceEqualityComparer.cs (1)
37/// It is not necessarily equivalent to calling <see cref="object.Equals(object?, object?)"/>.
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
310if (Equals(self.KeyComparer, equalityComparer))
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
47if (Equals(KeyComparer, value ?? EqualityComparer<T>.Default))
src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
85if (Equals(_loneValue, item))
src\RoslynAnalyzers\Utilities\Compiler\BoundedCacheWithFactory.cs (1)
48if (Equals(cachedEntry.Key, key))
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (3)
75if (!Equals(model.GetDeclaredSymbol(declSyntax, context.CancellationToken), symbol)) 183while (declSyntax.Parent != null && Equals(model.GetDeclaredSymbol(declSyntax.Parent, context.CancellationToken), declaredSymbol)) 248if (declaredSymbol != null && !Equals(symbol, declaredSymbol) && declaredSymbol.Kind != SymbolKind.Parameter)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (1)
52/// Checks if the given <paramref name="method"/> is <see cref="object.Equals(object, object)"/> or <see cref="object.ReferenceEquals(object, object)"/>.
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISymbolExtensions.cs (1)
51Equals(associated.AssociatedSymbol, propertySymbol))
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (1)
204return !Equals(false, typedConstant.Value);
src\RoslynAnalyzers\Utilities\Compiler\Lightup\LightupHelpers.cs (1)
117if (Equals(newValue, fallbackResult))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.cs (1)
47.FirstOrDefault(o => Equals((o as ILocalFunctionOperation)?.Symbol, localFunction));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageResult.cs (2)
59if (kvp.Key.write == null && Equals(kvp.Key.symbol, parameter)) 76if (Equals(kvp.Key.symbol, symbol))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFactsExtensions.cs (2)
51if (!Equals(semanticModel.GetTypeInfo(parentBinaryLeft).Type, 57if (!Equals(semanticModel.GetTypeInfo(parentBinaryLeft).ConvertedType,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (2)
418Contract.ThrowIfFalse(Equals(method, _methodSymbolStack[^1])); 434Contract.ThrowIfFalse(Equals(contextualSymbol, _contextualSymbolStack.Peek()));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (3)
1171if (!object.Equals(parameter2.ExplicitDefaultValue, parameter1.ExplicitDefaultValue)) 1176if (object.Equals(parameter1.ExplicitDefaultValue, 0.0)) 1178RoslynDebug.Assert(object.Equals(parameter2.ExplicitDefaultValue, 0.0));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IAssemblySymbolExtensions.cs (1)
66Equals(assembly, toAssembly) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IMethodSymbolExtensions.cs (2)
25Debug.Assert(method.PartialImplementationPart == null && !Equals(method.PartialDefinitionPart, method)); 30Debug.Assert(!Equals(method.PartialImplementationPart, method));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (2)
260return implementation != null && Equals(implementation.ContainingType, classOrStructType); 279return implementation != null && Equals(implementation.ContainingType, classOrStructType);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
721(Equals(iDisposableType, type) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.SubstituteTypesVisitor.cs (4)
61if (!Equals(mapped, symbol)) 82if (!Equals(updatedContainingType, symbol.ContainingType)) 99if (!Equals(mapped, symbol)) 116if (!Equals(mapped, symbol))
Microsoft.CodeAnalysis.CodeStyle (35)
src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.cs (1)
195if (Equals(_objectGetHashCodeMethod, current))
src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.OperationDeconstructor.cs (3)
79Equals(_analyzer._equalityComparerType, targetMethod.ContainingType.OriginalDefinition) && 123Equals(_method.ContainingType.BaseType, instanceReference.Type)) 145Equals(fieldOrProp.ContainingType.OriginalDefinition, _method.ContainingType))
src\Analyzers\Core\Analyzers\PopulateSwitch\AbstractPopulateSwitchDiagnosticAnalyzer.cs (1)
126=> constantValue.HasValue && Equals(constantValue.Value, value);
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
108=> Equals(x?.OriginalDefinition, y?.OriginalDefinition);
src\Analyzers\Core\Analyzers\UseAutoProperty\AccessedFields.cs (1)
33=> Equals(TrivialField, field) || NonTrivialFields.Contains(field);
src\Analyzers\Core\Analyzers\UseCoalesceExpression\AbstractUseCoalesceExpressionForIfNullCheckDiagnosticAnalyzer.cs (1)
177if (Equals(localSymbol, symbol))
src\Analyzers\Core\Analyzers\UseCollectionInitializer\UpdateExpressionState.cs (1)
296if (arity != 0 || !Equals(name, methodName))
src\Analyzers\Core\Analyzers\UseThrowExpression\AbstractUseThrowExpressionDiagnosticAnalyzer.cs (1)
194if (!Equals(localOrParameter, assignmentValue))
src\Compilers\Core\Portable\InternalUtilities\DocumentationCommentXmlNames.cs (1)
64return object.Equals(left, right);
src\Compilers\Core\Portable\InternalUtilities\ReferenceEqualityComparer.cs (1)
37/// It is not necessarily equivalent to calling <see cref="object.Equals(object?, object?)"/>.
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
310if (Equals(self.KeyComparer, equalityComparer))
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
47if (Equals(KeyComparer, value ?? EqualityComparer<T>.Default))
src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
85if (Equals(_loneValue, item))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.cs (1)
47.FirstOrDefault(o => Equals((o as ILocalFunctionOperation)?.Symbol, localFunction));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageResult.cs (2)
59if (kvp.Key.write == null && Equals(kvp.Key.symbol, parameter)) 76if (Equals(kvp.Key.symbol, symbol))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFactsExtensions.cs (2)
51if (!Equals(semanticModel.GetTypeInfo(parentBinaryLeft).Type, 57if (!Equals(semanticModel.GetTypeInfo(parentBinaryLeft).ConvertedType,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (2)
418Contract.ThrowIfFalse(Equals(method, _methodSymbolStack[^1])); 434Contract.ThrowIfFalse(Equals(contextualSymbol, _contextualSymbolStack.Peek()));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (3)
1171if (!object.Equals(parameter2.ExplicitDefaultValue, parameter1.ExplicitDefaultValue)) 1176if (object.Equals(parameter1.ExplicitDefaultValue, 0.0)) 1178RoslynDebug.Assert(object.Equals(parameter2.ExplicitDefaultValue, 0.0));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IAssemblySymbolExtensions.cs (1)
66Equals(assembly, toAssembly) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IMethodSymbolExtensions.cs (2)
25Debug.Assert(method.PartialImplementationPart == null && !Equals(method.PartialDefinitionPart, method)); 30Debug.Assert(!Equals(method.PartialImplementationPart, method));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (2)
260return implementation != null && Equals(implementation.ContainingType, classOrStructType); 279return implementation != null && Equals(implementation.ContainingType, classOrStructType);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
721(Equals(iDisposableType, type) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.SubstituteTypesVisitor.cs (4)
61if (!Equals(mapped, symbol)) 82if (!Equals(updatedContainingType, symbol.ContainingType)) 99if (!Equals(mapped, symbol)) 116if (!Equals(mapped, symbol))
Microsoft.CodeAnalysis.CodeStyle.Fixes (4)
src\Analyzers\Core\CodeFixes\MakeMethodSynchronous\AbstractMakeMethodSynchronousCodeFixProvider.cs (1)
142var referencedSymbol = references.FirstOrDefault(r => Equals(r.Definition, methodSymbol));
src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForAssignment\AbstractUseConditionalExpressionForAssignmentCodeFixProvider.cs (3)
184if (local != null && !Equals(local, falseLocal.Local)) 231if (!Equals(variable, local)) 258Equals(variable, localReference.Local))
Microsoft.CodeAnalysis.Collections.Package (3)
Segmented\ImmutableSegmentedHashSet`1.cs (1)
310if (Equals(self.KeyComparer, equalityComparer))
Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
47if (Equals(KeyComparer, value ?? EqualityComparer<T>.Default))
Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
85if (Equals(_loneValue, item))
Microsoft.CodeAnalysis.CSharp (30)
Binder\Binder.ValueChecks.cs (1)
1879if (!object.Equals(useSiteInfo.DiagnosticInfo, propertySymbol.GetUseSiteInfo().DiagnosticInfo))
Binder\Semantics\AccessCheck.cs (1)
678if (Equals(fromAssembly, toAssembly))
BoundTree\BoundDagTemp.cs (1)
29object.Equals(this.Source, other.Source) &&
Compilation\AwaitExpressionInfo.cs (3)
38return object.Equals(this.GetAwaiterMethod, other.GetAwaiterMethod) 39&& object.Equals(this.IsCompletedProperty, other.IsCompletedProperty) 40&& object.Equals(this.GetResultMethod, other.GetResultMethod)
Compilation\ForEachStatementInfo.cs (5)
92&& object.Equals(this.GetEnumeratorMethod, other.GetEnumeratorMethod) 93&& object.Equals(this.MoveNextMethod, other.MoveNextMethod) 94&& object.Equals(this.CurrentProperty, other.CurrentProperty) 95&& object.Equals(this.DisposeMethod, other.DisposeMethod) 96&& object.Equals(this.ElementType, other.ElementType)
DocumentationComments\PEDocumentationCommentUtils.cs (1)
39if (object.Equals(lazyDocComment.Item1, preferredCulture))
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (7)
585Debug.Assert(StringOrdinalComparer.Equals(@event.Name, other.Name)); 594Debug.Assert(StringOrdinalComparer.Equals(field.Name, other.Name)); 600Debug.Assert(StringOrdinalComparer.Equals(method.Name, other.Name)); 630Debug.Assert(StringOrdinalComparer.Equals(type.MetadataName, other.MetadataName)); 655Debug.Assert(StringOrdinalComparer.Equals(@namespace.MetadataName, other.MetadataName)); 722Debug.Assert(StringOrdinalComparer.Equals(property.MetadataName, other.MetadataName)); 734Debug.Assert(StringOrdinalComparer.Equals(type.Name, other.Name));
FlowAnalysis\DefiniteAssignment.VariableIdentifier.cs (1)
85return Symbol.Equals(other.Symbol, TypeCompareKind.AllIgnoreOptions);
Parser\DirectiveParser.cs (2)
889return object.Equals(Evaluate(((BinaryExpressionSyntax)expr).Left), Evaluate(((BinaryExpressionSyntax)expr).Right)); 891return !object.Equals(Evaluate(((BinaryExpressionSyntax)expr).Left), Evaluate(((BinaryExpressionSyntax)expr).Right));
Symbols\AliasSymbol.cs (1)
258Equals(this.TryGetFirstLocation(), other.TryGetFirstLocation()) &&
Symbols\Metadata\PE\MemberRefMetadataDecoder.cs (1)
326!object.Equals(targetCustomModifier.Modifier, ((CSharpCustomModifier)candidateCustomModifier).ModifierSymbol))
Symbols\NamespaceExtent.cs (1)
126return object.Equals(_symbolOrCompilation, other._symbolOrCompilation);
Symbols\PublicModel\AssemblySymbol.cs (1)
65if (Equals(this, assemblyWantingAccess))
Symbols\Source\SourceEventSymbol.cs (1)
867if (!TypeWithAnnotations.Equals(implementation.TypeWithAnnotations, TypeCompareKind.AllIgnoreOptions))
Symbols\Source\SourcePropertySymbol.cs (1)
734bool hasTypeDifferences = !TypeWithAnnotations.Equals(implementation.TypeWithAnnotations, TypeCompareKind.AllIgnoreOptions);
Symbols\TypeParameterSymbol.cs (1)
660return Equals(other, TypeCompareKind.ConsiderEverything);
Utilities\ValueSetFactory.IEqualableValueTC.cs (1)
13/// using <see cref="System.Object.Equals(object?, object?)"/>.
Microsoft.CodeAnalysis.CSharp.CodeStyle (22)
src\Analyzers\CSharp\Analyzers\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessAnalyzer.cs (2)
256if (!Equals(conditionName.Identifier.ValueText, invocationName.Identifier.ValueText)) 270if (!Equals(declarator.Identifier.ValueText, conditionName.Identifier.ValueText))
src\Analyzers\CSharp\Analyzers\UsePatternCombinators\AnalyzedPattern.cs (1)
139({ IsImplicit: true }, { IsImplicit: true }) when !Equals(leftTarget.Type, rightTarget.Type) => null,
src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
575if (symbols.Any(s => !Equals(s, parameter) && !Equals(s, member)))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (14)
130if (Equals(enumType?.EnumUnderlyingType, castedType)) 165if (Equals(enumType?.EnumUnderlyingType, castedType)) 273if (!Equals(originalDelegateCreationOperation.Type, rewrittenDelegateCreationOperation.Type)) 416if (!Equals(originalParentConversion.MethodSymbol, rewrittenConversion.MethodSymbol)) 1072if (Equals(castSideType, otherSideType) || Equals(underlyingType, otherSideType)) 1247!Equals(oldSymbolInfo, newSymbolInfo)) 1278if (!Equals(oldConversion.MethodSymbol, newConversion.MethodSymbol)) 1341if (Equals(originalMemberSymbol, rewrittenMemberSymbol)) 1370Equals(implementationMember, rewrittenMemberSymbol) && 1380if (Equals(originalMemberSymbol, current)) 1429return Equals(originalMethodSymbol.ReturnType, rewrittenMethodSymbol.ReturnType); 1481if (!Equals(originalMemberType, rewrittenMemberType)) 1504var argument = invocationOperation.Arguments.FirstOrDefault(a => Equals(originalParameter, a.Parameter)); 1516!Equals(originalParameter.ExplicitDefaultValue, rewrittenParameter.ExplicitDefaultValue) &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (4)
438if (Equals(originalCaseType, newCaseType)) 494if (!Equals(originalExprType.Type, replacedExprType.Type)) 545if (!Equals(originalExpressionTypeInfo.Type, newExpressionTypeInfo.Type)) 563return !object.Equals(originalExpressionType, newExpressionType);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (5)
src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.Rewriter.cs (1)
195!Equals(typeInfo.ConvertedType, typeInfo.Type))
src\Analyzers\CSharp\CodeFixes\UseExplicitArrayInExpressionTree\CSharpUseExplicitArrayInExpressionTreeCodeFixProvider.cs (2)
55if (!currentMethod.ReturnsVoid && !Equals(currentMethod.ReturnType, originalMethod.ReturnType)) 134a => a.Expression.Kind() != SyntaxKind.DefaultLiteralExpression && Equals(arrayElementType, semanticModel.GetTypeInfo(a.Expression).Type));
src\Analyzers\CSharp\CodeFixes\UseSystemThreadingLock\CSharpUseSystemThreadingLockCodeFixProvider.cs (1)
121.Where(r => Equals(r.Definition, field))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpMoveDeclarationNearReferenceService.cs (1)
63return Equals(localSymbol.Type, rightType.Type);
Microsoft.CodeAnalysis.CSharp.Features (16)
ChangeSignature\CSharpChangeSignatureService.cs (1)
895if (Equals(convertedType, symbol.ContainingType))
ConvertLinq\ConvertForEachToLinqQuery\CSharpConvertForEachToLinqQueryProvider.cs (1)
289.Where(statement => Equals(semanticModel.GetEnclosingSymbol(
ConvertLinq\CSharpConvertLinqQueryToForEachProvider.cs (3)
371=> Equals(typeSymbol.OriginalDefinition, _semanticModel.Compilation.GetTypeByMetadataName(typeof(List<>).FullName)); 666if (Equals(lastSelectExpressionTypeInfo.ConvertedType, lastSelectExpressionTypeInfo.Type) && 667Equals(lastSelectExpressionTypeInfo.ConvertedType, forEachStatementTypeSymbolType))
ConvertToExtension\ExtensionMethodEqualityComparer.cs (1)
51if (!Equals(x.AttributeClass, y.AttributeClass))
ImplementInterface\CSharpImplementExplicitlyCodeRefactoringProvider.cs (1)
173return Equals(parameterSymbol1.ExplicitDefaultValue, parameterSymbol2.ExplicitDefaultValue);
SignatureHelp\InvocationExpressionSignatureHelpProviderBase_MethodGroup.cs (1)
92if (!Equals(m, method))
src\Analyzers\CSharp\Analyzers\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessAnalyzer.cs (2)
256if (!Equals(conditionName.Identifier.ValueText, invocationName.Identifier.ValueText)) 270if (!Equals(declarator.Identifier.ValueText, conditionName.Identifier.ValueText))
src\Analyzers\CSharp\Analyzers\UsePatternCombinators\AnalyzedPattern.cs (1)
139({ IsImplicit: true }, { IsImplicit: true }) when !Equals(leftTarget.Type, rightTarget.Type) => null,
src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
575if (symbols.Any(s => !Equals(s, parameter) && !Equals(s, member)))
src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.Rewriter.cs (1)
195!Equals(typeInfo.ConvertedType, typeInfo.Type))
src\Analyzers\CSharp\CodeFixes\UseExplicitArrayInExpressionTree\CSharpUseExplicitArrayInExpressionTreeCodeFixProvider.cs (2)
55if (!currentMethod.ReturnsVoid && !Equals(currentMethod.ReturnType, originalMethod.ReturnType)) 134a => a.Expression.Kind() != SyntaxKind.DefaultLiteralExpression && Equals(arrayElementType, semanticModel.GetTypeInfo(a.Expression).Type));
src\Analyzers\CSharp\CodeFixes\UseSystemThreadingLock\CSharpUseSystemThreadingLockCodeFixProvider.cs (1)
121.Where(r => Equals(r.Definition, field))
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Syntax\SyntaxNodeTests.cs (1)
938Assert.True(SyntaxTrivia.Equals(trivia, triviaAgain));
Microsoft.CodeAnalysis.CSharp.Workspaces (25)
Recommendations\CSharpRecommendationServiceRunner.cs (1)
405!Equals(enclosingNamedType, symbol.ContainingType) &&
Rename\CSharpRenameRewriterLanguageService.cs (1)
543(Equals(symbol, _renamedSymbol) || SymbolKey.GetComparer(ignoreCase: true, ignoreAssemblyKeys: false).Equals(symbol.GetSymbolKey(), _renamedSymbol.GetSymbolKey())))
Simplification\CSharpSimplificationService.Expander.cs (2)
807if (Equals(symbol, symbol.OriginalDefinition)) 868object.Equals(((AssignmentExpressionSyntax)currentNode).Left, identifierName);
Simplification\Simplifiers\NameSimplifier.cs (1)
568return object.Equals(namespaceDeclaration.Name, node);
Simplification\Simplifiers\QualifiedCrefSimplifier.cs (1)
91if (Equals(newSymbol, oldSymbol))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (14)
130if (Equals(enumType?.EnumUnderlyingType, castedType)) 165if (Equals(enumType?.EnumUnderlyingType, castedType)) 273if (!Equals(originalDelegateCreationOperation.Type, rewrittenDelegateCreationOperation.Type)) 416if (!Equals(originalParentConversion.MethodSymbol, rewrittenConversion.MethodSymbol)) 1072if (Equals(castSideType, otherSideType) || Equals(underlyingType, otherSideType)) 1247!Equals(oldSymbolInfo, newSymbolInfo)) 1278if (!Equals(oldConversion.MethodSymbol, newConversion.MethodSymbol)) 1341if (Equals(originalMemberSymbol, rewrittenMemberSymbol)) 1370Equals(implementationMember, rewrittenMemberSymbol) && 1380if (Equals(originalMemberSymbol, current)) 1429return Equals(originalMethodSymbol.ReturnType, rewrittenMethodSymbol.ReturnType); 1481if (!Equals(originalMemberType, rewrittenMemberType)) 1504var argument = invocationOperation.Arguments.FirstOrDefault(a => Equals(originalParameter, a.Parameter)); 1516!Equals(originalParameter.ExplicitDefaultValue, rewrittenParameter.ExplicitDefaultValue) &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (4)
438if (Equals(originalCaseType, newCaseType)) 494if (!Equals(originalExprType.Type, replacedExprType.Type)) 545if (!Equals(originalExpressionTypeInfo.Type, newExpressionTypeInfo.Type)) 563return !object.Equals(originalExpressionType, newExpressionType);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpMoveDeclarationNearReferenceService.cs (1)
63return Equals(localSymbol.Type, rightType.Type);
Microsoft.CodeAnalysis.EditorFeatures (8)
CommentSelection\AbstractToggleBlockCommentBase.cs (1)
264if (Equals(blockCommentSelection.GetSubstringFromText(endMarkerPosition, commentInfo.BlockCommentEndString.Length),
Extensibility\NavigationBar\NavigationBarSelectedItems.cs (2)
34Equals(this.TypeItem, other.TypeItem) && 35Equals(this.MemberItem, other.MemberItem);
IntelliSense\AsyncCompletion\ItemManager.CompletionListUpdater.cs (1)
398if (Equals(matchResults[selectedItemIndex].CompletionItem, bestResult.CompletionItem))
Navigation\AbstractDefinitionLocationService.cs (2)
262if (otherPart is null || Equals(symbol, otherPart)) 298if (Equals(containingTypeSymbol, candidateTypeSymbol))
NavigationBar\NavigationBarController_ModelComputation.cs (2)
171Equals(currentSelectedItem, lastPresentedInfo.selectedInfo) && 172Equals(selectedProjectItem, lastPresentedInfo.selectedProjectItem) &&
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (3)
CodeGeneration\CodeGenerationTests.cs (1)
572var attribute = attributeTarget.GetAttributes().Single(attr => Equals(attr.AttributeClass, attributeType));
Options\GlobalOptionsTests.cs (1)
128Assert.False(Equals(value, defaultValue), $"{type.FullName}.{property.Name} not initialized from global options");
SymbolFinder\SymbolFinderTests.cs (1)
459Assert.True(transitiveDerived.Any(d => !Equals(d.BaseType, rootType)), "At least one result must not immediately derive from the type");
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver.UnitTests (8)
NameComparer.cs (3)
37return Equals(xQualified.Qualifier, yQualified.Qualifier) && 38Equals(xQualified.Name, yQualified.Name); 44return Equals(xGeneric.QualifiedName, yGeneric.QualifiedName) &&
TypeComparer.cs (5)
37return Equals(xQualified.Qualifier, yQualified.Qualifier) && 38Equals(xQualified.Name, yQualified.Name); 44return Equals(xGeneric.QualifiedName, yGeneric.QualifiedName) && 51return Equals(xArray.ElementType, yArray.ElementType) && 58return Equals(xPointer.PointedAtType, yPointer.PointedAtType);
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (1)
src\ExpressionEvaluator\Core\Source\ResultProvider\Helpers\TypeHelpers.cs (1)
418if (object.Equals(hasValue.HostObjectValue, false))
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
src\ExpressionEvaluator\Core\Source\ResultProvider\Helpers\TypeHelpers.cs (1)
418if (object.Equals(hasValue.HostObjectValue, false))
Microsoft.CodeAnalysis.Extensions.Package (13)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
310if (Equals(self.KeyComparer, equalityComparer))
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
47if (Equals(KeyComparer, value ?? EqualityComparer<T>.Default))
src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
85if (Equals(_loneValue, item))
Symbols\IAssemblySymbolExtensions.cs (1)
66Equals(assembly, toAssembly) ||
Symbols\IMethodSymbolExtensions.cs (2)
25Debug.Assert(method.PartialImplementationPart == null && !Equals(method.PartialDefinitionPart, method)); 30Debug.Assert(!Equals(method.PartialImplementationPart, method));
Symbols\INamedTypeSymbolExtensions.cs (2)
260return implementation != null && Equals(implementation.ContainingType, classOrStructType); 279return implementation != null && Equals(implementation.ContainingType, classOrStructType);
Symbols\ITypeSymbolExtensions.cs (1)
721(Equals(iDisposableType, type) ||
Symbols\ITypeSymbolExtensions.SubstituteTypesVisitor.cs (4)
61if (!Equals(mapped, symbol)) 82if (!Equals(updatedContainingType, symbol.ContainingType)) 99if (!Equals(mapped, symbol)) 116if (!Equals(mapped, symbol))
Microsoft.CodeAnalysis.Features (30)
CodeLens\LocationComparer.cs (1)
25return object.Equals(x, y);
ConvertForToForEach\AbstractConvertForToForEachCodeRefactoringProvider.cs (1)
346if (!Equals(indexerType, iterationType))
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (4)
2406return Equals(x?.Identity, y?.Identity); 4219if (oldField.IsConst && newField.IsConst && !Equals(oldField.ConstantValue, newField.ConstantValue) && 4375oldParameter.HasExplicitDefaultValue && !Equals(oldParameter.ExplicitDefaultValue, newParameter.ExplicitDefaultValue)) 6736_ => Equals(x.Value, y.Value)
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.cs (8)
439!object.Equals(oldProject.CompilationOptions, newProject.CompilationOptions) || 440!object.Equals(oldProject.AssemblyName, newProject.AssemblyName) || 441!object.Equals(oldProject.Name, newProject.Name) || 442!object.Equals(oldProject.AnalyzerOptions, newProject.AnalyzerOptions) || 443!object.Equals(oldProject.HostAnalyzerOptions, newProject.HostAnalyzerOptions) || 444!object.Equals(oldProject.DefaultNamespace, newProject.DefaultNamespace) || 445!object.Equals(oldProject.OutputFilePath, newProject.OutputFilePath) || 446!object.Equals(oldProject.OutputRefFilePath, newProject.OutputRefFilePath) ||
FullyQualify\AbstractFullyQualifyService.SymbolResult.cs (1)
38=> Equals(Symbol, other.Symbol);
LanguageServices\AnonymousTypeDisplayService\AbstractStructuralTypeDisplayService.cs (1)
55if (!Equals(invokeMethod, part.Symbol))
MetadataAsSource\DecompilationMetadataAsSourceFileProvider.cs (2)
433object.Equals(_assemblyIdentity, other._assemblyIdentity) && 434object.Equals(_metadataId, other._metadataId) &&
src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.cs (1)
195if (Equals(_objectGetHashCodeMethod, current))
src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.OperationDeconstructor.cs (3)
79Equals(_analyzer._equalityComparerType, targetMethod.ContainingType.OriginalDefinition) && 123Equals(_method.ContainingType.BaseType, instanceReference.Type)) 145Equals(fieldOrProp.ContainingType.OriginalDefinition, _method.ContainingType))
src\Analyzers\Core\Analyzers\PopulateSwitch\AbstractPopulateSwitchDiagnosticAnalyzer.cs (1)
126=> constantValue.HasValue && Equals(constantValue.Value, value);
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
108=> Equals(x?.OriginalDefinition, y?.OriginalDefinition);
src\Analyzers\Core\Analyzers\UseAutoProperty\AccessedFields.cs (1)
33=> Equals(TrivialField, field) || NonTrivialFields.Contains(field);
src\Analyzers\Core\Analyzers\UseCollectionInitializer\UpdateExpressionState.cs (1)
296if (arity != 0 || !Equals(name, methodName))
src\Analyzers\Core\Analyzers\UseThrowExpression\AbstractUseThrowExpressionDiagnosticAnalyzer.cs (1)
194if (!Equals(localOrParameter, assignmentValue))
src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForAssignment\AbstractUseConditionalExpressionForAssignmentCodeFixProvider.cs (3)
184if (local != null && !Equals(local, falseLocal.Local)) 231if (!Equals(variable, local)) 258Equals(variable, localReference.Local))
Microsoft.CodeAnalysis.InteractiveHost (3)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
310if (Equals(self.KeyComparer, equalityComparer))
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
47if (Equals(KeyComparer, value ?? EqualityComparer<T>.Default))
src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
85if (Equals(_loneValue, item))
Microsoft.CodeAnalysis.LanguageServer.Protocol (3)
Protocol\Diagnostic.cs (1)
146&& object.Equals(this.Code, other.Code)
Protocol\DocumentUri.cs (1)
109return Uri.Equals(this.ParsedUri, otherUri.ParsedUri);
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\MethodHandlerDetails.cs (1)
170if (!Equals(types[i], parameters[i].ParameterType))
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (33)
src\Compilers\Core\Portable\InternalUtilities\DocumentationCommentXmlNames.cs (1)
64return object.Equals(left, right);
src\Compilers\Core\Portable\InternalUtilities\ReferenceEqualityComparer.cs (1)
37/// It is not necessarily equivalent to calling <see cref="object.Equals(object?, object?)"/>.
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
310if (Equals(self.KeyComparer, equalityComparer))
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
47if (Equals(KeyComparer, value ?? EqualityComparer<T>.Default))
src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
85if (Equals(_loneValue, item))
src\RoslynAnalyzers\Utilities\Compiler\BoundedCacheWithFactory.cs (1)
48if (Equals(cachedEntry.Key, key))
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (3)
75if (!Equals(model.GetDeclaredSymbol(declSyntax, context.CancellationToken), symbol)) 183while (declSyntax.Parent != null && Equals(model.GetDeclaredSymbol(declSyntax.Parent, context.CancellationToken), declaredSymbol)) 248if (declaredSymbol != null && !Equals(symbol, declaredSymbol) && declaredSymbol.Kind != SymbolKind.Parameter)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (1)
52/// Checks if the given <paramref name="method"/> is <see cref="object.Equals(object, object)"/> or <see cref="object.ReferenceEquals(object, object)"/>.
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISymbolExtensions.cs (1)
51Equals(associated.AssociatedSymbol, propertySymbol))
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (1)
204return !Equals(false, typedConstant.Value);
src\RoslynAnalyzers\Utilities\Compiler\Lightup\LightupHelpers.cs (1)
117if (Equals(newValue, fallbackResult))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.cs (1)
47.FirstOrDefault(o => Equals((o as ILocalFunctionOperation)?.Symbol, localFunction));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageResult.cs (2)
59if (kvp.Key.write == null && Equals(kvp.Key.symbol, parameter)) 76if (Equals(kvp.Key.symbol, symbol))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFactsExtensions.cs (2)
51if (!Equals(semanticModel.GetTypeInfo(parentBinaryLeft).Type, 57if (!Equals(semanticModel.GetTypeInfo(parentBinaryLeft).ConvertedType,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (2)
418Contract.ThrowIfFalse(Equals(method, _methodSymbolStack[^1])); 434Contract.ThrowIfFalse(Equals(contextualSymbol, _contextualSymbolStack.Peek()));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (3)
1171if (!object.Equals(parameter2.ExplicitDefaultValue, parameter1.ExplicitDefaultValue)) 1176if (object.Equals(parameter1.ExplicitDefaultValue, 0.0)) 1178RoslynDebug.Assert(object.Equals(parameter2.ExplicitDefaultValue, 0.0));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IAssemblySymbolExtensions.cs (1)
66Equals(assembly, toAssembly) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IMethodSymbolExtensions.cs (2)
25Debug.Assert(method.PartialImplementationPart == null && !Equals(method.PartialDefinitionPart, method)); 30Debug.Assert(!Equals(method.PartialImplementationPart, method));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (2)
260return implementation != null && Equals(implementation.ContainingType, classOrStructType); 279return implementation != null && Equals(implementation.ContainingType, classOrStructType);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
721(Equals(iDisposableType, type) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.SubstituteTypesVisitor.cs (4)
61if (!Equals(mapped, symbol)) 82if (!Equals(updatedContainingType, symbol.ContainingType)) 99if (!Equals(mapped, symbol)) 116if (!Equals(mapped, symbol))
Microsoft.CodeAnalysis.PublicApiAnalyzers (33)
src\Compilers\Core\Portable\InternalUtilities\DocumentationCommentXmlNames.cs (1)
64return object.Equals(left, right);
src\Compilers\Core\Portable\InternalUtilities\ReferenceEqualityComparer.cs (1)
37/// It is not necessarily equivalent to calling <see cref="object.Equals(object?, object?)"/>.
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
310if (Equals(self.KeyComparer, equalityComparer))
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
47if (Equals(KeyComparer, value ?? EqualityComparer<T>.Default))
src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
85if (Equals(_loneValue, item))
src\RoslynAnalyzers\Utilities\Compiler\BoundedCacheWithFactory.cs (1)
48if (Equals(cachedEntry.Key, key))
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (3)
75if (!Equals(model.GetDeclaredSymbol(declSyntax, context.CancellationToken), symbol)) 183while (declSyntax.Parent != null && Equals(model.GetDeclaredSymbol(declSyntax.Parent, context.CancellationToken), declaredSymbol)) 248if (declaredSymbol != null && !Equals(symbol, declaredSymbol) && declaredSymbol.Kind != SymbolKind.Parameter)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (1)
52/// Checks if the given <paramref name="method"/> is <see cref="object.Equals(object, object)"/> or <see cref="object.ReferenceEquals(object, object)"/>.
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISymbolExtensions.cs (1)
51Equals(associated.AssociatedSymbol, propertySymbol))
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (1)
204return !Equals(false, typedConstant.Value);
src\RoslynAnalyzers\Utilities\Compiler\Lightup\LightupHelpers.cs (1)
117if (Equals(newValue, fallbackResult))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.cs (1)
47.FirstOrDefault(o => Equals((o as ILocalFunctionOperation)?.Symbol, localFunction));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageResult.cs (2)
59if (kvp.Key.write == null && Equals(kvp.Key.symbol, parameter)) 76if (Equals(kvp.Key.symbol, symbol))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFactsExtensions.cs (2)
51if (!Equals(semanticModel.GetTypeInfo(parentBinaryLeft).Type, 57if (!Equals(semanticModel.GetTypeInfo(parentBinaryLeft).ConvertedType,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (2)
418Contract.ThrowIfFalse(Equals(method, _methodSymbolStack[^1])); 434Contract.ThrowIfFalse(Equals(contextualSymbol, _contextualSymbolStack.Peek()));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (3)
1171if (!object.Equals(parameter2.ExplicitDefaultValue, parameter1.ExplicitDefaultValue)) 1176if (object.Equals(parameter1.ExplicitDefaultValue, 0.0)) 1178RoslynDebug.Assert(object.Equals(parameter2.ExplicitDefaultValue, 0.0));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IAssemblySymbolExtensions.cs (1)
66Equals(assembly, toAssembly) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IMethodSymbolExtensions.cs (2)
25Debug.Assert(method.PartialImplementationPart == null && !Equals(method.PartialDefinitionPart, method)); 30Debug.Assert(!Equals(method.PartialImplementationPart, method));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (2)
260return implementation != null && Equals(implementation.ContainingType, classOrStructType); 279return implementation != null && Equals(implementation.ContainingType, classOrStructType);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
721(Equals(iDisposableType, type) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.SubstituteTypesVisitor.cs (4)
61if (!Equals(mapped, symbol)) 82if (!Equals(updatedContainingType, symbol.ContainingType)) 99if (!Equals(mapped, symbol)) 116if (!Equals(mapped, symbol))
Microsoft.CodeAnalysis.ResxSourceGenerator (35)
AbstractResxGenerator.cs (2)
292if (!Equals(x.KeyComparer, y.KeyComparer)) 295if (!Equals(x.ValueComparer, y.ValueComparer))
src\Compilers\Core\Portable\InternalUtilities\DocumentationCommentXmlNames.cs (1)
64return object.Equals(left, right);
src\Compilers\Core\Portable\InternalUtilities\ReferenceEqualityComparer.cs (1)
37/// It is not necessarily equivalent to calling <see cref="object.Equals(object?, object?)"/>.
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
310if (Equals(self.KeyComparer, equalityComparer))
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
47if (Equals(KeyComparer, value ?? EqualityComparer<T>.Default))
src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
85if (Equals(_loneValue, item))
src\RoslynAnalyzers\Utilities\Compiler\BoundedCacheWithFactory.cs (1)
48if (Equals(cachedEntry.Key, key))
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (3)
75if (!Equals(model.GetDeclaredSymbol(declSyntax, context.CancellationToken), symbol)) 183while (declSyntax.Parent != null && Equals(model.GetDeclaredSymbol(declSyntax.Parent, context.CancellationToken), declaredSymbol)) 248if (declaredSymbol != null && !Equals(symbol, declaredSymbol) && declaredSymbol.Kind != SymbolKind.Parameter)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (1)
52/// Checks if the given <paramref name="method"/> is <see cref="object.Equals(object, object)"/> or <see cref="object.ReferenceEquals(object, object)"/>.
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISymbolExtensions.cs (1)
51Equals(associated.AssociatedSymbol, propertySymbol))
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (1)
204return !Equals(false, typedConstant.Value);
src\RoslynAnalyzers\Utilities\Compiler\Lightup\LightupHelpers.cs (1)
117if (Equals(newValue, fallbackResult))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.cs (1)
47.FirstOrDefault(o => Equals((o as ILocalFunctionOperation)?.Symbol, localFunction));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageResult.cs (2)
59if (kvp.Key.write == null && Equals(kvp.Key.symbol, parameter)) 76if (Equals(kvp.Key.symbol, symbol))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFactsExtensions.cs (2)
51if (!Equals(semanticModel.GetTypeInfo(parentBinaryLeft).Type, 57if (!Equals(semanticModel.GetTypeInfo(parentBinaryLeft).ConvertedType,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (2)
418Contract.ThrowIfFalse(Equals(method, _methodSymbolStack[^1])); 434Contract.ThrowIfFalse(Equals(contextualSymbol, _contextualSymbolStack.Peek()));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (3)
1171if (!object.Equals(parameter2.ExplicitDefaultValue, parameter1.ExplicitDefaultValue)) 1176if (object.Equals(parameter1.ExplicitDefaultValue, 0.0)) 1178RoslynDebug.Assert(object.Equals(parameter2.ExplicitDefaultValue, 0.0));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IAssemblySymbolExtensions.cs (1)
66Equals(assembly, toAssembly) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IMethodSymbolExtensions.cs (2)
25Debug.Assert(method.PartialImplementationPart == null && !Equals(method.PartialDefinitionPart, method)); 30Debug.Assert(!Equals(method.PartialImplementationPart, method));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (2)
260return implementation != null && Equals(implementation.ContainingType, classOrStructType); 279return implementation != null && Equals(implementation.ContainingType, classOrStructType);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
721(Equals(iDisposableType, type) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.SubstituteTypesVisitor.cs (4)
61if (!Equals(mapped, symbol)) 82if (!Equals(updatedContainingType, symbol.ContainingType)) 99if (!Equals(mapped, symbol)) 116if (!Equals(mapped, symbol))
Microsoft.CodeAnalysis.Scripting (4)
Hosting\Resolvers\RuntimeMetadataReferenceResolver.cs (4)
242Equals(PathResolver, other.PathResolver) && 243Equals(PackageResolver, other.PackageResolver) && 244Equals(GacFileResolver, other.GacFileResolver) && 252return Equals(resolver, PathResolver) ? this :
Microsoft.CodeAnalysis.Test.Utilities (6)
Assert\AssertEx.cs (6)
57return object.Equals(@object, default(T)); 69if (object.Equals(x, default(T))) 71return object.Equals(y, default(T)); 74if (object.Equals(y, default(T))) 110if (!Equals(enumeratorX.Current, enumeratorY.Current)) 117return object.Equals(x, y);
Microsoft.CodeAnalysis.Threading.Package (3)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
310if (Equals(self.KeyComparer, equalityComparer))
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
47if (Equals(KeyComparer, value ?? EqualityComparer<T>.Default))
src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
85if (Equals(_loneValue, item))
Microsoft.CodeAnalysis.UnitTests (3)
Collections\List\IEnumerable.Generic.Tests.cs (1)
213&& Equals(
FileLinePositionSpanTests.cs (2)
20(left, right) => object.Equals(left, right), 21(left, right) => !object.Equals(left, right),
Microsoft.CodeAnalysis.VisualBasic (13)
Binding\Binder_Expressions.vb (1)
2807CaseInsensitiveComparison.Equals(identifier.ValueText, SyntaxFacts.GetText(SyntaxKind.NewKeyword)) Then
Compilation\PreprocessingSymbolInfo.vb (1)
55Equals(Me._constantValue, other._constantValue)
GlobalImport.vb (2)
176Return Object.Equals(left, right) 184Return Not Object.Equals(left, right)
Symbols\AliasSymbol.vb (1)
245Equals(Me.Locations.FirstOrDefault(), other.Locations.FirstOrDefault()) AndAlso
Symbols\AssemblySymbol.vb (1)
740If Equals(Me, assemblyWantingAccess) Then
Symbols\ExtendedErrorTypeSymbol.vb (1)
157Return Object.Equals(Me.ContainingSymbol, other.ContainingSymbol) AndAlso String.Equals(Me.Name, other.Name, StringComparison.Ordinal) AndAlso Me.Arity = other.Arity
Symbols\Source\BoundLambdaParameterSymbol.vb (1)
58Return symbol IsNot Nothing AndAlso Equals(symbol._lambdaSymbol, Me._lambdaSymbol) AndAlso symbol.Ordinal = Me.Ordinal
Symbols\Source\LambdaSymbol.vb (1)
366Equals(symbol.ContainingSymbol, Me.ContainingSymbol) AndAlso
Symbols\Source\LocalSymbol.vb (1)
622Return other IsNot Nothing AndAlso other._identifierToken.Equals(Me._identifierToken) AndAlso Equals(other._container, Me._container) AndAlso String.Equals(other.Name, Me.Name)
Symbols\Source\SourceLabelSymbol.vb (1)
74Equals(symbol._containingMethod, Me._containingMethod)
Symbols\Symbol.vb (2)
839Return Me.[Equals](TryCast(other, Symbol), SymbolEqualityComparer.Default.CompareKind) 843Return Me.[Equals](TryCast(other, Symbol), equalityComparer.CompareKind)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Utilities\CastAnalyzer.vb (2)
69If Not Object.Equals(expressionTypeInfo.Type, expressionTypeInfo.ConvertedType) Then 306Return Equals(castType, speculatedExpressionOuterType)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (3)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ParameterSyntaxExtensions.vb (1)
29Equals(oldSymbol.Type, newSymbol.Type) Then
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\SemanticModelExtensions.vb (1)
38Function(s) Not reservedNames.Any(Function(n) CaseInsensitiveComparison.Equals(s, n)),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\SymbolExtensions.vb (1)
19(containingNamespace.IsGlobalNamespace OrElse Object.Equals(containingNamespace, compilation.RootNamespace))
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (9)
Attributes\InternalsVisibleToAndStrongNameTests.vb (9)
82Assert.True(ByteSequenceComparer.Equals(s_publicKey, other.Assembly.Identity.PublicKey)) 112Assert.True(ByteSequenceComparer.Equals(s_publicKey, comp.Assembly.Identity.PublicKey)) 142Assert.True(ByteSequenceComparer.Equals(s_publicKey, comp.Assembly.Identity.PublicKey)) 161Assert.True(ByteSequenceComparer.Equals(s_publicKey, other.Assembly.Identity.PublicKey)) 180Assert.True(ByteSequenceComparer.Equals(s_publicKey, other.Assembly.Identity.PublicKey)) 218Assert.True(ByteSequenceComparer.Equals(s_publicKey, comp.Assembly.Identity.PublicKey)) 278Assert.True(ByteSequenceComparer.Equals(s_publicKey, comp.Assembly.Identity.PublicKey)) 385Assert.True(ByteSequenceComparer.Equals(s_publicKey, c.Assembly.Identity.PublicKey)) 418Assert.True(ByteSequenceComparer.Equals(s_publicKey, c.Assembly.Identity.PublicKey))
Microsoft.CodeAnalysis.VisualBasic.Features (7)
ChangeSignature\VisualBasicChangeSignatureService.vb (2)
707If Equals(convertedType, symbol.ContainingType) Then 726If Equals(nodeType, symbol.ContainingType) Then
CodeFixes\GenerateEvent\GenerateEventCodeFixProvider.vb (1)
135AndAlso Equals(existingSymbol.ContainingNamespace, targetType.ContainingNamespace)) Then
CodeRefactorings\InlineTemporary\VisualBasicInlineTemporaryCodeRefactoringProvider.ReferenceRewriter.vb (1)
44Return Equals(symbolInfo.Symbol, _localSymbol)
EditAndContinue\VisualBasicEditAndContinueAnalyzer.vb (1)
714Dim newSymbol = newSymbols.FirstOrDefault(Function(s, o) CaseInsensitiveComparison.Equals(s.Name, o.Name), oldSymbol)
NavigationBar\VisualBasicNavigationBarItemService.vb (2)
241If Not CaseInsensitiveComparison.Equals(memberGroup.Key, WellKnownMemberNames.DestructorName) Then 324.Where(Function(m) m.HandledEvents.Any(Function(he) Object.Equals(he.EventContainer, eventContainer)))
Microsoft.CodeAnalysis.VisualBasic.Workspaces (13)
CaseCorrection\VisualBasicCaseCorrectionService.Rewriter.vb (2)
98If otherPartOfPartial IsNot Nothing And Equals(otherPartOfPartial, definitionPart) Then 110If otherPartOfPartial IsNot Nothing And Equals(otherPartOfPartial, definitionPart) Then
Rename\VisualBasicRenameRewriterLanguageService.vb (6)
268If CaseInsensitiveComparison.Equals(possibleNameConflict, candidate) Then 405(Equals(symbol, Me._renamedSymbol) OrElse SymbolKey.GetComparer(ignoreCase:=True, ignoreAssemblyKeys:=False).Equals(symbol.GetSymbolKey(), Me._renamedSymbol.GetSymbolKey())) Then 795.Where(Function(t) CaseInsensitiveComparison.Equals(t.Name, renamedSymbol.Name)) _ 953If CaseInsensitiveComparison.Equals(symbol.Name, "MoveNext") Then 957ElseIf CaseInsensitiveComparison.Equals(symbol.Name, "GetEnumerator") Then 966ElseIf CaseInsensitiveComparison.Equals(symbol.Name, "Current") Then
Simplification\VisualBasicSimplificationService.Expander.vb (1)
363If CaseInsensitiveComparison.Equals(elementName, name) Then
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Utilities\CastAnalyzer.vb (2)
69If Not Object.Equals(expressionTypeInfo.Type, expressionTypeInfo.ConvertedType) Then 306Return Equals(castType, speculatedExpressionOuterType)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\SemanticModelExtensions.vb (1)
38Function(s) Not reservedNames.Any(Function(n) CaseInsensitiveComparison.Equals(s, n)),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\SymbolExtensions.vb (1)
19(containingNamespace.IsGlobalNamespace OrElse Object.Equals(containingNamespace, compilation.RootNamespace))
Microsoft.CodeAnalysis.Workspaces (48)
Editing\SyntaxGenerator.cs (1)
248return Equals(current, typeParameter) && current.NullableAnnotation == NullableAnnotation.Annotated;
FindSymbols\FindReferences\MetadataUnifyingEquivalenceComparer.cs (1)
31return object.Equals(x, y);
FindSymbols\SymbolFinder_Helpers.cs (1)
179if (Equals(resolvedType, forwardedTo))
Options\GlobalOptionService.cs (2)
159if (Equals(value, existingValue)) 202if (Equals(oldValue, newValue))
Options\LegacyWorkspaceOptionService.cs (1)
61if (Equals(value, GetExternallyDefinedOption(optionKey)))
Options\SolutionOptionSet.cs (1)
67if (Equals(internalValue, currentInternalValue))
ReassignedVariable\AbstractReassignedVariableService.cs (2)
367return Equals(getParameter, symbol) || Equals(setParameter, symbol);
Rename\ConflictEngine\ConflictResolver.Session.cs (1)
604if (overridingSymbol != null && !Equals(renamedSymbolInNewSolution, overridingSymbol))
Rename\ConflictEngine\DeclarationConflictHelpers.cs (2)
61if (!(conflictingMethod.PartialDefinitionPart != null && Equals(conflictingMethod.PartialDefinitionPart, renamedMethod)) && 62!(conflictingMethod.PartialImplementationPart != null && Equals(conflictingMethod.PartialImplementationPart, renamedMethod)))
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (1)
127&& Equals(possibleConstructor.ContainingType.ConstructedFrom, namedType.ConstructedFrom);
Shared\Extensions\INamespaceSymbolExtensions.cs (1)
170if (Equals(constituent.ContainingAssembly, assembly))
Shared\Extensions\ISymbolExtensions.cs (3)
118if (Equals(attribute.AttributeClass, hideModuleNameAttribute)) 135if (Equals(attribute.AttributeConstructor, constructor) && 190if (Equals(attribute.AttributeConstructor, constructor))
Shared\Utilities\EditorBrowsableHelpers.cs (3)
43.Where(c => c.Parameters.Length == 1 && Equals(c.Parameters[0].Type, editorBrowsableStateType)); 109(Equals(c.Parameters[0].Type, typeLibFlagsType) || Equals(c.Parameters[0].Type, shortType)));
src\Compilers\Core\Portable\InternalUtilities\DocumentationCommentXmlNames.cs (1)
64return object.Equals(left, right);
src\Compilers\Core\Portable\InternalUtilities\ReferenceEqualityComparer.cs (1)
37/// It is not necessarily equivalent to calling <see cref="object.Equals(object?, object?)"/>.
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
310if (Equals(self.KeyComparer, equalityComparer))
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
47if (Equals(KeyComparer, value ?? EqualityComparer<T>.Default))
src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
85if (Equals(_loneValue, item))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.cs (1)
47.FirstOrDefault(o => Equals((o as ILocalFunctionOperation)?.Symbol, localFunction));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageResult.cs (2)
59if (kvp.Key.write == null && Equals(kvp.Key.symbol, parameter)) 76if (Equals(kvp.Key.symbol, symbol))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\PublicOptionFactory.cs (1)
126equals = Equals(x.DefaultValue, y.DefaultValue) && x.Type == y.Type;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFactsExtensions.cs (2)
51if (!Equals(semanticModel.GetTypeInfo(parentBinaryLeft).Type, 57if (!Equals(semanticModel.GetTypeInfo(parentBinaryLeft).ConvertedType,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (2)
418Contract.ThrowIfFalse(Equals(method, _methodSymbolStack[^1])); 434Contract.ThrowIfFalse(Equals(contextualSymbol, _contextualSymbolStack.Peek()));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (3)
1171if (!object.Equals(parameter2.ExplicitDefaultValue, parameter1.ExplicitDefaultValue)) 1176if (object.Equals(parameter1.ExplicitDefaultValue, 0.0)) 1178RoslynDebug.Assert(object.Equals(parameter2.ExplicitDefaultValue, 0.0));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IAssemblySymbolExtensions.cs (1)
66Equals(assembly, toAssembly) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IMethodSymbolExtensions.cs (2)
25Debug.Assert(method.PartialImplementationPart == null && !Equals(method.PartialDefinitionPart, method)); 30Debug.Assert(!Equals(method.PartialImplementationPart, method));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (2)
260return implementation != null && Equals(implementation.ContainingType, classOrStructType); 279return implementation != null && Equals(implementation.ContainingType, classOrStructType);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
721(Equals(iDisposableType, type) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.SubstituteTypesVisitor.cs (4)
61if (!Equals(mapped, symbol)) 82if (!Equals(updatedContainingType, symbol.ContainingType)) 99if (!Equals(mapped, symbol)) 116if (!Equals(mapped, symbol))
Workspace\ProjectSystem\ProjectSystemProject.cs (1)
257if (object.Equals(field, newValue))
Workspace\Solution\SolutionState_Checksum.cs (1)
143RoslynDebug.Assert(Equals(projectConeTemp, stateChecksums.ProjectCone));
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (4)
src\Compilers\Core\Portable\InternalUtilities\DocumentationCommentXmlNames.cs (1)
64return object.Equals(left, right);
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
310if (Equals(self.KeyComparer, equalityComparer))
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
47if (Equals(KeyComparer, value ?? EqualityComparer<T>.Default))
src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
85if (Equals(_loneValue, item))
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
ObjectSerializationTests.cs (1)
114return object.Equals(value1, value2)
WorkspaceTests\WorkspaceTests.cs (1)
203if (!Equals(currentValue, value))
Microsoft.CommonLanguageServerProtocol.Framework.Package (1)
MethodHandlerDetails.cs (1)
170if (!Equals(types[i], parameters[i].ParameterType))
Microsoft.DotNet.Build.Tasks.Packaging (1)
GenerateNuSpec.cs (1)
283return Object.Equals(x, y) ||
Microsoft.DotNet.NuGetRepack.Tests (6)
TestHelpers\AssertEx.cs (6)
41return object.Equals(@object, default(T)); 53if (object.Equals(x, default(T))) 55return object.Equals(y, default(T)); 58if (object.Equals(y, default(T))) 105if (!Equals(enumeratorX.Current, enumeratorY.Current)) 112return object.Equals(x, y);
Microsoft.DotNet.SourceBuild.Tasks (1)
src\UsageReport\Usage.cs (1)
100Equals(PackageIdentity, other.PackageIdentity) &&
Microsoft.Extensions.Caching.Hybrid.Tests (1)
TestEventListener.cs (1)
155if (!Equals(expected, actual))
Microsoft.Extensions.DependencyInjection.Abstractions (4)
Extensions\ServiceCollectionDescriptorExtensions.cs (3)
70&& object.Equals(collection[i].ServiceKey, descriptor.ServiceKey)) 477object.Equals(service.ServiceKey, descriptor.ServiceKey)) 535if (collection[i].ServiceType == descriptor.ServiceType && object.Equals(collection[i].ServiceKey, descriptor.ServiceKey))
Extensions\ServiceCollectionDescriptorExtensions.Keyed.cs (1)
404if (descriptor.ServiceType == serviceType && object.Equals(descriptor.ServiceKey, serviceKey))
Microsoft.Extensions.Diagnostics (2)
src\libraries\Common\src\System\Diagnostics\DiagnosticsHelper.cs (2)
61if (compareResult == 0 && object.Equals(pair.Value, pair1.Value)) 100if (compareResult == 0 && object.Equals(pair.Value, pair1.Value))
Microsoft.Extensions.Diagnostics.Testing (2)
Metrics\CollectedMeasurement.cs (1)
68if (!object.Equals(kvp.Value, value))
Metrics\MetricCollector.cs (1)
90Initialize(instrument => Equals(instrument.Meter.Scope, meterScope) && instrument.Meter.Name == meterName && instrument.Name == instrumentName);
Microsoft.Extensions.Http.Resilience.Tests (3)
artifacts\obj\Microsoft.Extensions.Http.Resilience.Tests\Debug\net9.0\Protos\Greet.cs (2)
119return Equals(_unknownFields, other._unknownFields); 312return Equals(_unknownFields, other._unknownFields);
Helpers\OptionsUtilities.cs (1)
40!Equals(propertyValue1, propertyValue2))
Microsoft.Extensions.Identity.Stores (1)
UserStoreBase.cs (1)
241if (object.Equals(id, default(TKey)))
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (1)
tests\Shared\Logging\LogValuesAssert.cs (1)
61return string.Equals(x.Key, y.Key) && object.Equals(x.Value, y.Value);
Microsoft.Extensions.Validation.ValidationsGenerator (1)
src\Shared\RoslynUtils\BoundedCacheWithFactory.cs (1)
49if (Equals(cachedEntry.Key, key))
Microsoft.Maui (2)
Extensions\EnumerableExtensions.cs (2)
83 if (Equals(element, item)) 121 if (Equals(element, item))
Microsoft.Maui.Controls (10)
AnimatableKey.cs (1)
111 return Equals(thisAnimatable, thatAnimatable);
BindableObject.cs (2)
138 var changed = !Equals(original.Value, newValue); 637 bool sameValue = ReferenceEquals(context.Property, BindingContextProperty) ? ReferenceEquals(value, original) : Equals(value, original);
BindingExpression.cs (1)
499 else if (object.Equals(elem, chainMember))
ListProxy.cs (1)
102 if (Equals(kvp.Value, item))
RadioButton\RadioButton.cs (2)
426 if (!IsChecked || selected == this || string.IsNullOrEmpty(GroupName) || GroupName != selected.GroupName || (Value is not null && object.Equals(Value, args.Value)) || !MatchesScope(args)) 436 if (IsChecked || string.IsNullOrEmpty(GroupName) || GroupName != args.GroupName || !object.Equals(Value, args.Value) || !MatchesScope(args))
RadioButton\RadioButtonGroupController.cs (1)
107 if (object.Equals(radioButton.Value, this.SelectedValue))
ScrollView\ScrollView.cs (1)
351 return Equals(element, this) || element.RealParent != null && CheckElementBelongsToScrollViewer(element.RealParent);
TypedBinding.cs (1)
394 else if (object.Equals(elem, chainMember))
Microsoft.Maui.Controls.BindingSourceGen (1)
EquatableArray.cs (1)
42 return obj is EquatableArray<T> array && Equals(this, array);
Microsoft.Maui.Controls.Maps (3)
Pin.cs (3)
130 return Equals(left, right); 141 return !Equals(left, right); 173 Equals(Location, other.Location) && Type == other.Type &&
Microsoft.Maui.Essentials (2)
Types\Location.shared.cs (2)
280 return Equals(left, right); 291 return !Equals(left, right);
Microsoft.Maui.Graphics (1)
Text\TextAttributesExtensions.cs (1)
148 if (Equals(value, defaultValue))
Microsoft.Maui.Maps (2)
Primitives\MapSpan.cs (2)
70 return Equals(left, right); 75 return !Equals(left, right);
Microsoft.ML.EntryPoints (1)
JsonUtils\JsonManifestUtils.cs (1)
505needValue = !Equals(actualValue, defaultValue);
Microsoft.ML.OnnxConverter (36)
OnnxMl.cs (36)
534if (!object.Equals(T, other.T)) return false; 535if (!object.Equals(G, other.G)) return false; 536if (!object.Equals(SparseTensor, other.SparseTensor)) return false; 543return Equals(_unknownFields, other._unknownFields); 1022if (!object.Equals(Type, other.Type)) return false; 1024return Equals(_unknownFields, other._unknownFields); 1342return Equals(_unknownFields, other._unknownFields); 1749if (!object.Equals(Graph, other.Graph)) return false; 1751return Equals(_unknownFields, other._unknownFields); 2067return Equals(_unknownFields, other._unknownFields); 2262return Equals(_unknownFields, other._unknownFields); 2572return Equals(_unknownFields, other._unknownFields); 3068if (!object.Equals(Segment, other.Segment)) return false; 3080return Equals(_unknownFields, other._unknownFields); 3515return Equals(_unknownFields, other._unknownFields); 3743if (!object.Equals(Values, other.Values)) return false; 3744if (!object.Equals(Indices, other.Indices)) return false; 3746return Equals(_unknownFields, other._unknownFields); 3951return Equals(_unknownFields, other._unknownFields); 4172return Equals(_unknownFields, other._unknownFields); 4503if (!object.Equals(TensorType, other.TensorType)) return false; 4504if (!object.Equals(SequenceType, other.SequenceType)) return false; 4505if (!object.Equals(MapType, other.MapType)) return false; 4506if (!object.Equals(SparseTensorType, other.SparseTensorType)) return false; 4507if (!object.Equals(OpaqueType, other.OpaqueType)) return false; 4510return Equals(_unknownFields, other._unknownFields); 4834if (!object.Equals(Shape, other.Shape)) return false; 4835return Equals(_unknownFields, other._unknownFields); 5025if (!object.Equals(ElemType, other.ElemType)) return false; 5026return Equals(_unknownFields, other._unknownFields); 5216if (!object.Equals(ValueType, other.ValueType)) return false; 5217return Equals(_unknownFields, other._unknownFields); 5420if (!object.Equals(Shape, other.Shape)) return false; 5421return Equals(_unknownFields, other._unknownFields); 5626return Equals(_unknownFields, other._unknownFields); 5837return Equals(_unknownFields, other._unknownFields);
Microsoft.ML.OnnxTransformer (36)
src\Microsoft.ML.OnnxConverter\OnnxMl.cs (36)
534if (!object.Equals(T, other.T)) return false; 535if (!object.Equals(G, other.G)) return false; 536if (!object.Equals(SparseTensor, other.SparseTensor)) return false; 543return Equals(_unknownFields, other._unknownFields); 1022if (!object.Equals(Type, other.Type)) return false; 1024return Equals(_unknownFields, other._unknownFields); 1342return Equals(_unknownFields, other._unknownFields); 1749if (!object.Equals(Graph, other.Graph)) return false; 1751return Equals(_unknownFields, other._unknownFields); 2067return Equals(_unknownFields, other._unknownFields); 2262return Equals(_unknownFields, other._unknownFields); 2572return Equals(_unknownFields, other._unknownFields); 3068if (!object.Equals(Segment, other.Segment)) return false; 3080return Equals(_unknownFields, other._unknownFields); 3515return Equals(_unknownFields, other._unknownFields); 3743if (!object.Equals(Values, other.Values)) return false; 3744if (!object.Equals(Indices, other.Indices)) return false; 3746return Equals(_unknownFields, other._unknownFields); 3951return Equals(_unknownFields, other._unknownFields); 4172return Equals(_unknownFields, other._unknownFields); 4503if (!object.Equals(TensorType, other.TensorType)) return false; 4504if (!object.Equals(SequenceType, other.SequenceType)) return false; 4505if (!object.Equals(MapType, other.MapType)) return false; 4506if (!object.Equals(SparseTensorType, other.SparseTensorType)) return false; 4507if (!object.Equals(OpaqueType, other.OpaqueType)) return false; 4510return Equals(_unknownFields, other._unknownFields); 4834if (!object.Equals(Shape, other.Shape)) return false; 4835return Equals(_unknownFields, other._unknownFields); 5025if (!object.Equals(ElemType, other.ElemType)) return false; 5026return Equals(_unknownFields, other._unknownFields); 5216if (!object.Equals(ValueType, other.ValueType)) return false; 5217return Equals(_unknownFields, other._unknownFields); 5420if (!object.Equals(Shape, other.Shape)) return false; 5421return Equals(_unknownFields, other._unknownFields); 5626return Equals(_unknownFields, other._unknownFields); 5837return Equals(_unknownFields, other._unknownFields);
Microsoft.ML.TimeSeries (6)
RootCauseAnalyzer.cs (4)
81if (object.Equals(aggSymbol, entry.Value)) 726if (!bigDictionary.ContainsKey(item.Key) || !object.Equals(bigDictionary[item.Key], smallDictionary[item.Key])) 737return object.Equals(val, aggSymbol); 830if (!object.Equals(pair.Value, y[pair.Key]))
RootCauseLocalizationType.cs (2)
158if (!object.Equals(other.Dimension[item.Key], item.Value)) 231if (!object.Equals(other.Dimension[item.Key], item.Value))
Microsoft.ML.Tokenizers (15)
SentencepieceModel.cs (15)
1655if (!Equals(_extensions, other._extensions)) { 1658return Equals(_unknownFields, other._unknownFields); 3102if (!Equals(_extensions, other._extensions)) { 3105return Equals(_unknownFields, other._unknownFields); 3454if (!Equals(_extensions, other._extensions)) { 3457return Equals(_unknownFields, other._unknownFields); 3721return Equals(_unknownFields, other._unknownFields); 4014if (!object.Equals(TrainerSpec, other.TrainerSpec)) return false; 4015if (!object.Equals(NormalizerSpec, other.NormalizerSpec)) return false; 4016if (!object.Equals(SelfTestData, other.SelfTestData)) return false; 4017if (!object.Equals(DenormalizerSpec, other.DenormalizerSpec)) return false; 4018if (!Equals(_extensions, other._extensions)) { 4021return Equals(_unknownFields, other._unknownFields); 4451if (!Equals(_extensions, other._extensions)) { 4454return Equals(_unknownFields, other._unknownFields);
Microsoft.ML.Transforms (1)
MissingValueReplacingUtils.cs (1)
480if (Equals(count, (ulong)_cna))
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\Collection.vb (1)
471Return Object.Equals(obj1, obj2)
Microsoft.VisualStudio.LanguageServices.CSharp (1)
ProjectSystemShim\CSharpProjectShim.OptionsProcessor.cs (1)
44if (object.Equals(_options[(int)compilerOption], value))
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
CodeModel\VisualBasicCodeModelService.vb (1)
4153If CaseInsensitiveComparison.Equals(eventName, handledEventName) Then
MSBuild (2)
CollectionHelpers.cs (1)
72if (!Equals(aKvp.Value, bValue))
XMake.cs (1)
1979&& !Equals(CultureInfo.InvariantCulture, thisThread.CurrentUICulture))
MSBuildTaskHost (1)
Immutable\ImmutableDictionary.cs (1)
132if (TryGetValue(key, out V existingValue) && Object.Equals(existingValue, value))
MyFrontend (11)
artifacts\obj\MyFrontend\Debug\net8.0\Basket.cs (11)
141return Equals(_unknownFields, other._unknownFields); 352return Equals(_unknownFields, other._unknownFields); 576return Equals(_unknownFields, other._unknownFields); 840if (!object.Equals(UnitPrice, other.UnitPrice)) return false; 841if (!object.Equals(OldUnitPrice, other.OldUnitPrice)) return false; 843return Equals(_unknownFields, other._unknownFields); 1151return Equals(_unknownFields, other._unknownFields); 1335return Equals(_unknownFields, other._unknownFields); 1510return Equals(_unknownFields, other._unknownFields); 1694return Equals(_unknownFields, other._unknownFields); 1894return Equals(_unknownFields, other._unknownFields);
PresentationCore (1)
MS\Internal\Span.cs (1)
441private static Equals _equals = new Equals(Object.Equals);
PresentationFramework (40)
MS\Internal\Data\BindingWorker.cs (1)
127internal void SetValue(Feature id, object value, object defaultValue) { if (Object.Equals(value, defaultValue)) _values.ClearValue((int)id); else _values.SetValue((int)id, value); }
MS\Internal\Data\CollectionViewGroupRoot.cs (1)
254if (Object.Equals(name, child.Group.Name))
MS\Internal\Data\IndexedEnumerable.cs (1)
105if (object.Equals(_enumerator.Current, item))
MS\Internal\Data\PropertyPathWorker.cs (2)
1255if (!Object.Equals(info, svs.info)) 1270if (!Object.Equals(args[i], svs.args[i]))
MS\Internal\Data\ValueTable.cs (3)
248if (Object.Equals(item, key.Item)) 341Object.Equals(item, that.Item) && 342Object.Equals(descriptor, that.PropertyDescriptor);
MS\Internal\WeakDictionary.cs (1)
282if (object.Equals(_hashTable[item.Key], item.Value))
MS\Internal\WeakObjectHashtable.cs (1)
177return object.Equals(x, y);
System\Windows\Automation\Peers\ItemAutomationPeer.cs (1)
690System.Diagnostics.Debug.Assert(Object.Equals(item, Item), "ItemPeer reuse for an unequal item is not supported");
System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (2)
586if (Object.Equals(item, pair.Key)) 646if (Object.Equals(item, pair.Key))
System\Windows\Controls\ItemsControl.cs (5)
2252if ((object.Equals(startingItem, firstItem) || 2253object.Equals(startingElement, firstElement)) && 3521return Object.Equals(o1, o2); 3880return Object.Equals(info1, info2); 3885return !Object.Equals(info1, info2);
System\Windows\Controls\Primitives\Selector.cs (3)
640return Object.Equals(tempValue, itemValue); 1130!Object.Equals(SelectedValue, InternalSelectedValue)) 1752if (!Object.Equals(SelectedValue, desiredSelectedValue))
System\Windows\Controls\TextBox.cs (1)
1584if (Object.Equals(_newTextValue, newText))
System\Windows\Controls\Validation.cs (1)
196if (!Object.Equals(oldValue, value))
System\Windows\Controls\ValidationResult.cs (2)
69return Object.Equals(left, right); 80return !Object.Equals(left, right);
System\Windows\Controls\VirtualizingStackPanel.cs (2)
8037result = !Object.Equals(oldValue, value); 12175if (Object.Equals(parentItem, oldsti.ParentItem))
System\Windows\Data\BindingBase.cs (1)
532internal void SetValue(Feature id, object value, object defaultValue) { if (Object.Equals(value, defaultValue)) _values.ClearValue((int)id); else _values.SetValue((int)id, value); }
System\Windows\Data\BindingExpressionBase.cs (1)
2962internal void SetValue(Feature id, object value, object defaultValue) { if (Object.Equals(value, defaultValue)) _values.ClearValue((int)id); else _values.SetValue((int)id, value); }
System\Windows\Data\PropertyGroupDescription.cs (1)
236return Object.Equals(groupName, itemName);
System\Windows\Diagnostics\ResourceDictionaryDiagnostics.cs (2)
369if (!Object.Equals(result.Requester.ResourceKey, key)) 416Debug.Assert(Object.Equals(result.Requester, requester), "Reverting a request for the wrong requester");
System\Windows\Documents\DocumentReference.cs (1)
142if (!object.Equals(e.OldValue, e.NewValue))
System\Windows\Documents\TextRangeEdit.cs (2)
818if (!Object.Equals(currentValue, value)) 898if (!Object.Equals(currentValue, newValue))
System\Windows\ResourceDictionary.cs (1)
1045if (!Object.Equals(_baseDictionary[key], value))
System\Windows\ResourcesChangeInfo.cs (1)
237if (Object.Equals(_key, key))
System\Windows\StyleHelper.cs (2)
5862return Object.Equals(state, referenceValue); 5866return !Object.Equals(state, referenceValue);
System\Windows\TemplateKey.cs (1)
109Object.Equals(_dataType, key._dataType);
PresentationUI (1)
MS\Internal\Documents\RightsManagementManager.cs (1)
1122if (!Uri.Equals(
ReachFramework (8)
AlphaFlattener\SegmentTree.cs (4)
154if (! Double.Equals(values[i].value, val)) 171if (! Double.Equals(values[i].value, newvalues[last].value)) 238bool left = Double.Equals(c.value, dl[c.index].Left); 292if (Double.Equals(c.value, dl[c.index].Left))
PrintConfig\PrintSchemaShim.cs (1)
1161if (object.Equals(pair.Value, value))
PrintConfig\PTManager.cs (1)
139object.Equals(this.ConflictStatus, other.ConflictStatus)
Serialization\Manager\MetroSerializationManager.cs (1)
1051canSerializeValue = !object.Equals(propertyCache.DefaultValueAttr.Value,
Serialization\Manager\ReachSerializationCacheItems.cs (1)
572canSerializeValue = !object.Equals(propertyCache.DefaultValueAttr.Value,
Roslyn.Diagnostics.Analyzers (43)
AbstractCreateTestAccessor`1.cs (1)
44var location = typeSymbol.Locations.FirstOrDefault(location => location.IsInSource && Equals(location.SourceTree, semanticModel.SyntaxTree));
AbstractExposeMemberForTesting`1.cs (1)
50var location = testAccessorType.Locations.FirstOrDefault(location => location.IsInSource && Equals(location.SourceTree, semanticModel.SyntaxTree));
ExportedPartsShouldHaveImportingConstructor.cs (1)
146var properties = Equals(constructor, missingImportingConstructor) ? ScenarioProperties.MissingAttribute : ScenarioProperties.MultipleConstructors;
ImportingConstructorShouldBeObsolete.cs (2)
142if (!Equals(attributeData.ConstructorArguments[0].Value, "This exported object must be obtained through the MEF export provider.")) 149if (!Equals(attributeData.ConstructorArguments[1].Value, true))
SpecializedEnumerableCreationAnalyzer.cs (3)
112Equals(methodSymbol.ReturnType.OriginalDefinition, _genericEnumerableSymbol)) 137Equals(typeInfo.ConvertedType.OriginalDefinition, GenericEnumerableSymbol) && 145Equals(methodSymbol.OriginalDefinition, _genericEmptyEnumerableSymbol))
src\Compilers\Core\Portable\InternalUtilities\DocumentationCommentXmlNames.cs (1)
64return object.Equals(left, right);
src\Compilers\Core\Portable\InternalUtilities\ReferenceEqualityComparer.cs (1)
37/// It is not necessarily equivalent to calling <see cref="object.Equals(object?, object?)"/>.
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
310if (Equals(self.KeyComparer, equalityComparer))
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
47if (Equals(KeyComparer, value ?? EqualityComparer<T>.Default))
src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
85if (Equals(_loneValue, item))
src\RoslynAnalyzers\Utilities\Compiler\BoundedCacheWithFactory.cs (1)
48if (Equals(cachedEntry.Key, key))
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (3)
75if (!Equals(model.GetDeclaredSymbol(declSyntax, context.CancellationToken), symbol)) 183while (declSyntax.Parent != null && Equals(model.GetDeclaredSymbol(declSyntax.Parent, context.CancellationToken), declaredSymbol)) 248if (declaredSymbol != null && !Equals(symbol, declaredSymbol) && declaredSymbol.Kind != SymbolKind.Parameter)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (1)
52/// Checks if the given <paramref name="method"/> is <see cref="object.Equals(object, object)"/> or <see cref="object.ReferenceEquals(object, object)"/>.
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISymbolExtensions.cs (1)
51Equals(associated.AssociatedSymbol, propertySymbol))
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (1)
204return !Equals(false, typedConstant.Value);
src\RoslynAnalyzers\Utilities\Compiler\Lightup\LightupHelpers.cs (1)
117if (Equals(newValue, fallbackResult))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.cs (1)
47.FirstOrDefault(o => Equals((o as ILocalFunctionOperation)?.Symbol, localFunction));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageResult.cs (2)
59if (kvp.Key.write == null && Equals(kvp.Key.symbol, parameter)) 76if (Equals(kvp.Key.symbol, symbol))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFactsExtensions.cs (2)
51if (!Equals(semanticModel.GetTypeInfo(parentBinaryLeft).Type, 57if (!Equals(semanticModel.GetTypeInfo(parentBinaryLeft).ConvertedType,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (2)
418Contract.ThrowIfFalse(Equals(method, _methodSymbolStack[^1])); 434Contract.ThrowIfFalse(Equals(contextualSymbol, _contextualSymbolStack.Peek()));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (3)
1171if (!object.Equals(parameter2.ExplicitDefaultValue, parameter1.ExplicitDefaultValue)) 1176if (object.Equals(parameter1.ExplicitDefaultValue, 0.0)) 1178RoslynDebug.Assert(object.Equals(parameter2.ExplicitDefaultValue, 0.0));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IAssemblySymbolExtensions.cs (1)
66Equals(assembly, toAssembly) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IMethodSymbolExtensions.cs (2)
25Debug.Assert(method.PartialImplementationPart == null && !Equals(method.PartialDefinitionPart, method)); 30Debug.Assert(!Equals(method.PartialImplementationPart, method));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (2)
260return implementation != null && Equals(implementation.ContainingType, classOrStructType); 279return implementation != null && Equals(implementation.ContainingType, classOrStructType);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
721(Equals(iDisposableType, type) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.SubstituteTypesVisitor.cs (4)
61if (!Equals(mapped, symbol)) 82if (!Equals(updatedContainingType, symbol.ContainingType)) 99if (!Equals(mapped, symbol)) 116if (!Equals(mapped, symbol))
TemporaryArrayAsRefAnalyzer.cs (1)
59if (!Equals(targetMethod.OriginalDefinition, temporaryArrayAsRef))
TestExportsShouldNotBeDiscoverable.cs (1)
87&& Equals(ad.AttributeClass.ContainingNamespace, exportAttribute.ContainingNamespace)))
Roslyn.Diagnostics.CSharp.Analyzers (19)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (14)
130if (Equals(enumType?.EnumUnderlyingType, castedType)) 165if (Equals(enumType?.EnumUnderlyingType, castedType)) 273if (!Equals(originalDelegateCreationOperation.Type, rewrittenDelegateCreationOperation.Type)) 416if (!Equals(originalParentConversion.MethodSymbol, rewrittenConversion.MethodSymbol)) 1072if (Equals(castSideType, otherSideType) || Equals(underlyingType, otherSideType)) 1247!Equals(oldSymbolInfo, newSymbolInfo)) 1278if (!Equals(oldConversion.MethodSymbol, newConversion.MethodSymbol)) 1341if (Equals(originalMemberSymbol, rewrittenMemberSymbol)) 1370Equals(implementationMember, rewrittenMemberSymbol) && 1380if (Equals(originalMemberSymbol, current)) 1429return Equals(originalMethodSymbol.ReturnType, rewrittenMethodSymbol.ReturnType); 1481if (!Equals(originalMemberType, rewrittenMemberType)) 1504var argument = invocationOperation.Arguments.FirstOrDefault(a => Equals(originalParameter, a.Parameter)); 1516!Equals(originalParameter.ExplicitDefaultValue, rewrittenParameter.ExplicitDefaultValue) &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (4)
438if (Equals(originalCaseType, newCaseType)) 494if (!Equals(originalExprType.Type, replacedExprType.Type)) 545if (!Equals(originalExpressionTypeInfo.Type, newExpressionTypeInfo.Type)) 563return !object.Equals(originalExpressionType, newExpressionType);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpMoveDeclarationNearReferenceService.cs (1)
63return Equals(localSymbol.Type, rightType.Type);
Roslyn.Diagnostics.VisualBasic.Analyzers (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Utilities\CastAnalyzer.vb (2)
69If Not Object.Equals(expressionTypeInfo.Type, expressionTypeInfo.ConvertedType) Then 306Return Equals(castType, speculatedExpressionOuterType)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\SemanticModelExtensions.vb (1)
38Function(s) Not reservedNames.Any(Function(n) CaseInsensitiveComparison.Equals(s, n)),
RulesetToEditorconfigConverter.UnitTests (1)
RulesetToEditorconfigConverterTests.cs (1)
37if (!Equals(expectedEditorconfigText, actualEditorConfigText))
Sandbox (14)
artifacts\obj\Sandbox\Release\net10.0\Greet.cs (4)
121return Equals(_unknownFields, other._unknownFields); 325return Equals(_unknownFields, other._unknownFields); 551if (!object.Equals(Nested, other.Nested)) return false; 552return Equals(_unknownFields, other._unknownFields);
artifacts\obj\Sandbox\Release\net10.0\Transcoding.cs (10)
260if (!object.Equals(Sub, other.Sub)) return false; 261if (!object.Equals(Data, other.Data)) return false; 262if (!object.Equals(Wrappers, other.Wrappers)) return false; 264return Equals(_unknownFields, other._unknownFields); 579return Equals(_unknownFields, other._unknownFields); 1005if (!object.Equals(SingleMessage, other.SingleMessage)) return false; 1006return Equals(_unknownFields, other._unknownFields); 1587return Equals(_unknownFields, other._unknownFields); 1912return Equals(_unknownFields, other._unknownFields); 2372return Equals(_unknownFields, other._unknownFields);
SocialWeather (1)
Protobuf\WeatherReport.cs (1)
158return Equals(_unknownFields, other._unknownFields);
Stress.TelemetryService (63)
artifacts\obj\Stress.TelemetryService\Debug\net8.0\opentelemetry\proto\collector\logs\v1\LogsService.cs (4)
135return Equals(_unknownFields, other._unknownFields); 339if (!object.Equals(PartialSuccess, other.PartialSuccess)) return false; 340return Equals(_unknownFields, other._unknownFields); 576return Equals(_unknownFields, other._unknownFields);
artifacts\obj\Stress.TelemetryService\Debug\net8.0\opentelemetry\proto\collector\metrics\v1\MetricsService.cs (4)
137return Equals(_unknownFields, other._unknownFields); 341if (!object.Equals(PartialSuccess, other.PartialSuccess)) return false; 342return Equals(_unknownFields, other._unknownFields); 578return Equals(_unknownFields, other._unknownFields);
artifacts\obj\Stress.TelemetryService\Debug\net8.0\opentelemetry\proto\collector\trace\v1\TraceService.cs (4)
136return Equals(_unknownFields, other._unknownFields); 340if (!object.Equals(PartialSuccess, other.PartialSuccess)) return false; 341return Equals(_unknownFields, other._unknownFields); 577return Equals(_unknownFields, other._unknownFields);
artifacts\obj\Stress.TelemetryService\Debug\net8.0\opentelemetry\proto\common\v1\Common.cs (8)
332if (!object.Equals(ArrayValue, other.ArrayValue)) return false; 333if (!object.Equals(KvlistValue, other.KvlistValue)) return false; 336return Equals(_unknownFields, other._unknownFields); 708return Equals(_unknownFields, other._unknownFields); 908return Equals(_unknownFields, other._unknownFields); 1113if (!object.Equals(Value, other.Value)) return false; 1114return Equals(_unknownFields, other._unknownFields); 1397return Equals(_unknownFields, other._unknownFields);
artifacts\obj\Stress.TelemetryService\Debug\net8.0\opentelemetry\proto\logs\v1\Logs.cs (7)
229return Equals(_unknownFields, other._unknownFields); 455if (!object.Equals(Resource, other.Resource)) return false; 458return Equals(_unknownFields, other._unknownFields); 739if (!object.Equals(Scope, other.Scope)) return false; 742return Equals(_unknownFields, other._unknownFields); 1182if (!object.Equals(Body, other.Body)) return false; 1188return Equals(_unknownFields, other._unknownFields);
artifacts\obj\Stress.TelemetryService\Debug\net8.0\opentelemetry\proto\metrics\v1\Metrics.cs (25)
329return Equals(_unknownFields, other._unknownFields); 555if (!object.Equals(Resource, other.Resource)) return false; 558return Equals(_unknownFields, other._unknownFields); 839if (!object.Equals(Scope, other.Scope)) return false; 842return Equals(_unknownFields, other._unknownFields); 1311if (!object.Equals(Gauge, other.Gauge)) return false; 1312if (!object.Equals(Sum, other.Sum)) return false; 1313if (!object.Equals(Histogram, other.Histogram)) return false; 1314if (!object.Equals(ExponentialHistogram, other.ExponentialHistogram)) return false; 1315if (!object.Equals(Summary, other.Summary)) return false; 1317return Equals(_unknownFields, other._unknownFields); 1755return Equals(_unknownFields, other._unknownFields); 1981return Equals(_unknownFields, other._unknownFields); 2236return Equals(_unknownFields, other._unknownFields); 2468return Equals(_unknownFields, other._unknownFields); 2686return Equals(_unknownFields, other._unknownFields); 3044return Equals(_unknownFields, other._unknownFields); 3631return Equals(_unknownFields, other._unknownFields); 4338if (!object.Equals(Positive, other.Positive)) return false; 4339if (!object.Equals(Negative, other.Negative)) return false; 4345return Equals(_unknownFields, other._unknownFields); 4876return Equals(_unknownFields, other._unknownFields); 5220return Equals(_unknownFields, other._unknownFields); 5572return Equals(_unknownFields, other._unknownFields); 5951return Equals(_unknownFields, other._unknownFields);
artifacts\obj\Stress.TelemetryService\Debug\net8.0\opentelemetry\proto\resource\v1\Resource.cs (1)
144return Equals(_unknownFields, other._unknownFields);
artifacts\obj\Stress.TelemetryService\Debug\net8.0\opentelemetry\proto\trace\v1\Trace.cs (10)
175return Equals(_unknownFields, other._unknownFields); 401if (!object.Equals(Resource, other.Resource)) return false; 404return Equals(_unknownFields, other._unknownFields); 685if (!object.Equals(Scope, other.Scope)) return false; 688return Equals(_unknownFields, other._unknownFields); 1225if (!object.Equals(Status, other.Status)) return false; 1226return Equals(_unknownFields, other._unknownFields); 1828return Equals(_unknownFields, other._unknownFields); 2165return Equals(_unknownFields, other._unknownFields); 2474return Equals(_unknownFields, other._unknownFields);
System.Collections.Specialized (2)
System\Collections\Specialized\OrderedDictionary.cs (2)
591if (object.Equals(((DictionaryEntry)o).Value, value)) 619else if (object.Equals(((DictionaryEntry)_objects[i]!).Value, value))
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\CompareAttribute.cs (1)
49if (!Equals(value, otherPropertyValue))
System.ComponentModel.Composition (1)
System\ComponentModel\Composition\ReflectionModel\LazyMemberInfo.cs (1)
126return object.Equals(_accessorsCreator, other._accessorsCreator);
System.ComponentModel.TypeConverter (4)
System\ComponentModel\ReflectPropertyDescriptor.cs (4)
530return !Equals(ExtenderGetValue(provider, component), _defaultValue); 694return !Equals(DefaultValue, ExtenderGetValue(prov, component)); 718return !Equals(GetValue(component), DefaultValue); 1194return !Equals(DefaultValue, GetValue(component));
System.Configuration.ConfigurationManager (10)
System\Configuration\ConfigurationElement.cs (5)
686if (!Equals(thisValue, otherValue)) 689if (!((IsNullOrNullProperty(thisValue) && Equals(otherValue, configProperty.DefaultValue)) 690|| (IsNullOrNullProperty(otherValue) && Equals(thisValue, configProperty.DefaultValue)))) 968if (!Equals(value, value2) || prop.IsRequired) 979((parentElement == null) && inherited && !Equals(value, value2)))
System\Configuration\ConfigurationElementCollection.cs (3)
220if (!Equals(thisEntry.Value, compareEntry.Value)) continue; 404if (Equals(entry.GetKey(this), parentEntry.GetKey(this))) 420if (!Equals(entry.Value, parentEntry.Value)) continue;
System\Configuration\SettingElement.cs (1)
48return (element != null && base.Equals(settings) && Equals(element.Value, Value));
System\Configuration\SettingValueElement.cs (1)
40return (u != null && Equals(u.ValueXml, ValueXml));
System.Diagnostics.DiagnosticSource (2)
src\libraries\Common\src\System\Diagnostics\DiagnosticsHelper.cs (2)
61if (compareResult == 0 && object.Equals(pair.Value, pair1.Value)) 100if (compareResult == 0 && object.Equals(pair.Value, pair1.Value))
System.Linq.Expressions (4)
System\Dynamic\ExpandoObject.cs (3)
218if (deleteValue != Uninitialized && !object.Equals(oldValue, deleteValue)) 538if (object.Equals(data[i], item)) 710return object.Equals(value, item.Value);
System\Linq\Expressions\Interpreter\LightCompiler.cs (1)
1591if (object.Equals(node.Comparison, equality))
System.Memory (1)
System\SequencePosition.cs (1)
43public bool Equals(SequencePosition other) => _integer == other._integer && object.Equals(this._object, other._object);
System.Net.Http (2)
src\libraries\Common\src\System\Net\Security\SslClientAuthenticationOptionsExtensions.cs (2)
63Debug.Assert(Equals(e1.Current, e2.Current), $"{pi.Name}. Cloned enumerator's values don't match."); 79Debug.Assert(Equals(origValue, cloneValue), $"{pi.Name}. Expected: {origValue}, Actual: {cloneValue}");
System.Net.Requests (1)
src\libraries\Common\src\System\Net\ContextAwareResult.cs (1)
44if (!object.Equals(_savedCallback, callback))
System.Net.Sockets (3)
System\Net\Sockets\Socket.Unix.cs (1)
282Debug.Assert(Equals(origValue, cloneValue), $"{pi.Name}. Expected: {origValue}, Actual: {cloneValue}");
System\Net\Sockets\UdpReceiveResult.cs (2)
76return object.Equals(_buffer, other._buffer) && object.Equals(_remoteEndPoint, other._remoteEndPoint);
System.Private.CoreLib (5)
src\libraries\System.Private.CoreLib\src\System\ApplicationId.cs (4)
73Equals(Name, other.Name) && 74Equals(Version, other.Version) && 75Equals(ProcessorArchitecture, other.ProcessorArchitecture) && 76Equals(Culture, other.Culture) &&
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\ReferenceEqualityComparer.cs (1)
41/// It is not necessarily equivalent to calling <see cref="object.Equals(object?, object?)"/>.
System.Private.DataContractSerialization (1)
System\Xml\XmlBaseReader.cs (1)
2828if (Equals(prefix, _namespaces[j].Prefix))
System.Private.Windows.Core (2)
System\Collections\Specialized\CompatibleIComparer.cs (1)
38return object.Equals(x, y);
Windows\Win32\Foundation\HandleRef.cs (1)
43=> other.Handle.Equals(Handle) && Equals(other.Wrapper, Wrapper);
System.Private.Xml (1)
System\Xml\Xsl\Runtime\XmlCollation.cs (1)
355object.Equals(_cultInfo, that._cultInfo);
System.Windows.Controls.Ribbon (4)
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroup.cs (1)
460if (tab != null && tab.IsContextualTab && Object.Equals(tab.ContextualTabGroupHeader, Header))
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroupItemsControl.cs (1)
253if (tabGroup != null && Object.Equals(tabGroup.Header, content))
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (1)
1521return Object.Equals(knownValue, itemValue);
Microsoft\Windows\Controls\Ribbon\RibbonQuickAccessToolBar.cs (1)
511if (object.Equals(currentID, targetID))
System.Windows.Forms (20)
System\Windows\Forms\Control.cs (4)
813if (Equals(value, DataContext)) 820if (Properties.ContainsKey(s_dataContextProperty) && Equals(ParentInternal?.DataContext, value)) 1887if (Equals(previous, value)) 7013if (Equals(Properties.GetValueOrDefault<object>(s_dataContextProperty), Parent?.DataContext))
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
233if (!Equals(_commandParameter, value))
System\Windows\Forms\Controls\DataGridView\DataGridViewBand.cs (1)
324if (DataGridView is not null && !Equals(priorValue, value))
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (1)
643if (DataGridView is not null && !Equals(dataGridViewCellStyle, value))
System\Windows\Forms\Controls\DataGridView\DataGridViewCellStyle.cs (2)
132&& Equals(oldValue, value)) 248if (Equals(originalValue, value))
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.cs (1)
443return !Equals(Font, ToolStripManager.DefaultFont);
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
455if (!Equals(_commandParameter, value))
System\Windows\Forms\DataBinding\BindableComponent.cs (1)
33if (!Equals(_bindingContext, value))
System\Windows\Forms\DataBinding\Binding.cs (4)
350if (!Equals(_nullValue, value)) 370if (!Equals(_dsNullValue, value)) 681if (!Equals(value, newValue)) 904if (force || !FormattingEnabled || !Equals(formattedObject, value))
System\Windows\Forms\DataBinding\ICommandBindingTargetProvider.cs (1)
93if (!Equals(commandBackingField, newCommand))
System\Windows\Forms\Dialogs\TaskDialog\TaskDialogButton.cs (1)
306return Equals(b1, b2);
System\Windows\Forms\Internal\Formatter.cs (2)
413return Equals(value, formattedNullValue); 496Equals(value, NullData(value.GetType(), dataSourceNullValue));
System.Windows.Forms.Design (20)
System\ComponentModel\Design\ComponentDesigner.cs (1)
420if (Equals(prop.Attributes[typeof(DesignOnlyAttribute)], DesignOnlyAttribute.Yes))
System\ComponentModel\Design\ComponentDesigner.ShadowPropertyCollection.cs (1)
82return !Equals(this[propertyName], defaultValue);
System\ComponentModel\Design\DesignerActionPanel.PropertyLine.cs (1)
70if (!Equals(Value, newValue))
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (2)
198if (Equals(Value, standardValues[i])) 228if (Equals(Value, standardValues[i]))
System\ComponentModel\Design\InheritedPropertyDescriptor.cs (3)
117public override bool IsReadOnly => _propertyDescriptor.IsReadOnly || Equals(Attributes[typeof(ReadOnlyAttribute)], ReadOnlyAttribute.Yes); 148return !Equals(GetValue(component), _defaultValue); 288return !Equals(GetValue(component), _defaultValue);
System\Windows\Forms\Design\CommandSet.cs (9)
742if (Equals(cmd, MenuCommands.KeyMoveUp)) 746else if (Equals(cmd, MenuCommands.KeyMoveDown)) 750else if (Equals(cmd, MenuCommands.KeyMoveLeft)) 754else if (Equals(cmd, MenuCommands.KeyMoveRight)) 758else if (Equals(cmd, MenuCommands.KeyNudgeUp)) 763else if (Equals(cmd, MenuCommands.KeyNudgeDown)) 768else if (Equals(cmd, MenuCommands.KeyNudgeLeft)) 773else if (Equals(cmd, MenuCommands.KeyNudgeRight)) 2927if (!Equals(TypeDescriptor.GetAttributes(obj)[typeof(InheritanceAttribute)], InheritanceAttribute.NotInherited))
System\Windows\Forms\Design\TabOrder.cs (3)
682if (Equals(_commands[i].CommandID, cmd.CommandID)) 701if (Equals(_commands[i].CommandID, cmd.CommandID)) 712if (!Equals(cmd.CommandID, StandardCommands.TabOrder))
System.Windows.Forms.Tests (1)
System\Windows\Forms\Mocks\DataBinding\ViewModelBase.cs (1)
39if (Equals(storage, value))
System.Xaml (2)
System\Xaml\XamlObjectReader.cs (2)
928return !Equals(defaultValue, actualValue); 2094return Equals(valueInfo.XamlNode.Value, string.Empty);
Test.Utilities (29)
src\Compilers\Core\Portable\InternalUtilities\DocumentationCommentXmlNames.cs (1)
64return object.Equals(left, right);
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
310if (Equals(self.KeyComparer, equalityComparer))
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
47if (Equals(KeyComparer, value ?? EqualityComparer<T>.Default))
src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
85if (Equals(_loneValue, item))
src\RoslynAnalyzers\Utilities\Compiler\BoundedCacheWithFactory.cs (1)
48if (Equals(cachedEntry.Key, key))
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (1)
52/// Checks if the given <paramref name="method"/> is <see cref="object.Equals(object, object)"/> or <see cref="object.ReferenceEquals(object, object)"/>.
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISymbolExtensions.cs (1)
51Equals(associated.AssociatedSymbol, propertySymbol))
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (1)
204return !Equals(false, typedConstant.Value);
src\RoslynAnalyzers\Utilities\Compiler\Lightup\LightupHelpers.cs (1)
117if (Equals(newValue, fallbackResult))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.cs (1)
47.FirstOrDefault(o => Equals((o as ILocalFunctionOperation)?.Symbol, localFunction));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageResult.cs (2)
59if (kvp.Key.write == null && Equals(kvp.Key.symbol, parameter)) 76if (Equals(kvp.Key.symbol, symbol))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFactsExtensions.cs (2)
51if (!Equals(semanticModel.GetTypeInfo(parentBinaryLeft).Type, 57if (!Equals(semanticModel.GetTypeInfo(parentBinaryLeft).ConvertedType,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (2)
418Contract.ThrowIfFalse(Equals(method, _methodSymbolStack[^1])); 434Contract.ThrowIfFalse(Equals(contextualSymbol, _contextualSymbolStack.Peek()));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (3)
1171if (!object.Equals(parameter2.ExplicitDefaultValue, parameter1.ExplicitDefaultValue)) 1176if (object.Equals(parameter1.ExplicitDefaultValue, 0.0)) 1178RoslynDebug.Assert(object.Equals(parameter2.ExplicitDefaultValue, 0.0));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IAssemblySymbolExtensions.cs (1)
66Equals(assembly, toAssembly) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IMethodSymbolExtensions.cs (2)
25Debug.Assert(method.PartialImplementationPart == null && !Equals(method.PartialDefinitionPart, method)); 30Debug.Assert(!Equals(method.PartialImplementationPart, method));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (2)
260return implementation != null && Equals(implementation.ContainingType, classOrStructType); 279return implementation != null && Equals(implementation.ContainingType, classOrStructType);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
721(Equals(iDisposableType, type) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.SubstituteTypesVisitor.cs (4)
61if (!Equals(mapped, symbol)) 82if (!Equals(updatedContainingType, symbol.ContainingType)) 99if (!Equals(mapped, symbol)) 116if (!Equals(mapped, symbol))
Text.Analyzers (33)
src\Compilers\Core\Portable\InternalUtilities\DocumentationCommentXmlNames.cs (1)
64return object.Equals(left, right);
src\Compilers\Core\Portable\InternalUtilities\ReferenceEqualityComparer.cs (1)
37/// It is not necessarily equivalent to calling <see cref="object.Equals(object?, object?)"/>.
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
310if (Equals(self.KeyComparer, equalityComparer))
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
47if (Equals(KeyComparer, value ?? EqualityComparer<T>.Default))
src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
85if (Equals(_loneValue, item))
src\RoslynAnalyzers\Utilities\Compiler\BoundedCacheWithFactory.cs (1)
48if (Equals(cachedEntry.Key, key))
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (3)
75if (!Equals(model.GetDeclaredSymbol(declSyntax, context.CancellationToken), symbol)) 183while (declSyntax.Parent != null && Equals(model.GetDeclaredSymbol(declSyntax.Parent, context.CancellationToken), declaredSymbol)) 248if (declaredSymbol != null && !Equals(symbol, declaredSymbol) && declaredSymbol.Kind != SymbolKind.Parameter)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (1)
52/// Checks if the given <paramref name="method"/> is <see cref="object.Equals(object, object)"/> or <see cref="object.ReferenceEquals(object, object)"/>.
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISymbolExtensions.cs (1)
51Equals(associated.AssociatedSymbol, propertySymbol))
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (1)
204return !Equals(false, typedConstant.Value);
src\RoslynAnalyzers\Utilities\Compiler\Lightup\LightupHelpers.cs (1)
117if (Equals(newValue, fallbackResult))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.cs (1)
47.FirstOrDefault(o => Equals((o as ILocalFunctionOperation)?.Symbol, localFunction));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageResult.cs (2)
59if (kvp.Key.write == null && Equals(kvp.Key.symbol, parameter)) 76if (Equals(kvp.Key.symbol, symbol))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFactsExtensions.cs (2)
51if (!Equals(semanticModel.GetTypeInfo(parentBinaryLeft).Type, 57if (!Equals(semanticModel.GetTypeInfo(parentBinaryLeft).ConvertedType,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (2)
418Contract.ThrowIfFalse(Equals(method, _methodSymbolStack[^1])); 434Contract.ThrowIfFalse(Equals(contextualSymbol, _contextualSymbolStack.Peek()));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (3)
1171if (!object.Equals(parameter2.ExplicitDefaultValue, parameter1.ExplicitDefaultValue)) 1176if (object.Equals(parameter1.ExplicitDefaultValue, 0.0)) 1178RoslynDebug.Assert(object.Equals(parameter2.ExplicitDefaultValue, 0.0));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IAssemblySymbolExtensions.cs (1)
66Equals(assembly, toAssembly) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IMethodSymbolExtensions.cs (2)
25Debug.Assert(method.PartialImplementationPart == null && !Equals(method.PartialDefinitionPart, method)); 30Debug.Assert(!Equals(method.PartialImplementationPart, method));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (2)
260return implementation != null && Equals(implementation.ContainingType, classOrStructType); 279return implementation != null && Equals(implementation.ContainingType, classOrStructType);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
721(Equals(iDisposableType, type) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.SubstituteTypesVisitor.cs (4)
61if (!Equals(mapped, symbol)) 82if (!Equals(updatedContainingType, symbol.ContainingType)) 99if (!Equals(mapped, symbol)) 116if (!Equals(mapped, symbol))
UIAutomationClientSideProviders (2)
MS\Internal\AutomationProxies\WindowsRichEditRange.cs (2)
392if (object.Equals(v1, v2)) 438return object.Equals(v1, (int)v2);
xunit.assert (14)
CollectionAsserts.cs (1)
652 GetSingleResult(collection.Cast<object>(), item => object.Equals(item, expected), ArgumentFormatter.Format(expected));
EqualityAsserts.cs (12)
349 if (!object.Equals(expectedRounded, actualRounded)) 375 if (!object.Equals(expectedRounded, actualRounded)) 398 if (!(object.Equals(expected, actual) || Math.Abs(expected - actual) <= tolerance)) 421 if (!object.Equals(expectedRounded, actualRounded)) 447 if (!object.Equals(expectedRounded, actualRounded)) 470 if (!(object.Equals(expected, actual) || Math.Abs(expected - actual) <= tolerance)) 830 if (object.Equals(expectedRounded, actualRounded)) 856 if (object.Equals(expectedRounded, actualRounded)) 879 if (object.Equals(expected, actual) || Math.Abs(expected - actual) <= tolerance) 902 if (object.Equals(expectedRounded, actualRounded)) 928 if (object.Equals(expectedRounded, actualRounded)) 951 if (object.Equals(expected, actual) || Math.Abs(expected - actual) <= tolerance)
Sdk\AssertEqualityComparer.cs (1)
374 return object.Equals(x, y);