1471 references to Equals
aspire (16)
Resources\AddCommandStrings.Designer.cs (1)
34if (object.Equals(null, resourceMan))
Resources\ConsoleActivityLoggerStrings.Designer.cs (1)
30if (object.Equals(null, resourceMan)) {
Resources\DashboardCommandStrings.Designer.cs (1)
30if (object.Equals(null, resourceMan)) {
Resources\DescribeCommandStrings.Designer.cs (1)
30if (object.Equals(null, resourceMan)) {
Resources\ErrorStrings.Designer.cs (1)
34if (object.Equals(null, resourceMan))
Resources\InitCommandStrings.Designer.cs (1)
30if (object.Equals(null, resourceMan)) {
Resources\LogsCommandStrings.Designer.cs (1)
30if (object.Equals(null, resourceMan)) {
Resources\NewCommandStrings.Designer.cs (1)
30if (object.Equals(null, resourceMan)) {
Resources\PsCommandStrings.Designer.cs (1)
30if (object.Equals(null, resourceMan)) {
Resources\ResourceCommandStrings.Designer.cs (1)
30if (object.Equals(null, resourceMan)) {
Resources\RunCommandStrings.Designer.cs (1)
30if (object.Equals(null, resourceMan)) {
Resources\SharedCommandStrings.Designer.cs (1)
30if (object.Equals(null, resourceMan)) {
Resources\StartCommandStrings.Designer.cs (1)
30if (object.Equals(null, resourceMan)) {
Resources\StopCommandStrings.Designer.cs (1)
30if (object.Equals(null, resourceMan)) {
Resources\WaitCommandStrings.Designer.cs (1)
30if (object.Equals(null, resourceMan)) {
src\Shared\CircularBuffer.cs (1)
62if (Equals(this[index], item))
Aspire.Cli.EndToEnd.Tests (5)
src\Aspire.Cli\Resources\AddCommandStrings.Designer.cs (1)
34if (object.Equals(null, resourceMan))
src\Aspire.Cli\Resources\ConsoleActivityLoggerStrings.Designer.cs (1)
30if (object.Equals(null, resourceMan)) {
src\Aspire.Cli\Resources\RunCommandStrings.Designer.cs (1)
30if (object.Equals(null, resourceMan)) {
src\Aspire.Cli\Resources\SharedCommandStrings.Designer.cs (1)
30if (object.Equals(null, resourceMan)) {
src\Aspire.Cli\Resources\StopCommandStrings.Designer.cs (1)
30if (object.Equals(null, resourceMan)) {
Aspire.Cli.Tests (5)
Commands\LsCommandTests.cs (1)
805Equals(sessionId, activity.GetTagItem(ProfilingTelemetry.Tags.ProfilingSessionId));
DotNet\ProcessInvocationOptionsTests.cs (1)
46Equals(property.GetValue(original), property.GetValue(defaults)),
Git\GitRepositoryTests.cs (1)
149Equals(sessionId, activity.GetTagItem(ProfilingTelemetry.Tags.ProfilingSessionId));
Telemetry\ProfilingTelemetryTests.cs (1)
370return [.. activities.Where(activity => Equals(sessionId, activity.GetTagItem(ProfilingTelemetry.Tags.ProfilingSessionId)))];
tests\Shared\Logging\LogValuesAssert.cs (1)
61return string.Equals(x.Key, y.Key) && object.Equals(x.Value, y.Value);
Aspire.Dashboard (128)
artifacts\obj\Aspire.Dashboard\Debug\net8.0\DashboardService.cs (57)
359return Equals(_unknownFields, other._unknownFields); 553return Equals(_unknownFields, other._unknownFields); 996if (!object.Equals(Parameter, other.Parameter)) return false; 1003return Equals(_unknownFields, other._unknownFields); 1503if (!object.Equals(Parameter, other.Parameter)) return false; 1506return Equals(_unknownFields, other._unknownFields); 1890if (!object.Equals(Result, other.Result)) return false; 1891return Equals(_unknownFields, other._unknownFields); 2195return Equals(_unknownFields, other._unknownFields); 2497return Equals(_unknownFields, other._unknownFields); 2773return Equals(_unknownFields, other._unknownFields); 3103if (!object.Equals(DisplayProperties, other.DisplayProperties)) return false; 3104return Equals(_unknownFields, other._unknownFields); 3423return Equals(_unknownFields, other._unknownFields); 3701return Equals(_unknownFields, other._unknownFields); 4055if (!object.Equals(LastRunAt, other.LastRunAt)) return false; 4056return Equals(_unknownFields, other._unknownFields); 4375return Equals(_unknownFields, other._unknownFields); 4730if (!object.Equals(Value, other.Value)) return false; 4734return Equals(_unknownFields, other._unknownFields); 5406if (!object.Equals(CreatedAt, other.CreatedAt)) return false; 5414if (!object.Equals(StartedAt, other.StartedAt)) return false; 5415if (!object.Equals(StoppedAt, other.StoppedAt)) return false; 5421return Equals(_unknownFields, other._unknownFields); 6028return Equals(_unknownFields, other._unknownFields); 6243return Equals(_unknownFields, other._unknownFields); 6504if (!object.Equals(Delete, other.Delete)) return false; 6505if (!object.Equals(Upsert, other.Upsert)) return false; 6507return Equals(_unknownFields, other._unknownFields); 6757return Equals(_unknownFields, other._unknownFields); 6968return Equals(_unknownFields, other._unknownFields); 7216if (!object.Equals(InitialData, other.InitialData)) return false; 7217if (!object.Equals(Changes, other.Changes)) return false; 7219return Equals(_unknownFields, other._unknownFields); 7518return Equals(_unknownFields, other._unknownFields); 7786return Equals(_unknownFields, other._unknownFields); 8010return Equals(_unknownFields, other._unknownFields); 8340if (!object.Equals(Complete, other.Complete)) return false; 8341if (!object.Equals(MessageBox, other.MessageBox)) return false; 8342if (!object.Equals(InputsDialog, other.InputsDialog)) return false; 8343if (!object.Equals(Notification, other.Notification)) return false; 8344if (!object.Equals(PromptProgress, other.PromptProgress)) return false; 8347return Equals(_unknownFields, other._unknownFields); 8958if (!object.Equals(Complete, other.Complete)) return false; 8959if (!object.Equals(MessageBox, other.MessageBox)) return false; 8960if (!object.Equals(InputsDialog, other.InputsDialog)) return false; 8961if (!object.Equals(Notification, other.Notification)) return false; 8962if (!object.Equals(PromptProgress, other.PromptProgress)) return false; 8964return Equals(_unknownFields, other._unknownFields); 9496return Equals(_unknownFields, other._unknownFields); 9705return Equals(_unknownFields, other._unknownFields); 9988return Equals(_unknownFields, other._unknownFields); 10275return Equals(_unknownFields, other._unknownFields); 10475return Equals(_unknownFields, other._unknownFields); 10902return Equals(_unknownFields, other._unknownFields); 11522return Equals(_unknownFields, other._unknownFields); 11792return 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 (9)
335if (!object.Equals(ArrayValue, other.ArrayValue)) return false; 336if (!object.Equals(KvlistValue, other.KvlistValue)) return false; 339return Equals(_unknownFields, other._unknownFields); 711return Equals(_unknownFields, other._unknownFields); 913return Equals(_unknownFields, other._unknownFields); 1124if (!object.Equals(Value, other.Value)) return false; 1125return Equals(_unknownFields, other._unknownFields); 1419return Equals(_unknownFields, other._unknownFields); 1750return Equals(_unknownFields, other._unknownFields);
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\logs\v1\Logs.cs (7)
228return Equals(_unknownFields, other._unknownFields); 458if (!object.Equals(Resource, other.Resource)) return false; 461return Equals(_unknownFields, other._unknownFields); 747if (!object.Equals(Scope, other.Scope)) return false; 750return Equals(_unknownFields, other._unknownFields); 1216if (!object.Equals(Body, other.Body)) return false; 1223return Equals(_unknownFields, other._unknownFields);
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\metrics\v1\Metrics.cs (25)
349return Equals(_unknownFields, other._unknownFields); 579if (!object.Equals(Resource, other.Resource)) return false; 582return Equals(_unknownFields, other._unknownFields); 868if (!object.Equals(Scope, other.Scope)) return false; 871return Equals(_unknownFields, other._unknownFields); 1362if (!object.Equals(Gauge, other.Gauge)) return false; 1363if (!object.Equals(Sum, other.Sum)) return false; 1364if (!object.Equals(Histogram, other.Histogram)) return false; 1365if (!object.Equals(ExponentialHistogram, other.ExponentialHistogram)) return false; 1366if (!object.Equals(Summary, other.Summary)) return false; 1369return Equals(_unknownFields, other._unknownFields); 1824return Equals(_unknownFields, other._unknownFields); 2054return Equals(_unknownFields, other._unknownFields); 2313return Equals(_unknownFields, other._unknownFields); 2549return Equals(_unknownFields, other._unknownFields); 2774return Equals(_unknownFields, other._unknownFields); 3133return Equals(_unknownFields, other._unknownFields); 3726return Equals(_unknownFields, other._unknownFields); 4434if (!object.Equals(Positive, other.Positive)) return false; 4435if (!object.Equals(Negative, other.Negative)) return false; 4441return Equals(_unknownFields, other._unknownFields); 4972return Equals(_unknownFields, other._unknownFields); 5318return Equals(_unknownFields, other._unknownFields); 5670return Equals(_unknownFields, other._unknownFields); 6049return Equals(_unknownFields, other._unknownFields);
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\resource\v1\Resource.cs (1)
166return Equals(_unknownFields, other._unknownFields);
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\trace\v1\Trace.cs (10)
217return Equals(_unknownFields, other._unknownFields); 447if (!object.Equals(Resource, other.Resource)) return false; 450return Equals(_unknownFields, other._unknownFields); 736if (!object.Equals(Scope, other.Scope)) return false; 739return Equals(_unknownFields, other._unknownFields); 1312if (!object.Equals(Status, other.Status)) return false; 1313return Equals(_unknownFields, other._unknownFields); 1939return Equals(_unknownFields, other._unknownFields); 2310return Equals(_unknownFields, other._unknownFields); 2642return Equals(_unknownFields, other._unknownFields);
Components\Controls\Chart\MetricTable.razor.cs (1)
57if (!Equals(_instrument?.Name, InstrumentViewModel.Instrument?.Name) || _showCount != InstrumentViewModel.ShowCount)
Components\Layout\MainLayout.razor.cs (1)
278if (Equals(_openPageDialog.Id, dialogId) && !_openPageDialog.Result.IsCompleted)
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\ConsoleLogs.Designer.cs (1)
30if (object.Equals(null, resourceMan)) {
Resources\Metrics.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.Deployment.EndToEnd.Tests (1)
src\Aspire.Cli\Resources\ConsoleActivityLoggerStrings.Designer.cs (1)
30if (object.Equals(null, resourceMan)) {
Aspire.Hosting (59)
artifacts\obj\Aspire.Hosting\Debug\net8.0\Dashboard\proto\DashboardService.cs (57)
359return Equals(_unknownFields, other._unknownFields); 553return Equals(_unknownFields, other._unknownFields); 996if (!object.Equals(Parameter, other.Parameter)) return false; 1003return Equals(_unknownFields, other._unknownFields); 1503if (!object.Equals(Parameter, other.Parameter)) return false; 1506return Equals(_unknownFields, other._unknownFields); 1890if (!object.Equals(Result, other.Result)) return false; 1891return Equals(_unknownFields, other._unknownFields); 2195return Equals(_unknownFields, other._unknownFields); 2497return Equals(_unknownFields, other._unknownFields); 2773return Equals(_unknownFields, other._unknownFields); 3103if (!object.Equals(DisplayProperties, other.DisplayProperties)) return false; 3104return Equals(_unknownFields, other._unknownFields); 3423return Equals(_unknownFields, other._unknownFields); 3701return Equals(_unknownFields, other._unknownFields); 4055if (!object.Equals(LastRunAt, other.LastRunAt)) return false; 4056return Equals(_unknownFields, other._unknownFields); 4375return Equals(_unknownFields, other._unknownFields); 4730if (!object.Equals(Value, other.Value)) return false; 4734return Equals(_unknownFields, other._unknownFields); 5406if (!object.Equals(CreatedAt, other.CreatedAt)) return false; 5414if (!object.Equals(StartedAt, other.StartedAt)) return false; 5415if (!object.Equals(StoppedAt, other.StoppedAt)) return false; 5421return Equals(_unknownFields, other._unknownFields); 6028return Equals(_unknownFields, other._unknownFields); 6243return Equals(_unknownFields, other._unknownFields); 6504if (!object.Equals(Delete, other.Delete)) return false; 6505if (!object.Equals(Upsert, other.Upsert)) return false; 6507return Equals(_unknownFields, other._unknownFields); 6757return Equals(_unknownFields, other._unknownFields); 6968return Equals(_unknownFields, other._unknownFields); 7216if (!object.Equals(InitialData, other.InitialData)) return false; 7217if (!object.Equals(Changes, other.Changes)) return false; 7219return Equals(_unknownFields, other._unknownFields); 7518return Equals(_unknownFields, other._unknownFields); 7786return Equals(_unknownFields, other._unknownFields); 8010return Equals(_unknownFields, other._unknownFields); 8340if (!object.Equals(Complete, other.Complete)) return false; 8341if (!object.Equals(MessageBox, other.MessageBox)) return false; 8342if (!object.Equals(InputsDialog, other.InputsDialog)) return false; 8343if (!object.Equals(Notification, other.Notification)) return false; 8344if (!object.Equals(PromptProgress, other.PromptProgress)) return false; 8347return Equals(_unknownFields, other._unknownFields); 8958if (!object.Equals(Complete, other.Complete)) return false; 8959if (!object.Equals(MessageBox, other.MessageBox)) return false; 8960if (!object.Equals(InputsDialog, other.InputsDialog)) return false; 8961if (!object.Equals(Notification, other.Notification)) return false; 8962if (!object.Equals(PromptProgress, other.PromptProgress)) return false; 8964return Equals(_unknownFields, other._unknownFields); 9496return Equals(_unknownFields, other._unknownFields); 9705return Equals(_unknownFields, other._unknownFields); 9988return Equals(_unknownFields, other._unknownFields); 10275return Equals(_unknownFields, other._unknownFields); 10475return Equals(_unknownFields, other._unknownFields); 10902return Equals(_unknownFields, other._unknownFields); 11522return Equals(_unknownFields, other._unknownFields); 11792return Equals(_unknownFields, other._unknownFields);
src\Shared\CircularBuffer.cs (1)
62if (Equals(this[index], item))
src\Shared\CustomResourceSnapshotExtensions.cs (1)
19if (Equals(property.Value, value) &&
Aspire.Hosting.Analyzers (1)
Infrastructure\BoundedCacheWithFactory.cs (1)
46if (Equals(cachedEntry.Key, key))
Aspire.Hosting.Azure (1)
src\Shared\CustomResourceSnapshotExtensions.cs (1)
19if (Equals(property.Value, value) &&
Aspire.Hosting.Browsers (1)
src\Shared\CustomResourceSnapshotExtensions.cs (1)
19if (Equals(property.Value, value) &&
Aspire.Hosting.Browsers.Tests (11)
BrowserLogsBuilderExtensionsTests.cs (10)
71Assert.Contains(snapshot.Properties, property => property.Name == CustomResourceKnownProperties.Source && Equals(property.Value, "web")); 72Assert.Contains(snapshot.Properties, property => property.Name == BrowserLogsBuilderExtensions.BrowserPropertyName && Equals(property.Value, "chrome")); 74Assert.Contains(snapshot.Properties, property => property.Name == BrowserLogsBuilderExtensions.ActiveSessionCountPropertyName && Equals(property.Value, 0)); 75Assert.Contains(snapshot.Properties, property => property.Name == BrowserLogsBuilderExtensions.ActiveSessionsPropertyName && Equals(property.Value, "None")); 76Assert.Contains(snapshot.Properties, property => property.Name == BrowserLogsBuilderExtensions.BrowserSessionsPropertyName && Equals(property.Value, "[]")); 77Assert.Contains(snapshot.Properties, property => property.Name == BrowserLogsBuilderExtensions.TotalSessionsLaunchedPropertyName && Equals(property.Value, 0)); 229Assert.Contains(snapshot.Properties, property => property.Name == BrowserLogsBuilderExtensions.BrowserPropertyName && Equals(property.Value, "chrome")); 230Assert.Contains(snapshot.Properties, property => property.Name == BrowserLogsBuilderExtensions.ProfilePropertyName && Equals(property.Value, "Profile 1")); 355Assert.Contains(snapshot.Properties, property => property.Name == BrowserLogsBuilderExtensions.UserDataModePropertyName && Equals(property.Value, nameof(BrowserUserDataMode.Shared))); 1746snapshot.Properties.Any(property => property.Name == name && Equals(property.Value, expectedValue));
src\Shared\CustomResourceSnapshotExtensions.cs (1)
19if (Equals(property.Value, value) &&
Aspire.Hosting.Integration.Analyzers (1)
src\Aspire.Hosting.Analyzers\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 (4)
Backchannel\BackchannelContractTests.cs (1)
405return Equals(expected, actual);
ResourceNotificationTests.cs (2)
1754.Single(index => Equals(values.GetValue(index), currentValue)); 1759if (Equals(currentValue, value))
Utils\StringComparersTests.cs (1)
95if (Equals(c, comparer))
Aspire.Hosting.TestUtilities (1)
tests\Shared\Logging\LogValuesAssert.cs (1)
61return string.Equals(x.Key, y.Key) && object.Equals(x.Value, y.Value);
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);
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 (30)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\DocumentationCommentXmlNames.cs (1)
69return object.Equals(left, right);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
310if (Equals(self.KeyComparer, equalityComparer))
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
47if (Equals(KeyComparer, value ?? EqualityComparer<T>.Default))
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
85if (Equals(_loneValue, item))
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\BoundedCacheWithFactory.cs (1)
48if (Equals(cachedEntry.Key, key))
src\roslyn\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\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISymbolExtensions.cs (1)
51Equals(associated.AssociatedSymbol, propertySymbol))
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (1)
202return !Equals(false, typedConstant.Value);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\CollectionExpressionUtilities.cs (1)
169Equals(lastParameter.Type.OriginalDefinition, readonlySpanOfTType))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.cs (1)
47.FirstOrDefault(o => Equals((o as ILocalFunctionOperation)?.Symbol, localFunction));
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFactsExtensions.cs (2)
51if (!Equals(semanticModel.GetTypeInfo(parentBinaryLeft).Type, 57if (!Equals(semanticModel.GetTypeInfo(parentBinaryLeft).ConvertedType,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (2)
418Contract.ThrowIfFalse(Equals(method, _methodSymbolStack[^1])); 434Contract.ThrowIfFalse(Equals(contextualSymbol, _contextualSymbolStack.Peek()));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (3)
1162if (!object.Equals(parameter2.ExplicitDefaultValue, parameter1.ExplicitDefaultValue)) 1167if (object.Equals(parameter1.ExplicitDefaultValue, 0.0)) 1169RoslynDebug.Assert(object.Equals(parameter2.ExplicitDefaultValue, 0.0));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IAssemblySymbolExtensions.cs (1)
66Equals(assembly, toAssembly) ||
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IMethodSymbolExtensions.cs (3)
34Equals(method.AssociatedExtensionImplementation, methodSymbol)) 53Debug.Assert(method.PartialImplementationPart == null && !Equals(method.PartialDefinitionPart, method)); 58Debug.Assert(!Equals(method.PartialImplementationPart, method));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (2)
271return implementation != null && Equals(implementation.ContainingType, classOrStructType); 290return implementation != null && Equals(implementation.ContainingType, classOrStructType);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
763(Equals(iDisposableType, type) ||
src\roslyn\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))
ILCompiler.Compiler (4)
Compiler\DependencyAnalysis\DictionaryLayoutNode.cs (2)
265protected override bool CompareKeyToValue(GenericLookupResult key, GenericLookupResult value) => Equals(key, value); 266protected override bool CompareValueToValue(GenericLookupResult value1, GenericLookupResult value2) => Equals(value1, value2);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\CoffObjectWriter.cs (1)
120bool isPrimary = Equals(comdatName, symbolName);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\UnixObjectWriter.cs (1)
39(comdatName.IsNull || Equals(comdatName, symbolName)))
ILCompiler.DependencyAnalysisFramework (1)
DependencyNodeCore.cs (1)
100&& Equals(Reason, other.Reason);
ILCompiler.MetadataTransform (76)
ILCompiler\Metadata\Transform.Scope.cs (1)
134return Equals(x.Name, y.Name);
Internal\Metadata\NativeFormat\Writer\NativeFormatWriterGen.cs (58)
41if (!Object.Equals(ElementType, other.ElementType)) return false; 128if (!Object.Equals(Type, other.Type)) return false; 714if (!Object.Equals(ElementType, other.ElementType)) return false; 715if (!Object.Equals(Value, other.Value)) return false; 783if (!Object.Equals(Value, other.Value)) return false; 784if (!Object.Equals(Type, other.Type)) return false; 2152if (!Object.Equals(Constructor, other.Constructor)) return false; 2278if (!Object.Equals(Name, other.Name)) return false; 2279if (!Object.Equals(Type, other.Type)) return false; 2371if (!Object.Equals(Name, other.Name)) return false; 2372if (!Object.Equals(Signature, other.Signature)) return false; 2373if (!Object.Equals(DefaultValue, other.DefaultValue)) return false; 2491if (!Object.Equals(Type, other.Type)) return false; 2560if (!Object.Equals(Signature, other.Signature)) return false; 2629if (!Object.Equals(Name, other.Name)) return false; 2719if (!Object.Equals(Parent, other.Parent)) return false; 2720if (!Object.Equals(Name, other.Name)) return false; 2721if (!Object.Equals(Signature, other.Signature)) return false; 2804if (!Object.Equals(Name, other.Name)) return false; 2805if (!Object.Equals(Signature, other.Signature)) return false; 2896if (!Object.Equals(Method, other.Method)) return false; 2972if (!Object.Equals(Method, other.Method)) return false; 3043if (!Object.Equals(ReturnType, other.ReturnType)) return false; 3207if (!Object.Equals(ModifierType, other.ModifierType)) return false; 3208if (!Object.Equals(Type, other.Type)) return false; 3290if (!Object.Equals(Name, other.Name)) return false; 3291if (!Object.Equals(Type, other.Type)) return false; 3292if (!Object.Equals(Value, other.Value)) return false; 3407if (!Object.Equals(ParentScopeOrNamespace, other.ParentScopeOrNamespace)) return false; 3408if (!Object.Equals(Name, other.Name)) return false; 3485if (!Object.Equals(ParentScopeOrNamespace, other.ParentScopeOrNamespace)) return false; 3486if (!Object.Equals(Name, other.Name)) return false; 3560if (!Object.Equals(Name, other.Name)) return false; 3561if (!Object.Equals(DefaultValue, other.DefaultValue)) return false; 3671if (!Object.Equals(Type, other.Type)) return false; 3745if (!Object.Equals(Name, other.Name)) return false; 3746if (!Object.Equals(Signature, other.Signature)) return false; 3748if (!Object.Equals(DefaultValue, other.DefaultValue)) return false; 3870if (!Object.Equals(Type, other.Type)) return false; 3955if (!Object.Equals(Field, other.Field)) return false; 3956if (!Object.Equals(EnclosingType, other.EnclosingType)) return false; 4024if (!Object.Equals(Method, other.Method)) return false; 4025if (!Object.Equals(EnclosingType, other.EnclosingType)) return false; 4092if (!Object.Equals(ElementType, other.ElementType)) return false; 4169if (!Object.Equals(Name, other.Name)) return false; 4176if (!Object.Equals(Culture, other.Culture)) return false; 4177if (!Object.Equals(ModuleName, other.ModuleName)) return false; 4290if (!Object.Equals(Name, other.Name)) return false; 4296if (!Object.Equals(Culture, other.Culture)) return false; 4395if (!Object.Equals(NamespaceDefinition, other.NamespaceDefinition)) return false; 4396if (!Object.Equals(Name, other.Name)) return false; 4397if (!Object.Equals(EnclosingType, other.EnclosingType)) return false; 4501if (!Object.Equals(Scope, other.Scope)) return false; 4502if (!Object.Equals(Name, other.Name)) return false; 4573if (!Object.Equals(GenericType, other.GenericType)) return false; 4650if (!Object.Equals(ParentNamespaceOrType, other.ParentNamespaceOrType)) return false; 4651if (!Object.Equals(TypeName, other.TypeName)) return false; 4721if (!Object.Equals(Signature, other.Signature)) return false;
src\runtime\src\coreclr\tools\Common\Internal\NativeFormat\NativeFormatWriter.cs (17)
599return Equals(_item1, other._item1) && 600Equals(_item2, other._item2) && 601Equals(_item3, other._item3); 735if (!Equals(_elements[i], other._elements[i])) 822return Equals(_item, other._item); 862return Equals(_item, other._item); 964Equals(_containingType, other._containingType))) 974if (!Equals(_args[iArg], other._args[iArg])) 1020if (!Equals(other._signature, _signature)) 1060if (!Equals(other._type, _type)) 1103if (!Equals(other._type, _type)) 1167Equals(_returnType, other._returnType))) 1173if (!Equals(_parameters[i], other._parameters[i])) 1213return _modifier == other._modifier && Equals(_param, other._param); 1291if (_args.Length != other._args.Length || !Equals(_typeDef, other._typeDef)) 1295if (!Equals(_args[iArg], other._args[iArg])) 1357if (!Equals(_arrayElementType, other._arrayElementType) ||
ILCompiler.ReadyToRun (21)
Compiler\RuntimeDeterminedTypeHelper.cs (2)
135&& Equals(methodWithToken1.Token.Module, methodWithToken2.Token.Module) 157Equals(field1.Token.Module, field2.Token.Module);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\CoffObjectWriter.cs (1)
120bool isPrimary = Equals(comdatName, symbolName);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\UnixObjectWriter.cs (1)
39(comdatName.IsNull || Equals(comdatName, symbolName)))
src\runtime\src\coreclr\tools\Common\Internal\NativeFormat\NativeFormatWriter.cs (17)
599return Equals(_item1, other._item1) && 600Equals(_item2, other._item2) && 601Equals(_item3, other._item3); 735if (!Equals(_elements[i], other._elements[i])) 822return Equals(_item, other._item); 862return Equals(_item, other._item); 964Equals(_containingType, other._containingType))) 974if (!Equals(_args[iArg], other._args[iArg])) 1020if (!Equals(other._signature, _signature)) 1060if (!Equals(other._type, _type)) 1103if (!Equals(other._type, _type)) 1167Equals(_returnType, other._returnType))) 1173if (!Equals(_parameters[i], other._parameters[i])) 1213return _modifier == other._modifier && Equals(_param, other._param); 1291if (_args.Length != other._args.Length || !Equals(_typeDef, other._typeDef)) 1295if (!Equals(_args[iArg], other._args[iArg])) 1357if (!Equals(_arrayElementType, other._arrayElementType) ||
Microsoft.Analyzers.Local (1)
JsonValue.cs (1)
542&& Equals(a._reference, b._reference);
Microsoft.AspNetCore.Antiforgery (1)
Internal\DefaultAntiforgeryTokenGenerator.cs (1)
136if (!object.Equals(cookieToken.SecurityToken, requestToken.SecurityToken))
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\aspnetcore\src\Shared\RoslynUtils\BoundedCacheWithFactory.cs (1)
49if (Equals(cachedEntry.Key, key))
Microsoft.AspNetCore.Components (7)
RenderTree\RenderTreeDiffBuilder.cs (2)
110if (Equals(oldKey, newKey)) 806var valueChanged = !Equals(oldFrame.AttributeValueField, newFrame.AttributeValueField);
Routing\RouteKey.cs (1)
26if (!Equals(AppAssembly, other.AppAssembly))
Sections\SectionContent.cs (1)
71if (!object.Equals(identifier, _registeredIdentifier) || IsDefaultContent != _registeredIsDefaultContent)
Sections\SectionOutlet.cs (1)
65if (!object.Equals(identifier, _subscribedIdentifier))
src\aspnetcore\src\Http\Routing\src\Patterns\RoutePatternFactory.cs (2)
583if (parameter.Default != null && !Equals(newDefault, parameter.Default)) 626if (Equals(parameter.Default, @default)
Microsoft.AspNetCore.Components.AI.SourceGenerators (2)
ToolBlockCandidate.cs (2)
186&& Equals(Candidate, other.Candidate) 221&& Equals(Location, other.Location)
Microsoft.AspNetCore.Components.Endpoints (2)
TempData\TempData.cs (2)
144return ContainsKey(item.Key) && Equals(Peek(item.Key), item.Value); 154if (ContainsKey(item.Key) && Equals(Peek(item.Key), item.Value))
Microsoft.AspNetCore.Components.Server (1)
src\aspnetcore\src\Components\Shared\src\WebRootComponentParameters.cs (1)
58else if (!Equals(value, otherValue))
Microsoft.AspNetCore.Components.WebAssembly (1)
src\aspnetcore\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.Http (1)
Internal\ItemsDictionary.cs (1)
122if (_items.TryGetValue(item.Key, out var value) && Equals(item.Value, value))
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
src\aspnetcore\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.JsonPatch.SystemTextJson (1)
Operations\Operation.cs (1)
32=> ShouldSerializeValue == other.ShouldSerializeValue && Equals(Value, other.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.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\aspnetcore\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\aspnetcore\src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
161return ((IDictionary<string, StringValues>)this).TryGetValue(item.Key, out var value) && Equals(value, item.Value);
Microsoft.Build (10)
BackEnd\BuildManager\BuildManager.cs (4)
1904if (!Equals(CultureInfo.CurrentCulture, _buildParameters!.Culture)) 1909if (!Equals(CultureInfo.CurrentUICulture, _buildParameters.UICulture)) 1925if (!Equals(CultureInfo.CurrentCulture, oldCulture)) 1930if (!Equals(CultureInfo.CurrentUICulture, oldUICulture))
Construction\ProjectRootElement.cs (1)
1553if (HasUnsavedChanges || !Equals(saveEncoding, Encoding))
Evaluation\ItemDataCollectionValue.cs (2)
91else if (object.Equals(_value, item)) 107else if (object.Equals(_value, oldItem))
src\5057ed6cf5d6323b\ImmutableSegmentedHashSet`1.cs (1)
310if (Equals(self.KeyComparer, equalityComparer))
src\5057ed6cf5d6323b\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
47if (Equals(KeyComparer, value ?? EqualityComparer<T>.Default))
src\8b3a4ac2431f87ea\SpecializedCollections.Singleton.Collection`1.cs (1)
85if (Equals(_loneValue, item))
Microsoft.Build.Framework (2)
EncodingUtilities.cs (1)
108if (Equals(encoding1, encoding2))
Utilities\CollectionHelpers.cs (1)
80if (!Equals(aKvp.Value, bValue))
Microsoft.Build.Utilities.Core (2)
ToolLocationHelper.cs (2)
1347bool isSDKMatch = string.Equals(sdk.TargetPlatformIdentifier, sdkIdentifier, StringComparison.OrdinalIgnoreCase) && Equals(sdk.TargetPlatformVersion, sdkVersion); 1598&& Equals(platform.TargetPlatformVersion, targetPlatformVersion));
Microsoft.CodeAnalysis (45)
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)
204return object.Equals(left, right); 209return !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)
69return 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\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
310if (Equals(self.KeyComparer, equalityComparer))
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
47if (Equals(KeyComparer, value ?? EqualityComparer<T>.Default))
src\roslyn\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\SyntaxAnnotation.cs (1)
53Equals(left, right);
Syntax\SyntaxList`1.cs (2)
511if (object.Equals(child, node)) 558if (object.Equals(this[i], node))
Microsoft.CodeAnalysis.Analyzers (34)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\DocumentationCommentXmlNames.cs (1)
69return object.Equals(left, right);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
310if (Equals(self.KeyComparer, equalityComparer))
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
47if (Equals(KeyComparer, value ?? EqualityComparer<T>.Default))
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
85if (Equals(_loneValue, item))
src\roslyn\src\Dependencies\Contracts\ReferenceEqualityComparer.cs (1)
39/// It is not necessarily equivalent to calling <see cref="object.Equals(object?, object?)"/>.
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\BoundedCacheWithFactory.cs (1)
48if (Equals(cachedEntry.Key, key))
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (3)
74if (!Equals(model.GetDeclaredSymbol(declSyntax, context.CancellationToken), symbol)) 182while (declSyntax.Parent != null && Equals(model.GetDeclaredSymbol(declSyntax.Parent, context.CancellationToken), declaredSymbol)) 247if (declaredSymbol != null && !Equals(symbol, declaredSymbol) && declaredSymbol.Kind != SymbolKind.Parameter)
src\roslyn\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\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISymbolExtensions.cs (1)
51Equals(associated.AssociatedSymbol, propertySymbol))
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (1)
202return !Equals(false, typedConstant.Value);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\CollectionExpressionUtilities.cs (1)
169Equals(lastParameter.Type.OriginalDefinition, readonlySpanOfTType))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.cs (1)
47.FirstOrDefault(o => Equals((o as ILocalFunctionOperation)?.Symbol, localFunction));
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFactsExtensions.cs (2)
51if (!Equals(semanticModel.GetTypeInfo(parentBinaryLeft).Type, 57if (!Equals(semanticModel.GetTypeInfo(parentBinaryLeft).ConvertedType,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (2)
418Contract.ThrowIfFalse(Equals(method, _methodSymbolStack[^1])); 434Contract.ThrowIfFalse(Equals(contextualSymbol, _contextualSymbolStack.Peek()));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (3)
1162if (!object.Equals(parameter2.ExplicitDefaultValue, parameter1.ExplicitDefaultValue)) 1167if (object.Equals(parameter1.ExplicitDefaultValue, 0.0)) 1169RoslynDebug.Assert(object.Equals(parameter2.ExplicitDefaultValue, 0.0));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IAssemblySymbolExtensions.cs (1)
66Equals(assembly, toAssembly) ||
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IMethodSymbolExtensions.cs (3)
34Equals(method.AssociatedExtensionImplementation, methodSymbol)) 53Debug.Assert(method.PartialImplementationPart == null && !Equals(method.PartialDefinitionPart, method)); 58Debug.Assert(!Equals(method.PartialImplementationPart, method));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (2)
271return implementation != null && Equals(implementation.ContainingType, classOrStructType); 290return implementation != null && Equals(implementation.ContainingType, classOrStructType);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
763(Equals(iDisposableType, type) ||
src\roslyn\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 (41)
src\683181b2796de991\ParameterValidationAnalysis.ParameterValidationDataFlowOperationVisitor.cs (2)
68Equals(parameter.ContainingSymbol, GetBottomOfStackOwningSymbol()); 374HandleHazardousOperation(syntaxNode, notValidatedLocations.Where(l => Equals(l.Symbol, parameter)));
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\DocumentationCommentXmlNames.cs (1)
69return object.Equals(left, right);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
310if (Equals(self.KeyComparer, equalityComparer))
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
47if (Equals(KeyComparer, value ?? EqualityComparer<T>.Default))
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
85if (Equals(_loneValue, item))
src\roslyn\src\Dependencies\Contracts\ReferenceEqualityComparer.cs (1)
39/// It is not necessarily equivalent to calling <see cref="object.Equals(object?, object?)"/>.
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\BoundedCacheWithFactory.cs (1)
48if (Equals(cachedEntry.Key, key))
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (3)
74if (!Equals(model.GetDeclaredSymbol(declSyntax, context.CancellationToken), symbol)) 182while (declSyntax.Parent != null && Equals(model.GetDeclaredSymbol(declSyntax.Parent, context.CancellationToken), declaredSymbol)) 247if (declaredSymbol != null && !Equals(symbol, declaredSymbol) && declaredSymbol.Kind != SymbolKind.Parameter)
src\roslyn\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\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISymbolExtensions.cs (1)
51Equals(associated.AssociatedSymbol, propertySymbol))
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (1)
202return !Equals(false, typedConstant.Value);
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AbstractDataFlowAnalysisContext.cs (1)
50Debug.Assert(Equals(owningSymbol.OriginalDefinition, owningSymbol));
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AbstractLocationDataFlowOperationVisitor.cs (1)
99Debug.Assert(Equals(analysisEntity.Symbol, parameter));
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AnalysisEntity.cs (1)
121Debug.Assert(Equals(instanceLocation.Locations.Single().Symbol, typeSymbol));
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AnalysisEntityDataFlowOperationVisitor.cs (1)
307Debug.Assert(Equals(analysisEntity.Symbol, parameter));
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (1)
984if (Equals(method.ContainingType, ContractNamedType) &&
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\CollectionExpressionUtilities.cs (1)
169Equals(lastParameter.Type.OriginalDefinition, readonlySpanOfTType))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.cs (1)
47.FirstOrDefault(o => Equals((o as ILocalFunctionOperation)?.Symbol, localFunction));
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFactsExtensions.cs (2)
51if (!Equals(semanticModel.GetTypeInfo(parentBinaryLeft).Type, 57if (!Equals(semanticModel.GetTypeInfo(parentBinaryLeft).ConvertedType,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (2)
418Contract.ThrowIfFalse(Equals(method, _methodSymbolStack[^1])); 434Contract.ThrowIfFalse(Equals(contextualSymbol, _contextualSymbolStack.Peek()));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (3)
1162if (!object.Equals(parameter2.ExplicitDefaultValue, parameter1.ExplicitDefaultValue)) 1167if (object.Equals(parameter1.ExplicitDefaultValue, 0.0)) 1169RoslynDebug.Assert(object.Equals(parameter2.ExplicitDefaultValue, 0.0));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IAssemblySymbolExtensions.cs (1)
66Equals(assembly, toAssembly) ||
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IMethodSymbolExtensions.cs (3)
34Equals(method.AssociatedExtensionImplementation, methodSymbol)) 53Debug.Assert(method.PartialImplementationPart == null && !Equals(method.PartialDefinitionPart, method)); 58Debug.Assert(!Equals(method.PartialImplementationPart, method));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (2)
271return implementation != null && Equals(implementation.ContainingType, classOrStructType); 290return implementation != null && Equals(implementation.ContainingType, classOrStructType);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
763(Equals(iDisposableType, type) ||
src\roslyn\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 (39)
src\roslyn\src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.cs (1)
195if (Equals(_objectGetHashCodeMethod, current))
src\roslyn\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\roslyn\src\Analyzers\Core\Analyzers\PopulateSwitch\AbstractPopulateSwitchDiagnosticAnalyzer.cs (1)
131=> constantValue.HasValue && Equals(constantValue.Value, value);
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
109=> Equals(x?.OriginalDefinition, y?.OriginalDefinition);
src\roslyn\src\Analyzers\Core\Analyzers\UseAutoProperty\AccessedFields.cs (1)
33=> Equals(TrivialField, field) || NonTrivialFields.Contains(field);
src\roslyn\src\Analyzers\Core\Analyzers\UseCoalesceExpression\AbstractUseCoalesceExpressionForIfNullCheckDiagnosticAnalyzer.cs (1)
203if (Equals(localSymbol, symbol))
src\roslyn\src\Analyzers\Core\Analyzers\UseCollectionInitializer\UpdateExpressionState.cs (3)
206Equals(parameter1.Type, propertyParameter.Type) && 207Equals(parameter2.Type, propertyType)) is true) 316if (arity != 0 || !Equals(name, methodName))
src\roslyn\src\Analyzers\Core\Analyzers\UseThrowExpression\AbstractUseThrowExpressionDiagnosticAnalyzer.cs (1)
194if (!Equals(localOrParameter, assignmentValue))
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\DocumentationCommentXmlNames.cs (1)
69return object.Equals(left, right);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
310if (Equals(self.KeyComparer, equalityComparer))
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
47if (Equals(KeyComparer, value ?? EqualityComparer<T>.Default))
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
85if (Equals(_loneValue, item))
src\roslyn\src\Dependencies\Contracts\ReferenceEqualityComparer.cs (1)
39/// It is not necessarily equivalent to calling <see cref="object.Equals(object?, object?)"/>.
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\CollectionExpressionUtilities.cs (1)
169Equals(lastParameter.Type.OriginalDefinition, readonlySpanOfTType))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.cs (1)
47.FirstOrDefault(o => Equals((o as ILocalFunctionOperation)?.Symbol, localFunction));
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFactsExtensions.cs (2)
51if (!Equals(semanticModel.GetTypeInfo(parentBinaryLeft).Type, 57if (!Equals(semanticModel.GetTypeInfo(parentBinaryLeft).ConvertedType,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (2)
418Contract.ThrowIfFalse(Equals(method, _methodSymbolStack[^1])); 434Contract.ThrowIfFalse(Equals(contextualSymbol, _contextualSymbolStack.Peek()));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (3)
1162if (!object.Equals(parameter2.ExplicitDefaultValue, parameter1.ExplicitDefaultValue)) 1167if (object.Equals(parameter1.ExplicitDefaultValue, 0.0)) 1169RoslynDebug.Assert(object.Equals(parameter2.ExplicitDefaultValue, 0.0));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IAssemblySymbolExtensions.cs (1)
66Equals(assembly, toAssembly) ||
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IMethodSymbolExtensions.cs (3)
34Equals(method.AssociatedExtensionImplementation, methodSymbol)) 53Debug.Assert(method.PartialImplementationPart == null && !Equals(method.PartialDefinitionPart, method)); 58Debug.Assert(!Equals(method.PartialImplementationPart, method));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (2)
271return implementation != null && Equals(implementation.ContainingType, classOrStructType); 290return implementation != null && Equals(implementation.ContainingType, classOrStructType);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
763(Equals(iDisposableType, type) ||
src\roslyn\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 (5)
src\939a5660f39ce290\AbstractUseConditionalExpressionForAssignmentCodeFixProvider.cs (3)
183if (local != null && !Equals(local, falseLocal.Local)) 230if (!Equals(variable, local)) 257Equals(variable, localReference.Local))
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.cs (1)
223Equals(parameter.Type, cancellationTokenType))
src\roslyn\src\Analyzers\Core\CodeFixes\MakeMethodSynchronous\AbstractMakeMethodSynchronousCodeFixProvider.cs (1)
140var referencedSymbol = references.FirstOrDefault(r => Equals(r.Definition, methodSymbol));
Microsoft.CodeAnalysis.CSharp (22)
Binder\Binder.ValueChecks.cs (1)
2157if (!object.Equals(useSiteInfo.DiagnosticInfo, propertySymbol.GetUseSiteInfo().DiagnosticInfo))
Binder\Semantics\AccessCheck.cs (1)
678if (Equals(fromAssembly, toAssembly))
Binder\Semantics\Conversions\Conversion.cs (1)
1246return this.Kind == other.Kind && Equals(this._uncommonData, other._uncommonData);
BoundTree\BoundDagTemp.cs (1)
28Equals(other.Source, this.Source))
Compilation\AwaitExpressionInfo.cs (4)
57return object.Equals(this.GetAwaiterMethod, other.GetAwaiterMethod) 58&& object.Equals(this.IsCompletedProperty, other.IsCompletedProperty) 59&& object.Equals(this.GetResultMethod, other.GetResultMethod) 60&& object.Equals(this.RuntimeAwaitMethod, other.RuntimeAwaitMethod)
Compilation\ForEachStatementInfo.cs (5)
106&& object.Equals(this.GetEnumeratorMethod, other.GetEnumeratorMethod) 107&& object.Equals(this.MoveNextMethod, other.MoveNextMethod) 109&& object.Equals(this.CurrentProperty, other.CurrentProperty) 110&& object.Equals(this.DisposeMethod, other.DisposeMethod) 112&& object.Equals(this.ElementType, other.ElementType)
DocumentationComments\PEDocumentationCommentUtils.cs (1)
39if (object.Equals(lazyDocComment.Item1, preferredCulture))
Parser\DirectiveParser.cs (2)
890return object.Equals(Evaluate(((BinaryExpressionSyntax)expr).Left), Evaluate(((BinaryExpressionSyntax)expr).Right)); 892return !object.Equals(Evaluate(((BinaryExpressionSyntax)expr).Left), Evaluate(((BinaryExpressionSyntax)expr).Right));
Symbols\AliasSymbol.cs (1)
261Equals(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\UnboundGenericType.cs (1)
113return (object?)other != null && string.Equals(other._name, _name, StringComparison.Ordinal) && object.Equals(other._errorInfo, _errorInfo);
Utilities\ValueSetFactory.IEqualableValueTC.cs (1)
13/// using <see cref="System.Object.Equals(object?, object?)"/>.
Microsoft.CodeAnalysis.CSharp.CodeStyle (37)
src\roslyn\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\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (2)
242if (!Equals(argumentType.OriginalDefinition, ienumerableOfTType) && 243!argumentType.AllInterfaces.Any(i => Equals(i.OriginalDefinition, ienumerableOfTType)))
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForNewDiagnosticAnalyzer.cs (1)
61if (!Equals(compilation.IEnumerableOfTType(), constructorParameter.Type.OriginalDefinition))
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (1)
240Equals(type.OriginalDefinition, compilation.ListOfTType()) &&
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionInitializer\CSharpUseCollectionInitializerAnalyzer.cs (4)
281.FirstOrDefault(i => Equals(i.OriginalDefinition, ienumerableOfTType)); 291if (!addMethods.Any(m => m.Parameters is [{ Type: var parameterType }] && Equals(parameterType, elementType))) 305t => Equals(collectionType, t.OriginalDefinition) || 306Equals(blockingCollectionType, t.OriginalDefinition)))
src\roslyn\src\Analyzers\CSharp\Analyzers\UseLabeledJumpStatements\CSharpUseLabeledJumpStatementsHelpers_FlagVariable.cs (1)
65!Equals(semanticModel.GetSymbolInfo(name, cancellationToken).Symbol, flag))
src\roslyn\src\Analyzers\CSharp\Analyzers\UseLabeledJumpStatements\CSharpUseLabeledJumpStatementsHelpers.cs (1)
148!Equals(semanticModel.GetSymbolInfo(candidateLabel, cancellationToken).Symbol, label))
src\roslyn\src\Analyzers\CSharp\Analyzers\UsePatternCombinators\AnalyzedPattern.cs (1)
139({ IsImplicit: true }, { IsImplicit: true }) when !Equals(leftTarget.Type, rightTarget.Type) => null,
src\roslyn\src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (2)
575if (symbols.Any(s => !Equals(s, parameter) && !Equals(s, member)))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (17)
131if (Equals(enumType?.EnumUnderlyingType, castedType)) 166if (Equals(enumType?.EnumUnderlyingType, castedType)) 169if (Equals(enumType, parentCastType.RemoveNullableIfPresent())) 274if (!Equals(originalDelegateCreationOperation.Type, rewrittenDelegateCreationOperation.Type)) 432if (!Equals(originalParentConversion.MethodSymbol, rewrittenConversion.MethodSymbol)) 1214if (castSideType.IsNullable(out var underlyingType) && Equals(underlyingType, castedExpressionType)) 1217if (Equals(castSideType, otherSideType) || Equals(underlyingType, otherSideType)) 1391!Equals(oldSymbolInfo, newSymbolInfo)) 1422if (!Equals(oldConversion.MethodSymbol, newConversion.MethodSymbol)) 1485if (Equals(originalMemberSymbol, rewrittenMemberSymbol)) 1514Equals(implementationMember, rewrittenMemberSymbol) && 1524if (Equals(originalMemberSymbol, current)) 1573return Equals(originalMethodSymbol.ReturnType, rewrittenMethodSymbol.ReturnType); 1625if (!Equals(originalMemberType, rewrittenMemberType)) 1648var argument = invocationOperation.Arguments.FirstOrDefault(a => Equals(originalParameter, a.Parameter)); 1660!Equals(originalParameter.ExplicitDefaultValue, rewrittenParameter.ExplicitDefaultValue) &&
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (5)
269return Equals(originalParamType, replacedParamType); 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 (11)
src\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.Rewriter.cs (1)
195!Equals(typeInfo.ConvertedType, typeInfo.Type))
src\roslyn\src\Analyzers\CSharp\CodeFixes\FixReturnType\CSharpFixReturnTypeCodeFixProvider.cs (2)
105Equals(previousReturnType, compilation.TaskType())) 109else if (Equals(previousReturnType, compilation.ValueTaskType()))
src\roslyn\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\roslyn\src\Analyzers\CSharp\CodeFixes\UseLabeledJumpStatements\CSharpUseLabeledJumpStatementsCodeFixProvider.cs (1)
134Equals(semanticModel.GetSymbolInfo(identifier, cancellationToken).Symbol, label))
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseSystemThreadingLock\CSharpUseSystemThreadingLockCodeFixProvider.cs (1)
119.Where(r => Equals(r.Definition, field))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.cs (1)
125if (alias != null && Equals(alias.Target, type))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\WithElementSyntaxExtensions.cs (2)
45if (!Equals(ilistOfTType, collectionExpressionType.OriginalDefinition) && 46!Equals(icollectionOfTType, collectionExpressionType.OriginalDefinition))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpMoveDeclarationNearReferenceService.cs (1)
63return Equals(localSymbol.Type, rightType.Type);
Microsoft.CodeAnalysis.CSharp.Features (42)
ChangeSignature\CSharpChangeSignatureService.cs (1)
893if (Equals(convertedType, symbol.ContainingType))
CodeRefactorings\ConvertLocalFunctionToMethod\CSharpConvertLocalFunctionToMethodCodeRefactoringProvider.cs (1)
146if (!Equals(symbol?.OriginalDefinition, declaredSymbol))
Completion\CompletionProviders\DeclarationName\DeclarationNameRecommender.cs (4)
165Equals(t.OriginalDefinition, compilation.IAsyncEnumerableOfTType()))?.TypeArguments[0]; 185if (Equals(originalDefinition, taskOfTType) || 186Equals(originalDefinition, valueTaskType) || 187Equals(originalDefinition, lazyOfTType) ||
Completion\KeywordRecommenders\ThisKeywordRecommender.cs (1)
61return context.InferredTypes.Any(static (t, outerType) => Equals(t, outerType), outerType);
ConvertLinq\ConvertForEachToLinqQuery\CSharpConvertForEachToLinqQueryProvider.cs (2)
285.Where(statement => Equals(semanticModel.GetEnclosingSymbol( 350=> Equals(typeSymbol?.OriginalDefinition, semanticModel.Compilation.ListOfTType());
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))
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (3)
288if (flowControlInformation.TryGetBreakFlowValue(out var breakValue) && Equals(breakValue, value)) 290else if (flowControlInformation.TryGetContinueFlowValue(out var continueValue) && Equals(continueValue, value)) 292else if (flowControlInformation.TryGetReturnFlowValue(out var returnValue) && Equals(returnValue, value))
ImplementInterface\CSharpImplementExplicitlyCodeRefactoringProvider.cs (1)
173return Equals(parameterSymbol1.ExplicitDefaultValue, parameterSymbol2.ExplicitDefaultValue);
SignatureHelp\InvocationExpressionSignatureHelpProvider.cs (1)
97methods = methods.SelectAsArray(m => Equals(currentSymbol.OriginalDefinition, m.OriginalDefinition) ? currentSymbol : m);
SignatureHelp\InvocationExpressionSignatureHelpProviderBase_MethodGroup.cs (2)
66semanticModel.LookupNamespacesAndTypes(throughExpression.SpanStart, name: throughSymbol?.Name).Any(static (t, throughType) => Equals(t.GetSymbolType(), throughType), throughType)); 92if (!Equals(m, method))
src\roslyn\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\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (2)
242if (!Equals(argumentType.OriginalDefinition, ienumerableOfTType) && 243!argumentType.AllInterfaces.Any(i => Equals(i.OriginalDefinition, ienumerableOfTType)))
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForNewDiagnosticAnalyzer.cs (1)
61if (!Equals(compilation.IEnumerableOfTType(), constructorParameter.Type.OriginalDefinition))
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (1)
240Equals(type.OriginalDefinition, compilation.ListOfTType()) &&
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionInitializer\CSharpUseCollectionInitializerAnalyzer.cs (4)
281.FirstOrDefault(i => Equals(i.OriginalDefinition, ienumerableOfTType)); 291if (!addMethods.Any(m => m.Parameters is [{ Type: var parameterType }] && Equals(parameterType, elementType))) 305t => Equals(collectionType, t.OriginalDefinition) || 306Equals(blockingCollectionType, t.OriginalDefinition)))
src\roslyn\src\Analyzers\CSharp\Analyzers\UseLabeledJumpStatements\CSharpUseLabeledJumpStatementsHelpers_FlagVariable.cs (1)
65!Equals(semanticModel.GetSymbolInfo(name, cancellationToken).Symbol, flag))
src\roslyn\src\Analyzers\CSharp\Analyzers\UseLabeledJumpStatements\CSharpUseLabeledJumpStatementsHelpers.cs (1)
148!Equals(semanticModel.GetSymbolInfo(candidateLabel, cancellationToken).Symbol, label))
src\roslyn\src\Analyzers\CSharp\Analyzers\UsePatternCombinators\AnalyzedPattern.cs (1)
139({ IsImplicit: true }, { IsImplicit: true }) when !Equals(leftTarget.Type, rightTarget.Type) => null,
src\roslyn\src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (2)
575if (symbols.Any(s => !Equals(s, parameter) && !Equals(s, member)))
src\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.Rewriter.cs (1)
195!Equals(typeInfo.ConvertedType, typeInfo.Type))
src\roslyn\src\Analyzers\CSharp\CodeFixes\FixReturnType\CSharpFixReturnTypeCodeFixProvider.cs (2)
105Equals(previousReturnType, compilation.TaskType())) 109else if (Equals(previousReturnType, compilation.ValueTaskType()))
src\roslyn\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\roslyn\src\Analyzers\CSharp\CodeFixes\UseLabeledJumpStatements\CSharpUseLabeledJumpStatementsCodeFixProvider.cs (1)
134Equals(semanticModel.GetSymbolInfo(identifier, cancellationToken).Symbol, label))
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseSystemThreadingLock\CSharpUseSystemThreadingLockCodeFixProvider.cs (1)
119.Where(r => Equals(r.Definition, field))
Microsoft.CodeAnalysis.CSharp.Workspaces (35)
Recommendations\CSharpRecommendationServiceRunner.cs (2)
354return symbols.WhereAsArray(static (s, containingType) => !Equals(s.OriginalDefinition, containingType), containingType); 457!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 (3)
685if (!Equals(_semanticModel.GetEnclosingNamedType(originalSimpleName.SpanStart, _cancellationToken), symbol.ContainingType)) 807if (Equals(symbol, symbol.OriginalDefinition)) 868object.Equals(((AssignmentExpressionSyntax)currentNode).Left, identifierName);
Simplification\Reducers\CSharpMiscellaneousReducer.cs (1)
57Equals(oldSymbol.Type, newSymbol.Type))
Simplification\Simplifiers\NameSimplifier.cs (1)
568return object.Equals(namespaceDeclaration.Name, node);
Simplification\Simplifiers\QualifiedCrefSimplifier.cs (1)
91if (Equals(newSymbol, oldSymbol))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (17)
131if (Equals(enumType?.EnumUnderlyingType, castedType)) 166if (Equals(enumType?.EnumUnderlyingType, castedType)) 169if (Equals(enumType, parentCastType.RemoveNullableIfPresent())) 274if (!Equals(originalDelegateCreationOperation.Type, rewrittenDelegateCreationOperation.Type)) 432if (!Equals(originalParentConversion.MethodSymbol, rewrittenConversion.MethodSymbol)) 1214if (castSideType.IsNullable(out var underlyingType) && Equals(underlyingType, castedExpressionType)) 1217if (Equals(castSideType, otherSideType) || Equals(underlyingType, otherSideType)) 1391!Equals(oldSymbolInfo, newSymbolInfo)) 1422if (!Equals(oldConversion.MethodSymbol, newConversion.MethodSymbol)) 1485if (Equals(originalMemberSymbol, rewrittenMemberSymbol)) 1514Equals(implementationMember, rewrittenMemberSymbol) && 1524if (Equals(originalMemberSymbol, current)) 1573return Equals(originalMethodSymbol.ReturnType, rewrittenMethodSymbol.ReturnType); 1625if (!Equals(originalMemberType, rewrittenMemberType)) 1648var argument = invocationOperation.Arguments.FirstOrDefault(a => Equals(originalParameter, a.Parameter)); 1660!Equals(originalParameter.ExplicitDefaultValue, rewrittenParameter.ExplicitDefaultValue) &&
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (5)
269return Equals(originalParamType, replacedParamType); 438if (Equals(originalCaseType, newCaseType)) 494if (!Equals(originalExprType.Type, replacedExprType.Type)) 545if (!Equals(originalExpressionTypeInfo.Type, newExpressionTypeInfo.Type)) 563return !object.Equals(originalExpressionType, newExpressionType);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.cs (1)
125if (alias != null && Equals(alias.Target, type))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\WithElementSyntaxExtensions.cs (2)
45if (!Equals(ilistOfTType, collectionExpressionType.OriginalDefinition) && 46!Equals(icollectionOfTType, collectionExpressionType.OriginalDefinition))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpMoveDeclarationNearReferenceService.cs (1)
63return Equals(localSymbol.Type, rightType.Type);
Microsoft.CodeAnalysis.Extensions.Package (15)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
310if (Equals(self.KeyComparer, equalityComparer))
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
47if (Equals(KeyComparer, value ?? EqualityComparer<T>.Default))
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
85if (Equals(_loneValue, item))
src\roslyn\src\Dependencies\Contracts\ReferenceEqualityComparer.cs (1)
39/// It is not necessarily equivalent to calling <see cref="object.Equals(object?, object?)"/>.
Symbols\IAssemblySymbolExtensions.cs (1)
66Equals(assembly, toAssembly) ||
Symbols\IMethodSymbolExtensions.cs (3)
34Equals(method.AssociatedExtensionImplementation, methodSymbol)) 53Debug.Assert(method.PartialImplementationPart == null && !Equals(method.PartialDefinitionPart, method)); 58Debug.Assert(!Equals(method.PartialImplementationPart, method));
Symbols\INamedTypeSymbolExtensions.cs (2)
271return implementation != null && Equals(implementation.ContainingType, classOrStructType); 290return implementation != null && Equals(implementation.ContainingType, classOrStructType);
Symbols\ITypeSymbolExtensions.cs (1)
763(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 (43)
AddImport\SymbolReferenceFinder.cs (1)
313Equals(propertyType.Name, symbol.Name))
CodeLens\LocationComparer.cs (1)
25return object.Equals(x, y);
Completion\Providers\AbstractSymbolCompletionProvider.cs (3)
125if (Equals(symbol, inferredType.OriginalDefinition) || symbol.AllInterfaces.Any(static (typeInterface, inferredType) => Equals(typeInterface.OriginalDefinition, inferredType.OriginalDefinition), inferredType)) 131while (typeToCheck != null && !Equals(typeToCheck.OriginalDefinition, inferredType.OriginalDefinition))
ConvertForToForEach\AbstractConvertForToForEachCodeRefactoringProvider.cs (4)
270t => Equals(t.OriginalDefinition, ienumerableType)); 299t => Equals(t.OriginalDefinition, ienumeratorType)); 348if (!Equals(indexerType, iterationType)) 528if (Equals(interfaceType.OriginalDefinition, ienumerableType))
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (4)
2530return Equals(x?.Identity, y?.Identity); 2598(!oldParameter.HasExplicitDefaultValue || Equals(oldParameter.ExplicitDefaultValue, newParameter.ExplicitDefaultValue)); 4445if (oldField.IsConst && newField.IsConst && !Equals(oldField.ConstantValue, newField.ConstantValue) && 6982_ => Equals(x.Value, y.Value)
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.cs (8)
468if (!object.Equals(oldProject.CompilationOptions, newProject.CompilationOptions)) 471if (!object.Equals(oldProject.AssemblyName, newProject.AssemblyName)) 474if (!object.Equals(oldProject.Name, newProject.Name)) 477if (!object.Equals(oldProject.AnalyzerOptions, newProject.AnalyzerOptions)) 480if (!object.Equals(oldProject.HostAnalyzerOptions, newProject.HostAnalyzerOptions)) 483if (!object.Equals(oldProject.DefaultNamespace, newProject.DefaultNamespace)) 486if (!object.Equals(oldProject.OutputFilePath, newProject.OutputFilePath)) 489if (!object.Equals(oldProject.OutputRefFilePath, newProject.OutputRefFilePath))
FullyQualify\AbstractFullyQualifyService.SymbolResult.cs (1)
38=> Equals(Symbol, other.Symbol);
InlineTemporary\AbstractInlineTemporaryCodeRefactoringProvider.cs (1)
41var referencedSymbol = findReferencesResult.SingleOrDefault(r => Equals(r.Definition, local));
LanguageServices\AnonymousTypeDisplayService\AbstractStructuralTypeDisplayService.cs (1)
55if (!Equals(invokeMethod, part.Symbol))
MetadataAsSource\DecompilationMetadataAsSourceFileProvider.cs (2)
459object.Equals(_assemblyIdentity, other._assemblyIdentity) && 460object.Equals(_metadataId, other._metadataId) &&
src\939a5660f39ce290\AbstractUseConditionalExpressionForAssignmentCodeFixProvider.cs (3)
183if (local != null && !Equals(local, falseLocal.Local)) 230if (!Equals(variable, local)) 257Equals(variable, localReference.Local))
src\roslyn\src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.cs (1)
195if (Equals(_objectGetHashCodeMethod, current))
src\roslyn\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\roslyn\src\Analyzers\Core\Analyzers\PopulateSwitch\AbstractPopulateSwitchDiagnosticAnalyzer.cs (1)
131=> constantValue.HasValue && Equals(constantValue.Value, value);
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
109=> Equals(x?.OriginalDefinition, y?.OriginalDefinition);
src\roslyn\src\Analyzers\Core\Analyzers\UseAutoProperty\AccessedFields.cs (1)
33=> Equals(TrivialField, field) || NonTrivialFields.Contains(field);
src\roslyn\src\Analyzers\Core\Analyzers\UseCoalesceExpression\AbstractUseCoalesceExpressionForIfNullCheckDiagnosticAnalyzer.cs (1)
203if (Equals(localSymbol, symbol))
src\roslyn\src\Analyzers\Core\Analyzers\UseCollectionInitializer\UpdateExpressionState.cs (3)
206Equals(parameter1.Type, propertyParameter.Type) && 207Equals(parameter2.Type, propertyType)) is true) 316if (arity != 0 || !Equals(name, methodName))
src\roslyn\src\Analyzers\Core\Analyzers\UseThrowExpression\AbstractUseThrowExpressionDiagnosticAnalyzer.cs (1)
194if (!Equals(localOrParameter, assignmentValue))
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.cs (1)
223Equals(parameter.Type, cancellationTokenType))
src\roslyn\src\Analyzers\Core\CodeFixes\MakeMethodSynchronous\AbstractMakeMethodSynchronousCodeFixProvider.cs (1)
140var referencedSymbol = references.FirstOrDefault(r => Equals(r.Definition, methodSymbol));
Microsoft.CodeAnalysis.NetAnalyzers (65)
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\DefineAccessorsForAttributeArguments.cs (1)
180Equals(property.ContainingType, attributeType))
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\EquatableAnalyzer.cs (1)
92!Equals(namedType, namedType.FindImplementationForInterfaceMember(equatableEqualsMethod)?.ContainingType))
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\IdentifiersShouldDifferByMoreThanCase.cs (3)
54.Where(item => Equals(item.ContainingAssembly, context.Compilation.Assembly)); 57Equals(item.ContainingAssembly, context.Compilation.Assembly) && 101Equals(item.ContainingAssembly, context.Compilation.Assembly) &&
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\ImplementIDisposableCorrectly.cs (4)
322if (Equals(m, FindDisposeMethod(m.ContainingType))) 428if (type.FindImplementationForInterfaceMember(_disposeInterfaceMethod) is IMethodSymbol disposeMethod && Equals(disposeMethod.ContainingType, type)) 598if (!Equals(invocationExpression.TargetMethod, _suppressFinalizeMethod)) 711return methodSymbol.IsFinalizer() && Equals(receiver.Type?.OriginalDefinition, _type.BaseType.OriginalDefinition);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\MarkAssembliesWithComVisible.cs (1)
75Equals(attributeInstance.ConstructorArguments[0].Value, true))
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\PassSystemUriObjectsInsteadOfStrings.cs (1)
160!Equals(overload, context.ContainingSymbol))
Microsoft.CodeQuality.Analyzers\Maintainability\DoNotIgnoreMethodResults.cs (1)
240Equals(methodSymbol.ContainingSymbol, assertSymbol);
Microsoft.CodeQuality.Analyzers\QualityGuidelines\AvoidPropertySelfAssignment.cs (4)
54if (!Equals(operationTarget.Property, operationValue.Property) || 102return Equals(targetArg.ConstantValue.Value, valueArg.ConstantValue.Value); 108Equals(targetLocalReference.Local, ((ILocalReferenceOperation)valueArg).Local), 110Equals(targetParameterReference.Parameter, ((IParameterReferenceOperation)valueArg).Parameter),
Microsoft.CodeQuality.Analyzers\QualityGuidelines\DoNotCallOverridableMethodsInConstructors.cs (1)
71Equals(method.ContainingType, containingType) &&
Microsoft.CodeQuality.Analyzers\QualityGuidelines\ValidateArgumentsOfPublicMethods.cs (2)
64if (!Equals(overriddenMethod.ContainingAssembly, containingMethod.ContainingAssembly)) 107Equals(containingMethod.Parameters[0], parameter))
Microsoft.NetCore.Analyzers\Data\ReviewSqlQueriesForSecurityVulnerabilities.cs (3)
93if (Equals(invocation.TargetMethod.ContainingType, symbol.ContainingType)) 257if (Equals(@interface, iDbCommandType)) 261else if (Equals(@interface, iDataAdapterType))
Microsoft.NetCore.Analyzers\Performance\DoNotGuardCall.cs (1)
166return Equals(argumentValue1.ConstantValue.Value, argumentValue2.ConstantValue.Value);
Microsoft.NetCore.Analyzers\Performance\PreferDictionaryTryMethodsOverContainsKeyGuardAnalyzer.cs (3)
68return Equals(_usageLocations, other._usageLocations) && 72Equals(SetterLocation, other.SetterLocation) && 73Equals(AdditionalArrayIndexReferences, other.AdditionalArrayIndexReferences);
Microsoft.NetCore.Analyzers\Runtime\AvoidRedundantRegexIsMatchBeforeMatch.cs (1)
566return Equals(left.ConstantValue.Value, right.ConstantValue.Value);
Microsoft.NetCore.Analyzers\Runtime\DisposeMethodsShouldCallBaseClassDispose.cs (1)
87if (Equals(invocation.TargetMethod, containingMethod.OverriddenMethod) &&
Microsoft.NetCore.Analyzers\Runtime\DoNotPassLiteralsAsLocalizedParameters.cs (1)
263if (Equals(overridenParameter.Type, parameterSymbol.Type))
Microsoft.NetCore.Analyzers\Runtime\NormalizeStringsToUppercase.cs (2)
52stringType.GetMembers("ToLower").OfType<IMethodSymbol>().FirstOrDefault(m => m.Parameters.Length == 1 && Equals(m.Parameters[0].Type, cultureInfo)) : 63stringType.GetMembers("ToUpper").OfType<IMethodSymbol>().FirstOrDefault(m => m.Parameters.Length == 1 && Equals(m.Parameters[0].Type, cultureInfo)) :
Microsoft.NetCore.Analyzers\Runtime\ProvideCorrectArgumentsToFormattingMethods.cs (2)
72if (!Equals(formatStringArgument.Value.Type, formatInfo.String) || 121!Equals(elementType, formatInfo.Object) ||
Microsoft.NetCore.Analyzers\Security\ApprovedCipherModeAnalyzer.cs (1)
67if (Equals(fieldSymbol.ContainingType, cipherModeTypeSymbol)
Microsoft.NetCore.Analyzers\Security\DoNotCallDangerousMethodsInDeserialization.cs (1)
272if (Equals(child, methodSymbol))
Microsoft.NetCore.Analyzers\Security\DoNotUseInsecureDeserializerWithoutBinderBase.cs (2)
142if (Equals(invocationOperation.Instance?.Type, deserializerTypeSymbol) 158if (Equals(methodReferenceOperation.Instance?.Type, deserializerTypeSymbol)
Microsoft.NetFramework.Analyzers\DoNotUseInsecureDtdProcessing.cs (2)
352if (!Equals(objCreation.Constructor.ContainingType, _xmlTypes.XmlDocument)) 430if (!Equals(objCreation.Constructor.ContainingType, _xmlTypes.XmlTextReader))
Microsoft.NetFramework.Analyzers\DoNotUseInsecureDtdProcessingInApiDesign.cs (6)
117|| Equals(methodSymbol.ContainingType, _xmlTypes.XmlDocument) 174|| Equals(methodSymbol.ContainingType, _xmlTypes.XmlDocument) 212|| Equals(methodSymbol.ContainingType, _xmlTypes.XmlTextReader) 288|| Equals(methodSymbol.ContainingType, _xmlTypes.XmlTextReader) 404if (Equals(typeSymbol, _xmlTypes.XmlDocument) || 444if (Equals(typeSymbol, _xmlTypes.XmlTextReader) ||
Microsoft.NetFramework.Analyzers\Helpers\SecurityDiagnosticHelpers.cs (2)
111return Equals(symbol, xmlTypes.XsltSettings); 116return Equals(symbol, xmlTypes.XmlReaderSettings);
Microsoft.NetFramework.Analyzers\MarkVerbHandlersWithValidateAntiforgeryTokenAnalyzer.MvcAttributeSymbols.cs (2)
114&& Equals(parameterType, this.HttpVerbsSymbol)) 143return symbol != null && Equals(attributeData.AttributeClass, symbol);
src\47c588c5b8785708\ParameterValidationAnalysis.ParameterValidationDataFlowOperationVisitor.cs (2)
66Equals(parameter.ContainingSymbol, GetBottomOfStackOwningSymbol()); 372HandleHazardousOperation(syntaxNode, notValidatedLocations.Where(l => Equals(l.Symbol, parameter)));
src\9382845807600969\AbstractDataFlowAnalysisContext.cs (1)
49Debug.Assert(Equals(owningSymbol.OriginalDefinition, owningSymbol));
src\9382845807600969\AbstractLocationDataFlowOperationVisitor.cs (1)
98Debug.Assert(Equals(analysisEntity.Symbol, parameter));
src\9382845807600969\AnalysisEntityDataFlowOperationVisitor.cs (1)
306Debug.Assert(Equals(analysisEntity.Symbol, parameter));
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\BoundedCacheWithFactory.cs (1)
47if (Equals(cachedEntry.Key, key))
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\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\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (1)
53/// Checks if the given <paramref name="method"/> is <see cref="object.Equals(object, object)"/> or <see cref="object.ReferenceEquals(object, object)"/>.
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\Extensions\ISymbolExtensions.cs (2)
119Equals(associated.AssociatedSymbol, propertySymbol)) 255return member != null && Equals(member.ContainingType, type) && member.MetadataName == name;
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (1)
233return !Equals(false, typedConstant.Value);
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\Lightup\LightupHelpers.cs (1)
109if (Equals(newValue, fallbackResult))
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AnalysisEntity.cs (1)
120Debug.Assert(Equals(instanceLocation.Locations.Single().Symbol, typeSymbol));
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (1)
981if (Equals(method.ContainingType, ContractNamedType) &&
Microsoft.CodeAnalysis.Razor.Compiler (9)
CSharp\AssemblyIdentityEqualityComparer.cs (1)
34return string.Equals(x.Name, y.Name, StringComparison.OrdinalIgnoreCase) && object.Equals(x.Version, y.Version);
Language\Legacy\LiteralAttributeChunkGenerator.cs (2)
32Equals(other.Prefix, Prefix) && 33Equals(other.Value, Value);
Language\Legacy\LocationTagged.cs (2)
44return Equals(other.Location, Location) && 45Equals(other.Value, Value);
Language\RazorCodeDocument.cs (2)
124if (Equals(value, _tagHelpers)) 145if (Equals(value, _referencedTagHelpers))
Language\Syntax\SyntaxList`1.cs (2)
523if (Equals(child, node)) 572if (Equals(this[i], node))
Microsoft.CodeAnalysis.ResxSourceGenerator (36)
AbstractResxGenerator.cs (2)
335if (!Equals(x.KeyComparer, y.KeyComparer)) 338if (!Equals(x.ValueComparer, y.ValueComparer))
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\DocumentationCommentXmlNames.cs (1)
69return object.Equals(left, right);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
310if (Equals(self.KeyComparer, equalityComparer))
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
47if (Equals(KeyComparer, value ?? EqualityComparer<T>.Default))
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
85if (Equals(_loneValue, item))
src\roslyn\src\Dependencies\Contracts\ReferenceEqualityComparer.cs (1)
39/// It is not necessarily equivalent to calling <see cref="object.Equals(object?, object?)"/>.
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\BoundedCacheWithFactory.cs (1)
48if (Equals(cachedEntry.Key, key))
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (3)
74if (!Equals(model.GetDeclaredSymbol(declSyntax, context.CancellationToken), symbol)) 182while (declSyntax.Parent != null && Equals(model.GetDeclaredSymbol(declSyntax.Parent, context.CancellationToken), declaredSymbol)) 247if (declaredSymbol != null && !Equals(symbol, declaredSymbol) && declaredSymbol.Kind != SymbolKind.Parameter)
src\roslyn\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\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISymbolExtensions.cs (1)
51Equals(associated.AssociatedSymbol, propertySymbol))
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (1)
202return !Equals(false, typedConstant.Value);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\CollectionExpressionUtilities.cs (1)
169Equals(lastParameter.Type.OriginalDefinition, readonlySpanOfTType))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.cs (1)
47.FirstOrDefault(o => Equals((o as ILocalFunctionOperation)?.Symbol, localFunction));
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFactsExtensions.cs (2)
51if (!Equals(semanticModel.GetTypeInfo(parentBinaryLeft).Type, 57if (!Equals(semanticModel.GetTypeInfo(parentBinaryLeft).ConvertedType,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (2)
418Contract.ThrowIfFalse(Equals(method, _methodSymbolStack[^1])); 434Contract.ThrowIfFalse(Equals(contextualSymbol, _contextualSymbolStack.Peek()));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (3)
1162if (!object.Equals(parameter2.ExplicitDefaultValue, parameter1.ExplicitDefaultValue)) 1167if (object.Equals(parameter1.ExplicitDefaultValue, 0.0)) 1169RoslynDebug.Assert(object.Equals(parameter2.ExplicitDefaultValue, 0.0));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IAssemblySymbolExtensions.cs (1)
66Equals(assembly, toAssembly) ||
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IMethodSymbolExtensions.cs (3)
34Equals(method.AssociatedExtensionImplementation, methodSymbol)) 53Debug.Assert(method.PartialImplementationPart == null && !Equals(method.PartialDefinitionPart, method)); 58Debug.Assert(!Equals(method.PartialImplementationPart, method));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (2)
271return implementation != null && Equals(implementation.ContainingType, classOrStructType); 290return implementation != null && Equals(implementation.ContainingType, classOrStructType);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
763(Equals(iDisposableType, type) ||
src\roslyn\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.VisualBasic (13)
Binding\Binder_Expressions.vb (1)
2811CaseInsensitiveComparison.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)
760If 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)
852Return Me.[Equals](TryCast(other, Symbol), SymbolEqualityComparer.Default.CompareKind) 856Return Me.[Equals](TryCast(other, Symbol), equalityComparer.CompareKind)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (2)
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ParameterSyntaxExtensions.vb (1)
29Equals(oldSymbol.Type, newSymbol.Type) Then
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\SemanticModelExtensions.vb (1)
38Function(s) Not reservedNames.Any(Function(n) CaseInsensitiveComparison.Equals(s, n)),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\SymbolExtensions.vb (1)
19(containingNamespace.IsGlobalNamespace OrElse Object.Equals(containingNamespace, compilation.RootNamespace))
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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Utilities\CastAnalyzer.vb (2)
69If Not Object.Equals(expressionTypeInfo.Type, expressionTypeInfo.ConvertedType) Then 306Return Equals(castType, speculatedExpressionOuterType)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\SemanticModelExtensions.vb (1)
38Function(s) Not reservedNames.Any(Function(n) CaseInsensitiveComparison.Equals(s, n)),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\SymbolExtensions.vb (1)
19(containingNamespace.IsGlobalNamespace OrElse Object.Equals(containingNamespace, compilation.RootNamespace))
Microsoft.CodeAnalysis.Workspaces (52)
Editing\SyntaxGenerator.cs (1)
249return Equals(current, typeParameter) && current.NullableAnnotation == NullableAnnotation.Annotated;
FindSymbols\FindReferences\Finders\AbstractReferenceFinder.cs (1)
495if (!Equals(symbol, collectionExpression.ConstructMethod?.OriginalDefinition))
FindSymbols\FindReferences\Finders\AliasSymbolReferenceFinder.cs (1)
58if (Equals(aliasInfo, symbol))
FindSymbols\FindReferences\Finders\OrdinaryMethodReferenceFinder.cs (1)
151Equals(methodSymbol.ContainingType, builderType) &&
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)
589if (overridingSymbol != null && !Equals(renamedSymbolInNewSolution, overridingSymbol))
Rename\ConflictEngine\DeclarationConflictHelpers.cs (2)
63if (!(conflictingMethod.PartialDefinitionPart != null && Equals(conflictingMethod.PartialDefinitionPart, renamedMethod)) && 64!(conflictingMethod.PartialImplementationPart != null && Equals(conflictingMethod.PartialImplementationPart, renamedMethod)))
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (1)
128&& 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\roslyn\src\Compilers\Core\Portable\InternalUtilities\DocumentationCommentXmlNames.cs (1)
69return object.Equals(left, right);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
310if (Equals(self.KeyComparer, equalityComparer))
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
47if (Equals(KeyComparer, value ?? EqualityComparer<T>.Default))
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
85if (Equals(_loneValue, item))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\CollectionExpressionUtilities.cs (1)
169Equals(lastParameter.Type.OriginalDefinition, readonlySpanOfTType))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.cs (1)
47.FirstOrDefault(o => Equals((o as ILocalFunctionOperation)?.Symbol, localFunction));
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\PublicOptionFactory.cs (1)
126equals = Equals(x.DefaultValue, y.DefaultValue) && x.Type == y.Type;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFactsExtensions.cs (2)
51if (!Equals(semanticModel.GetTypeInfo(parentBinaryLeft).Type, 57if (!Equals(semanticModel.GetTypeInfo(parentBinaryLeft).ConvertedType,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (2)
418Contract.ThrowIfFalse(Equals(method, _methodSymbolStack[^1])); 434Contract.ThrowIfFalse(Equals(contextualSymbol, _contextualSymbolStack.Peek()));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (3)
1162if (!object.Equals(parameter2.ExplicitDefaultValue, parameter1.ExplicitDefaultValue)) 1167if (object.Equals(parameter1.ExplicitDefaultValue, 0.0)) 1169RoslynDebug.Assert(object.Equals(parameter2.ExplicitDefaultValue, 0.0));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IAssemblySymbolExtensions.cs (1)
66Equals(assembly, toAssembly) ||
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IMethodSymbolExtensions.cs (3)
34Equals(method.AssociatedExtensionImplementation, methodSymbol)) 53Debug.Assert(method.PartialImplementationPart == null && !Equals(method.PartialDefinitionPart, method)); 58Debug.Assert(!Equals(method.PartialImplementationPart, method));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (2)
271return implementation != null && Equals(implementation.ContainingType, classOrStructType); 290return implementation != null && Equals(implementation.ContainingType, classOrStructType);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
763(Equals(iDisposableType, type) ||
src\roslyn\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)
219if (object.Equals(field, newValue))
Workspace\Solution\SolutionState_Checksum.cs (1)
143RoslynDebug.Assert(Equals(projectConeTemp, stateChecksums.ProjectCone));
Microsoft.DotNet.ApiCompatibility (1)
Comparing\TypedConstantEqualityComparer.cs (1)
34if (!Equals(x.Value, y.Value))
Microsoft.DotNet.Build.Tasks.Packaging (1)
GenerateNuSpec.cs (1)
283return 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)) 496object.Equals(service.ServiceKey, descriptor.ServiceKey)) 554if (collection[i].ServiceType == descriptor.ServiceType && object.Equals(collection[i].ServiceKey, descriptor.ServiceKey))
Extensions\ServiceCollectionDescriptorExtensions.Keyed.cs (1)
423if (descriptor.ServiceType == serviceType && object.Equals(descriptor.ServiceKey, serviceKey))
Microsoft.Extensions.Diagnostics (2)
src\runtime\src\libraries\Common\src\System\Diagnostics\DiagnosticsHelper.cs (2)
61if (pair.Key == pair1.Key && object.Equals(pair.Value, pair1.Value)) 101if (pair.Key == pair1.Key && 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)
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.Logging.Generators (1)
LoggerMessageGenerator.Parser.cs (1)
995Equals(ParentClass, other.ParentClass);
Microsoft.Extensions.Validation.ValidationsGenerator (1)
src\aspnetcore\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.Transforms (1)
MissingValueReplacingUtils.cs (1)
480if (Equals(count, (ulong)_cna))
Microsoft.Private.Windows.Core (2)
System\Collections\Specialized\CompatibleIComparer.cs (1)
38return object.Equals(x, y);
Windows\Win32\Foundation\HandleRef.cs (1)
40=> other.Handle.Equals(Handle) && Equals(other.Wrapper, Wrapper);
Microsoft.TemplateEngine.Core (9)
Expressions\Cpp\Scope.cs (1)
119return Equals(x, y);
Expressions\OperatorSetBuilder.cs (1)
283return Equals(l, r);
Expressions\ScopeBuilder.cs (4)
143if (Equals(activeLiteralSequenceBoundsMarker.Value, mappedToken)) 215if (Equals(_openGroup, mappedToken)) 225else if (Equals(_closeGroup, mappedToken)) 269&& Equals(o.Operator, _identity)
Expressions\Shared\SharedEvaluatorDefinition.cs (2)
97if (Equals(right, NullToken)) 102if (Equals(left, NullToken))
Operations\Include.cs (1)
132if (!Equals(realEncoding, processor.Encoding))
Microsoft.TemplateEngine.Utils (2)
ListExtensions.cs (1)
63return obj is ValueWrapper<T> v && Equals(Val, v.Val);
MultiValueParameter.cs (1)
62result = Equals(x, y);
Microsoft.TestPlatform.CrossPlatEngine (1)
DataCollection\DataCollectionTestRunEventsHandler.cs (1)
219var attSet = originalAttachmentSets.FirstOrDefault(item => Equals(item.Uri, attachmentSet.Uri));
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\Collection.vb (1)
471Return Object.Equals(obj1, obj2)
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (3)
ObjectModel\TestEntry.cs (2)
75TPDebug.Assert(Equals(_testId, e._testId)); 76TPDebug.Assert(Equals(_categoryId, e._categoryId));
Utility\Converter.cs (1)
500if (!Equals(testResultExecutionId, Guid.Empty))
Microsoft.VisualStudio.TestPlatform.ObjectModel (2)
Client\TestRunCriteria.cs (1)
634&& Equals(FilterOptions, other.FilterOptions);
DataCollector\DataCollectionContext.cs (1)
111return Equals(context1, context2);
MSBuild (1)
XMake.cs (1)
2341&& !Equals(CultureInfo.InvariantCulture, thisThread.CurrentUICulture))
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);
NuGet.Commands (5)
RestoreCommand\CompatibilityChecker.cs (2)
377if (Equals(target.TargetFramework, graph.Framework) && (target.TargetAlias == null || Equals(target.TargetAlias, graph.TargetAlias)) && string.Equals(target.RuntimeIdentifier, graph.RuntimeIdentifier, StringComparison.Ordinal))
RestoreCommand\CompatibilityIssue.cs (3)
283Equals(Type, other.Type) && 284Equals(Framework, other.Framework) && 287Equals(Package, other.Package) &&
NuGet.Frameworks (1)
FrameworkRuntimePair.cs (1)
31Equals(Framework, other.Framework) &&
NuGet.LibraryModel (6)
LibraryIdentity.cs (3)
48&& Equals(Version, other.Version) 70return Equals(left, right); 75return !Equals(left, right);
LibraryRange.cs (3)
153&& Equals(VersionRange, other.VersionRange); 174return Equals(left, right); 179return !Equals(left, right);
NuGet.Packaging (7)
ContentModel\ContentItemCollection.cs (1)
466if (!Equals(xProperty.Value, yValue))
ContentModel\ContentPropertyDefinition.cs (1)
16private static readonly Func<object?, object?, bool> EqualsTest = (left, right) => Equals(left, right);
ContentModel\ManagedCodeConventions.cs (2)
115return Equals(criteria, available); 335else if (Object.Equals(AnyFramework.AnyFramework, availableFrameworkName))
PackageCreation\Authoring\LicenseMetadata.cs (1)
71Equals(LicenseExpression, other.LicenseExpression) &&
Signing\SignatureLog.cs (2)
85return Equals(Level, other.Level) && 86Equals(Code, other.Code) &&
NuGet.ProjectModel (2)
LockFile\BuildAction.cs (2)
67return Equals(left, right); 72return !Equals(left, right);
NuGet.Versioning (2)
SemanticVersionBase.cs (2)
150return Equals(version1, version2); 158return !Equals(version1, version2);
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)
583if (Object.Equals(item, pair.Key)) 643if (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)
8034result = !Object.Equals(oldValue, value); 12172if (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)
2956internal 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)
1049if (!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 (51)
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;
ImmutableArrayBoxingAnalyzer.cs (3)
72var isReadOnlyListExtensions = Equals(targetMethod.OriginalDefinition.ContainingType, readOnlyListExtensionsType); 73var isEnumerableExtensions = Equals(targetMethod.OriginalDefinition.ContainingType, enumerableExtensionsType); 87!Equals(operandType.OriginalDefinition, immutableArrayType))
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))
IRemoteJsonServiceParameterAnalyzer.cs (3)
65!namedTypeSymbol.AllInterfaces.Any(i => Equals(i, remoteJsonService))) 74if (!Equals(parameter.Type, razorPinnedSolutionInfoWrapper) && 75!Equals(parameter.Type, documentId))
PooledArrayBuilderAsRefAnalyzer.cs (1)
61if (!Equals(targetMethod.OriginalDefinition, pooledArrayBuilderAsRef))
SpecializedEnumerableCreationAnalyzer.cs (3)
112Equals(methodSymbol.ReturnType.OriginalDefinition, _genericEnumerableSymbol)) 137Equals(typeInfo.ConvertedType.OriginalDefinition, GenericEnumerableSymbol) && 145Equals(methodSymbol.OriginalDefinition, _genericEmptyEnumerableSymbol))
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\DocumentationCommentXmlNames.cs (1)
69return object.Equals(left, right);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
310if (Equals(self.KeyComparer, equalityComparer))
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
47if (Equals(KeyComparer, value ?? EqualityComparer<T>.Default))
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
85if (Equals(_loneValue, item))
src\roslyn\src\Dependencies\Contracts\ReferenceEqualityComparer.cs (1)
39/// It is not necessarily equivalent to calling <see cref="object.Equals(object?, object?)"/>.
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\BoundedCacheWithFactory.cs (1)
48if (Equals(cachedEntry.Key, key))
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (3)
74if (!Equals(model.GetDeclaredSymbol(declSyntax, context.CancellationToken), symbol)) 182while (declSyntax.Parent != null && Equals(model.GetDeclaredSymbol(declSyntax.Parent, context.CancellationToken), declaredSymbol)) 247if (declaredSymbol != null && !Equals(symbol, declaredSymbol) && declaredSymbol.Kind != SymbolKind.Parameter)
src\roslyn\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\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISymbolExtensions.cs (1)
51Equals(associated.AssociatedSymbol, propertySymbol))
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (1)
202return !Equals(false, typedConstant.Value);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\CollectionExpressionUtilities.cs (1)
169Equals(lastParameter.Type.OriginalDefinition, readonlySpanOfTType))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.cs (1)
47.FirstOrDefault(o => Equals((o as ILocalFunctionOperation)?.Symbol, localFunction));
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFactsExtensions.cs (2)
51if (!Equals(semanticModel.GetTypeInfo(parentBinaryLeft).Type, 57if (!Equals(semanticModel.GetTypeInfo(parentBinaryLeft).ConvertedType,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (2)
418Contract.ThrowIfFalse(Equals(method, _methodSymbolStack[^1])); 434Contract.ThrowIfFalse(Equals(contextualSymbol, _contextualSymbolStack.Peek()));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (3)
1162if (!object.Equals(parameter2.ExplicitDefaultValue, parameter1.ExplicitDefaultValue)) 1167if (object.Equals(parameter1.ExplicitDefaultValue, 0.0)) 1169RoslynDebug.Assert(object.Equals(parameter2.ExplicitDefaultValue, 0.0));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IAssemblySymbolExtensions.cs (1)
66Equals(assembly, toAssembly) ||
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IMethodSymbolExtensions.cs (3)
34Equals(method.AssociatedExtensionImplementation, methodSymbol)) 53Debug.Assert(method.PartialImplementationPart == null && !Equals(method.PartialDefinitionPart, method)); 58Debug.Assert(!Equals(method.PartialImplementationPart, method));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (2)
271return implementation != null && Equals(implementation.ContainingType, classOrStructType); 290return implementation != null && Equals(implementation.ContainingType, classOrStructType);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
763(Equals(iDisposableType, type) ||
src\roslyn\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 (26)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (17)
131if (Equals(enumType?.EnumUnderlyingType, castedType)) 166if (Equals(enumType?.EnumUnderlyingType, castedType)) 169if (Equals(enumType, parentCastType.RemoveNullableIfPresent())) 274if (!Equals(originalDelegateCreationOperation.Type, rewrittenDelegateCreationOperation.Type)) 432if (!Equals(originalParentConversion.MethodSymbol, rewrittenConversion.MethodSymbol)) 1214if (castSideType.IsNullable(out var underlyingType) && Equals(underlyingType, castedExpressionType)) 1217if (Equals(castSideType, otherSideType) || Equals(underlyingType, otherSideType)) 1391!Equals(oldSymbolInfo, newSymbolInfo)) 1422if (!Equals(oldConversion.MethodSymbol, newConversion.MethodSymbol)) 1485if (Equals(originalMemberSymbol, rewrittenMemberSymbol)) 1514Equals(implementationMember, rewrittenMemberSymbol) && 1524if (Equals(originalMemberSymbol, current)) 1573return Equals(originalMethodSymbol.ReturnType, rewrittenMethodSymbol.ReturnType); 1625if (!Equals(originalMemberType, rewrittenMemberType)) 1648var argument = invocationOperation.Arguments.FirstOrDefault(a => Equals(originalParameter, a.Parameter)); 1660!Equals(originalParameter.ExplicitDefaultValue, rewrittenParameter.ExplicitDefaultValue) &&
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (5)
269return Equals(originalParamType, replacedParamType); 438if (Equals(originalCaseType, newCaseType)) 494if (!Equals(originalExprType.Type, replacedExprType.Type)) 545if (!Equals(originalExpressionTypeInfo.Type, newExpressionTypeInfo.Type)) 563return !object.Equals(originalExpressionType, newExpressionType);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.cs (1)
125if (alias != null && Equals(alias.Target, type))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\WithElementSyntaxExtensions.cs (2)
45if (!Equals(ilistOfTType, collectionExpressionType.OriginalDefinition) && 46!Equals(icollectionOfTType, collectionExpressionType.OriginalDefinition))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpMoveDeclarationNearReferenceService.cs (1)
63return Equals(localSymbol.Type, rightType.Type);
Roslyn.Diagnostics.VisualBasic.Analyzers (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Utilities\CastAnalyzer.vb (2)
69If Not Object.Equals(expressionTypeInfo.Type, expressionTypeInfo.ConvertedType) Then 306Return Equals(castType, speculatedExpressionOuterType)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\SemanticModelExtensions.vb (1)
38Function(s) Not reservedNames.Any(Function(n) CaseInsensitiveComparison.Equals(s, n)),
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\runtime\src\libraries\Common\src\System\Diagnostics\DiagnosticsHelper.cs (2)
61if (pair.Key == pair1.Key && object.Equals(pair.Value, pair1.Value)) 101if (pair.Key == pair1.Key && 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)
1610if (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\runtime\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\runtime\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)
297Debug.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\runtime\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\runtime\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)
40=> 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.ServiceModel.Primitives (5)
System\ServiceModel\Channels\ChannelReliableSession.cs (1)
759else if (!object.Equals(createResponse.RelatesTo, _requestor.MessageId))
System\ServiceModel\Channels\ReliableMessagingHelpers.cs (2)
2067else if (!object.Equals(messageId, info.CloseSequenceResponseInfo.RelatesTo)) 2148else if (!object.Equals(messageId, info.TerminateSequenceResponseInfo.RelatesTo))
System\ServiceModel\OperationContext.cs (1)
377if (!object.Equals(message, _clientReply))
System\ServiceModel\SynchronizedCollection.cs (1)
160if (object.Equals(Items[i], item))
System.Speech (4)
Internal\Synthesis\TTSVoice.cs (1)
91if (_waveFormat == null || !Array.Equals(targetWaveFormat, _waveFormat))
Internal\Synthesis\VoiceSynthesis.cs (1)
1119if (viDefault.Enabled && Equals(vi.Culture, culture) && (gender == VoiceGender.NotSet || gender == VoiceGender.Neutral || gender == vi.Gender) && (age == VoiceAge.NotSet || age == vi.Age))
Synthesis\InstalledVoice.cs (1)
57return VoiceInfo.Name == ti2.VoiceInfo.Name && VoiceInfo.Age == ti2.VoiceInfo.Age && VoiceInfo.Gender == ti2.VoiceInfo.Gender && object.Equals(VoiceInfo.Culture, ti2.VoiceInfo.Culture);
Synthesis\TTSEngine\TTSEngineTypes.cs (1)
241return state1.Action == state2.Action && state1.LangId == state2.LangId && state1.Emphasis == state2.Emphasis && state1.Duration == state2.Duration && state1.SayAs == state2.SayAs && state1.Prosody == state2.Prosody && Array.Equals(state1.Phoneme, state2.Phoneme);
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)
856if (Equals(value, DataContext)) 863if (Properties.ContainsKey(s_dataContextProperty) && Equals(ParentInternal?.DataContext, value)) 2080if (Equals(previous, value)) 7403if (Equals(Properties.GetValueOrDefault<object>(s_dataContextProperty), Parent?.DataContext))
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
235if (!Equals(_commandParameter, value))
System\Windows\Forms\Controls\DataGridView\DataGridViewBand.cs (1)
316if (DataGridView is not null && !Equals(priorValue, value))
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (1)
635if (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)
454if (!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)
736if (Equals(cmd, MenuCommands.KeyMoveUp)) 740else if (Equals(cmd, MenuCommands.KeyMoveDown)) 744else if (Equals(cmd, MenuCommands.KeyMoveLeft)) 748else if (Equals(cmd, MenuCommands.KeyMoveRight)) 752else if (Equals(cmd, MenuCommands.KeyNudgeUp)) 757else if (Equals(cmd, MenuCommands.KeyNudgeDown)) 762else if (Equals(cmd, MenuCommands.KeyNudgeLeft)) 767else if (Equals(cmd, MenuCommands.KeyNudgeRight)) 2922if (!Equals(TypeDescriptor.GetAttributes(obj)[typeof(InheritanceAttribute)], InheritanceAttribute.NotInherited))
System\Windows\Forms\Design\TabOrder.cs (3)
673if (Equals(_commands[i].CommandID, cmd.CommandID)) 692if (Equals(_commands[i].CommandID, cmd.CommandID)) 703if (!Equals(cmd.CommandID, StandardCommands.TabOrder))
System.Xaml (2)
System\Xaml\XamlObjectReader.cs (2)
928return !Equals(defaultValue, actualValue); 2094return Equals(valueInfo.XamlNode.Value, string.Empty);
UIAutomationClientSideProviders (2)
MS\Internal\AutomationProxies\WindowsRichEditRange.cs (2)
392if (object.Equals(v1, v2)) 438return object.Equals(v1, (int)v2);