1541 implementations of Equals
Analyzer.Utilities.UnitTests (1)
Lightup\LightupHelpersTests.cs (1)
135public bool Equals(ISymbol? other)
Aspire.Dashboard (75)
artifacts\obj\Aspire.Dashboard\Debug\net8.0\DashboardService.cs (30)
301public bool Equals(ApplicationInformationRequest other) { 475public bool Equals(ApplicationInformationResponse other) { 876public bool Equals(ResourceCommand other) { 1335public bool Equals(ResourceCommandRequest other) { 1641public bool Equals(ResourceCommandResponse other) { 1919public bool Equals(ResourceType other) { 2195public bool Equals(EnvironmentVariable other) { 2524public bool Equals(Url other) { 2846public bool Equals(UrlDisplayProperties other) { 3122public bool Equals(Volume other) { 3460public bool Equals(HealthReport other) { 3749public bool Equals(ResourceRelationship other) { 4056public bool Equals(ResourceProperty other) { 4617public bool Equals(Resource other) { 5194public bool Equals(InitialResourceData other) { 5409public bool Equals(ResourceDeletion other) { 5672public bool Equals(WatchResourcesChange other) { 5924public bool Equals(WatchResourcesChanges other) { 6135public bool Equals(WatchResourcesRequest other) { 6384public bool Equals(WatchResourcesUpdate other) { 6683public bool Equals(ConsoleLogLine other) { 6952public bool Equals(WatchResourceConsoleLogsRequest other) { 7177public bool Equals(WatchResourceConsoleLogsUpdate other) { 7457public bool Equals(WatchInteractionsRequestUpdate other) { 7978public bool Equals(WatchInteractionsResponseUpdate other) { 8463public bool Equals(InteractionComplete other) { 8670public bool Equals(InteractionMessageBox other) { 8951public bool Equals(InteractionMessageBar other) { 9223public bool Equals(InteractionInputsDialog other) { 9490public bool Equals(InteractionInput other) {
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\collector\logs\v1\LogsService.cs (3)
127public bool Equals(ExportLogsServiceRequest other) { 332public bool Equals(ExportLogsServiceResponse other) { 567public bool Equals(ExportLogsPartialSuccess other) {
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\collector\metrics\v1\MetricsService.cs (3)
129public bool Equals(ExportMetricsServiceRequest other) { 334public bool Equals(ExportMetricsServiceResponse other) { 569public bool Equals(ExportMetricsPartialSuccess other) {
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\collector\trace\v1\TraceService.cs (3)
128public bool Equals(ExportTraceServiceRequest other) { 333public bool Equals(ExportTraceServiceResponse other) { 568public bool Equals(ExportTracePartialSuccess other) {
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\common\v1\Common.cs (5)
321public bool Equals(AnyValue other) { 700public bool Equals(ArrayValue other) { 900public bool Equals(KeyValueList other) { 1105public bool Equals(KeyValue other) { 1386public bool Equals(InstrumentationScope other) {
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\logs\v1\Logs.cs (4)
221public bool Equals(LogsData other) { 448public bool Equals(ResourceLogs other) { 732public bool Equals(ScopeLogs other) { 1171public bool Equals(LogRecord other) {
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\metrics\v1\Metrics.cs (16)
321public bool Equals(MetricsData other) { 548public bool Equals(ResourceMetrics other) { 832public bool Equals(ScopeMetrics other) { 1301public bool Equals(Metric other) { 1747public bool Equals(Gauge other) { 1971public bool Equals(Sum other) { 2227public bool Equals(Histogram other) { 2459public bool Equals(ExponentialHistogram other) { 2678public bool Equals(Summary other) { 3029public bool Equals(NumberDataPoint other) { 3613public bool Equals(HistogramDataPoint other) { 4324public bool Equals(ExponentialHistogramDataPoint other) { 4867public bool Equals(Buckets other) { 5206public bool Equals(SummaryDataPoint other) { 5563public bool Equals(ValueAtQuantile other) { 5937public bool Equals(Exemplar other) {
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\resource\v1\Resource.cs (1)
135public bool Equals(Resource other) {
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\trace\v1\Trace.cs (7)
167public bool Equals(TracesData other) { 394public bool Equals(ResourceSpans other) { 678public bool Equals(ScopeSpans other) { 1204public bool Equals(Span other) { 1817public bool Equals(Event other) { 2153public bool Equals(Link other) { 2465public bool Equals(Status other) {
Model\Otlp\SelectViewModel.cs (1)
14public bool Equals(SelectViewModel<T>? other)
Model\Otlp\TelemetryFilter.cs (1)
170public bool Equals(TelemetryFilter? other)
Model\ResourceTypeDetails.cs (1)
58public bool Equals(ResourceTypeDetails? other)
Aspire.Hosting (32)
artifacts\obj\Aspire.Hosting\Debug\net8.0\Dashboard\proto\DashboardService.cs (30)
301public bool Equals(ApplicationInformationRequest other) { 475public bool Equals(ApplicationInformationResponse other) { 876public bool Equals(ResourceCommand other) { 1335public bool Equals(ResourceCommandRequest other) { 1641public bool Equals(ResourceCommandResponse other) { 1919public bool Equals(ResourceType other) { 2195public bool Equals(EnvironmentVariable other) { 2524public bool Equals(Url other) { 2846public bool Equals(UrlDisplayProperties other) { 3122public bool Equals(Volume other) { 3460public bool Equals(HealthReport other) { 3749public bool Equals(ResourceRelationship other) { 4056public bool Equals(ResourceProperty other) { 4617public bool Equals(Resource other) { 5194public bool Equals(InitialResourceData other) { 5409public bool Equals(ResourceDeletion other) { 5672public bool Equals(WatchResourcesChange other) { 5924public bool Equals(WatchResourcesChanges other) { 6135public bool Equals(WatchResourcesRequest other) { 6384public bool Equals(WatchResourcesUpdate other) { 6683public bool Equals(ConsoleLogLine other) { 6952public bool Equals(WatchResourceConsoleLogsRequest other) { 7177public bool Equals(WatchResourceConsoleLogsUpdate other) { 7457public bool Equals(WatchInteractionsRequestUpdate other) { 7978public bool Equals(WatchInteractionsResponseUpdate other) { 8463public bool Equals(InteractionComplete other) { 8670public bool Equals(InteractionMessageBox other) { 8951public bool Equals(InteractionMessageBar other) { 9223public bool Equals(InteractionInputsDialog other) { 9490public bool Equals(InteractionInput other) {
Dcp\Model\Container.cs (2)
321public bool Equals(ContainerCreateFileSystem? other) 409public bool Equals(ContainerFileSystemEntry? other)
Aspire.Hosting.Azure (1)
AzureBicepResource.cs (1)
412bool IEquatable<BicepOutputReference>.Equals(BicepOutputReference? other) =>
Aspire.Hosting.Kubernetes (2)
Resources\Int32OrStringV1.cs (2)
46public bool Equals(int other) => 54public bool Equals(string? other) =>
BasketService (9)
artifacts\obj\BasketService\Debug\net8.0\Protos\Basket.cs (9)
133public bool Equals(BasketRequest other) { 343public bool Equals(CustomerBasketRequest other) { 567public bool Equals(CustomerBasketResponse other) { 831public bool Equals(BasketItemResponse other) { 1143public bool Equals(CheckoutCustomerBasketRequest other) { 1328public bool Equals(CheckoutCustomerBasketResponse other) { 1502public bool Equals(DeleteCustomerBasketRequest other) { 1687public bool Equals(DeleteCustomerBasketResponse other) { 1885public bool Equals(DecimalValue other) {
BuildBoss (1)
ProjectKey.cs (1)
25public bool Equals(ProjectKey other) => other == this;
ConfigurationSchemaGenerator (3)
RuntimeSource\SourceGenerators\DiagnosticInfo.cs (1)
42public readonly bool Equals(DiagnosticInfo other)
RuntimeSource\SourceGenerators\ImmutableEquatableArray.cs (1)
27public bool Equals(ImmutableEquatableArray<T>? other)
RuntimeSource\SourceGenerators\TypeRef.cs (1)
38public bool Equals(TypeRef? other) => other != null && FullyQualifiedName == other.FullyQualifiedName;
CSharpSyntaxGenerator (1)
Model\Kind.cs (1)
18public bool Equals(Kind? other)
DesignSurfaceExt (2)
Framework\Index.cs (1)
130public bool Equals(Index other) => _value == other._value;
Framework\Range.cs (1)
43public bool Equals(Range other) => other.Start.Equals(Start) && other.End.Equals(End);
dotnet-svcutil-lib (4)
FrameworkFork\System.Runtime.Serialization\System\Xml\PrefixHandle.cs (1)
181public bool Equals(PrefixHandle prefix2)
FrameworkFork\System.Runtime.Serialization\System\Xml\StringHandle.cs (1)
230public bool Equals(StringHandle other)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ProducerConsumerStream.cs (1)
238public bool Equals(WriteBufferWrapper other)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketTransportSettings.cs (1)
132public bool Equals(WebSocketTransportSettings other)
GenerateDocumentationAndConfigFiles (26)
src\Compilers\Core\Portable\Collections\BitVector.cs (1)
41public bool Equals(BitVector other)
src\Compilers\Core\Portable\FileSystem\RelativePathResolver.cs (1)
60public bool Equals(RelativePathResolver? other) =>
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
309public bool Equals(ImmutableSegmentedDictionary<TKey, TValue> other)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
322public bool Equals(ImmutableSegmentedHashSet<T> other)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
596public bool Equals(ImmutableSegmentedList<T> other)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
186public bool Equals(SegmentedArray<T> other)
src\Dependencies\Threading\VoidResult.cs (1)
22public bool Equals(VoidResult other)
src\RoslynAnalyzers\Utilities\Compiler\Options\OptionKey.cs (1)
54public bool Equals(OptionKey other)
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
255public bool Equals(SymbolNamesWithValueOption<TValue>? other)
src\RoslynAnalyzers\Utilities\Compiler\Options\Unit.cs (1)
28public readonly bool Equals(Unit other) => true;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeGeneration\ParameterName.cs (1)
66public bool Equals(ParameterName other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (1)
237public bool Equals(CodeStyleOption2<T>? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\Section.cs (1)
170public bool Equals(Section? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolUsageInfo.cs (1)
55public bool Equals(SymbolUsageInfo other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenData.cs (1)
44public bool Equals(TokenData other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingRule.cs (1)
21public bool Equals(NamingRule other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
368public bool Equals(NamingStylePreferences? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (2)
191public bool Equals(SymbolSpecification other) 550public bool Equals(ModifierKind other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\Option2.cs (1)
95public bool Equals(IOption2? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (1)
74public bool Equals(OptionDefinition? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\PerLanguageOption2.cs (1)
83public bool Equals(IOption2? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
356public readonly bool Equals(SymbolKey other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\InterceptsLocationUtilities.cs (1)
22public readonly bool Equals(InterceptsLocationData other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
157public bool Equals(SyntaxPath? other)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (1)
217public bool Equals(ISymbol other)
illink (14)
ILLink.RoslynAnalyzer (14)
DataFlow\CapturedReferenceValue.cs (1)
39public bool Equals(CapturedReferenceValue other) => Reference == other.Reference;
DataFlow\FeatureContextLattice.cs (1)
34public bool Equals(FeatureContext other) => EnabledFeatures == other.EnabledFeatures;
DataFlow\InterproceduralState.cs (1)
39public bool Equals(InterproceduralState<TValue, TValueLattice> other)
DataFlow\LocalStateAndContextLattice.cs (1)
24public bool Equals(LocalStateAndContext<TValue, TContext> other) =>
DataFlow\LocalStateLattice.cs (2)
21public bool Equals(LocalKey other) => SymbolEqualityComparer.Default.Equals(Local, other.Local) && 65public bool Equals(LocalState<TValue> other) => Dictionary.Equals(other.Dictionary);
DataFlow\MethodBodyValue.cs (1)
28public bool Equals(MethodBodyValue other)
src\libraries\System.Private.CoreLib\src\System\Index.cs (1)
129public bool Equals(Index other) => _value == other._value;
src\tools\illink\src\ILLink.Shared\DataFlow\DefaultValueDictionary.cs (1)
47public bool Equals(DefaultValueDictionary<TKey, TValue> other)
src\tools\illink\src\ILLink.Shared\DataFlow\IControlFlowGraph.cs (1)
78public bool Equals(ControlFlowBranch other)
src\tools\illink\src\ILLink.Shared\DataFlow\MaybeLattice.cs (1)
18public bool Equals(Maybe<T> other) => MaybeValue?.Equals(other.MaybeValue) ?? other.MaybeValue == null;
src\tools\illink\src\ILLink.Shared\DataFlow\ValueSet.cs (1)
171public bool Equals(ValueSet<TValue> other)
src\tools\illink\src\ILLink.Shared\ParameterIndex.cs (1)
46public bool Equals(ParameterIndex other)
TrimAnalysis\ArrayValue.cs (1)
47public bool Equals(ArrayValue? otherArr)
ILLink.Tasks (1)
CreateRuntimeRootDescriptorFile.cs (1)
90public bool Equals(FeatureSwitchMembers fsm)
IntegrationTestsWebsite (5)
artifacts\obj\IntegrationTestsWebsite\Release\net10.0\Protos\Greet.cs (5)
161public bool Equals(HelloRequest other) { 351public bool Equals(ComplextHelloRequest other) { 566public bool Equals(NameDetail other) { 785public bool Equals(EnumHelloRequest other) { 978public bool Equals(HelloReply other) {
InteropClient (13)
artifacts\obj\InteropClient\Release\net10.0\Empty.cs (1)
99public bool Equals(Empty other) {
artifacts\obj\InteropClient\Release\net10.0\Messages.cs (12)
164public bool Equals(BoolValue other) { 376public bool Equals(Payload other) { 607public bool Equals(EchoStatus other) { 943public bool Equals(SimpleRequest other) { 1376public bool Equals(SimpleResponse other) { 1648public bool Equals(StreamingInputCallRequest other) { 1886public bool Equals(StreamingInputCallResponse other) { 2118public bool Equals(ResponseParameters other) { 2421public bool Equals(StreamingOutputCallRequest other) { 2697public bool Equals(StreamingOutputCallResponse other) { 2900public bool Equals(ReconnectParams other) { 3107public bool Equals(ReconnectInfo other) {
InteropWebsite (13)
artifacts\obj\InteropWebsite\Release\net10.0\Empty.cs (1)
99public bool Equals(Empty other) {
artifacts\obj\InteropWebsite\Release\net10.0\Messages.cs (12)
164public bool Equals(BoolValue other) { 376public bool Equals(Payload other) { 607public bool Equals(EchoStatus other) { 943public bool Equals(SimpleRequest other) { 1376public bool Equals(SimpleResponse other) { 1648public bool Equals(StreamingInputCallRequest other) { 1886public bool Equals(StreamingInputCallResponse other) { 2118public bool Equals(ResponseParameters other) { 2421public bool Equals(StreamingOutputCallRequest other) { 2697public bool Equals(StreamingOutputCallResponse other) { 2900public bool Equals(ReconnectParams other) { 3107public bool Equals(ReconnectInfo other) {
Metrics (27)
src\Compilers\Core\Portable\Collections\BitVector.cs (1)
41public bool Equals(BitVector other)
src\Compilers\Core\Portable\FileSystem\RelativePathResolver.cs (1)
60public bool Equals(RelativePathResolver? other) =>
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
309public bool Equals(ImmutableSegmentedDictionary<TKey, TValue> other)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
322public bool Equals(ImmutableSegmentedHashSet<T> other)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
596public bool Equals(ImmutableSegmentedList<T> other)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
186public bool Equals(SegmentedArray<T> other)
src\Dependencies\Contracts\Index.cs (1)
133public bool Equals(Index other) => _value == other._value;
src\Dependencies\Contracts\Range.cs (1)
53public bool Equals(Range other) => other.Start.Equals(Start) && other.End.Equals(End);
src\Dependencies\Threading\VoidResult.cs (1)
22public bool Equals(VoidResult other)
src\RoslynAnalyzers\Utilities\Compiler\Options\OptionKey.cs (1)
54public bool Equals(OptionKey other)
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
255public bool Equals(SymbolNamesWithValueOption<TValue>? other)
src\RoslynAnalyzers\Utilities\Compiler\Options\Unit.cs (1)
28public readonly bool Equals(Unit other) => true;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeGeneration\ParameterName.cs (1)
66public bool Equals(ParameterName other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (1)
237public bool Equals(CodeStyleOption2<T>? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\Section.cs (1)
170public bool Equals(Section? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolUsageInfo.cs (1)
55public bool Equals(SymbolUsageInfo other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenData.cs (1)
44public bool Equals(TokenData other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingRule.cs (1)
21public bool Equals(NamingRule other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
368public bool Equals(NamingStylePreferences? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (2)
191public bool Equals(SymbolSpecification other) 550public bool Equals(ModifierKind other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\Option2.cs (1)
95public bool Equals(IOption2? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (1)
74public bool Equals(OptionDefinition? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\PerLanguageOption2.cs (1)
83public bool Equals(IOption2? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
356public readonly bool Equals(SymbolKey other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\InterceptsLocationUtilities.cs (1)
22public readonly bool Equals(InterceptsLocationData other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
157public bool Equals(SyntaxPath? other)
Metrics.Legacy (27)
src\Compilers\Core\Portable\Collections\BitVector.cs (1)
41public bool Equals(BitVector other)
src\Compilers\Core\Portable\FileSystem\RelativePathResolver.cs (1)
60public bool Equals(RelativePathResolver? other) =>
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
309public bool Equals(ImmutableSegmentedDictionary<TKey, TValue> other)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
322public bool Equals(ImmutableSegmentedHashSet<T> other)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
596public bool Equals(ImmutableSegmentedList<T> other)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
186public bool Equals(SegmentedArray<T> other)
src\Dependencies\Contracts\Index.cs (1)
133public bool Equals(Index other) => _value == other._value;
src\Dependencies\Contracts\Range.cs (1)
53public bool Equals(Range other) => other.Start.Equals(Start) && other.End.Equals(End);
src\Dependencies\Threading\VoidResult.cs (1)
22public bool Equals(VoidResult other)
src\RoslynAnalyzers\Utilities\Compiler\Options\OptionKey.cs (1)
54public bool Equals(OptionKey other)
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
255public bool Equals(SymbolNamesWithValueOption<TValue>? other)
src\RoslynAnalyzers\Utilities\Compiler\Options\Unit.cs (1)
28public readonly bool Equals(Unit other) => true;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeGeneration\ParameterName.cs (1)
66public bool Equals(ParameterName other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (1)
237public bool Equals(CodeStyleOption2<T>? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\Section.cs (1)
170public bool Equals(Section? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolUsageInfo.cs (1)
55public bool Equals(SymbolUsageInfo other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenData.cs (1)
44public bool Equals(TokenData other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingRule.cs (1)
21public bool Equals(NamingRule other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
368public bool Equals(NamingStylePreferences? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (2)
191public bool Equals(SymbolSpecification other) 550public bool Equals(ModifierKind other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\Option2.cs (1)
95public bool Equals(IOption2? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (1)
74public bool Equals(OptionDefinition? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\PerLanguageOption2.cs (1)
83public bool Equals(IOption2? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
356public readonly bool Equals(SymbolKey other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\InterceptsLocationUtilities.cs (1)
22public readonly bool Equals(InterceptsLocationData other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
157public bool Equals(SyntaxPath? other)
Microsoft.Analyzers.Local (1)
ApiLifecycle\Json\JsonValue.cs (1)
565public bool Equals(JsonValue other)
Microsoft.AspNetCore.Antiforgery (1)
Internal\BinaryBlob.cs (1)
53public bool Equals(BinaryBlob? other)
Microsoft.AspNetCore.App.Analyzers (4)
Infrastructure\EmbeddedSyntax\EmbeddedDiagnostic.cs (1)
26public bool Equals(EmbeddedDiagnostic other)
Infrastructure\VirtualChars\VirtualChar.cs (1)
120public bool Equals(VirtualChar other)
Mvc\DetectAmbiguousActionRoutes.cs (1)
139public bool Equals(ActionRouteGroupKey other)
RouteHandlers\DetectAmbiguousRoutes.cs (1)
170public bool Equals(MapOperationGroupKey other)
Microsoft.AspNetCore.Components (2)
Routing\RouteKey.cs (1)
24public bool Equals(RouteKey other)
src\Components\Shared\src\RootTypeCache.cs (1)
81public bool Equals(Key other) => string.Equals(Assembly, other.Assembly, StringComparison.Ordinal) &&
Microsoft.AspNetCore.Components.Endpoints (4)
Discovery\ComponentBuilder.cs (1)
33public bool Equals(ComponentBuilder? other)
Discovery\PageComponentBuilder.cs (1)
60public bool Equals(PageComponentBuilder? other)
FormMapping\FormKey.cs (1)
17public readonly bool Equals(FormKey other) =>
src\Shared\Components\ComponentMarker.cs (1)
141public readonly bool Equals(ComponentMarkerKey other)
Microsoft.AspNetCore.Components.Endpoints.Tests (2)
Binding\FormDataMapperTests.cs (2)
2276public bool Equals(Point other) => other is not null && X == other.X && Y == other.Y; 2324public bool Equals(ValuePoint other) => X == other.X && Y == other.Y;
Microsoft.AspNetCore.Components.Forms (1)
FieldIdentifier.cs (1)
89public bool Equals(FieldIdentifier otherIdentifier)
Microsoft.AspNetCore.Components.Forms.Tests (2)
EditContextTest.cs (1)
343public bool Equals(EquatableModel other)
FieldIdentifierTest.cs (1)
294public bool Equals(EquatableModel other)
Microsoft.AspNetCore.Components.Server (6)
Circuits\CircuitId.cs (1)
30public bool Equals(CircuitId other)
src\Components\Shared\src\ComponentParametersTypeCache.cs (1)
76public bool Equals(Key other) => string.Equals(Assembly, other.Assembly, StringComparison.Ordinal) &&
src\Components\Shared\src\RootTypeCache.cs (1)
81public bool Equals(Key other) => string.Equals(Assembly, other.Assembly, StringComparison.Ordinal) &&
src\Shared\Components\ComponentMarker.cs (1)
141public readonly bool Equals(ComponentMarkerKey other)
src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\ExtensionHeader.cs (1)
31public bool Equals(ExtensionHeader other) => this.TypeCode == other.TypeCode && this.Length == other.Length;
src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\Nil.cs (1)
28public bool Equals(Nil other)
Microsoft.AspNetCore.Components.WebAssembly (3)
src\Components\Shared\src\ComponentParametersTypeCache.cs (1)
76public bool Equals(Key other) => string.Equals(Assembly, other.Assembly, StringComparison.Ordinal) &&
src\Components\Shared\src\RootTypeCache.cs (1)
81public bool Equals(Key other) => string.Equals(Assembly, other.Assembly, StringComparison.Ordinal) &&
src\Shared\Components\ComponentMarker.cs (1)
141public readonly bool Equals(ComponentMarkerKey other)
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (18)
artifacts\obj\Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests\Release\net10.0\Proto\Httpbody.cs (2)
123public bool Equals(HttpBodySubField other) { 346public bool Equals(HelloWorldRequest other) {
artifacts\obj\Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests\Release\net10.0\Proto\Issue045270\Hello.cs (2)
125public bool Equals(SayRequest other) { 352public bool Equals(SayResponse other) {
artifacts\obj\Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests\Release\net10.0\Proto\Issue047349\Message.cs (1)
129public bool Equals(Issue047349Message other) {
artifacts\obj\Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests\Release\net10.0\Proto\Issue048192\Customhttp.cs (3)
147public bool Equals(Http other) { 895public bool Equals(HttpRule other) { 1331public bool Equals(CustomHttpPattern other) {
artifacts\obj\Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests\Release\net10.0\Proto\Issue048192\Hello.cs (2)
109public bool Equals(SayRequest other) { 299public bool Equals(SayResponse other) {
artifacts\obj\Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests\Release\net10.0\Proto\Transcoding.cs (8)
606public bool Equals(HelloRequest other) { 1432public bool Equals(SubMessage other) { 1844public bool Equals(DataTypes other) { 2441public bool Equals(NestedMessage other) { 2758public bool Equals(Wrappers other) { 3252public bool Equals(HelloReply other) { 3567public bool Equals(SubMessage other) { 3776public bool Equals(NullValueContainer other) {
Microsoft.AspNetCore.Grpc.Microbenchmarks (3)
artifacts\obj\Microsoft.AspNetCore.Grpc.Microbenchmarks\Release\net10.0\Proto\Chat.cs (1)
122public bool Equals(ChatMessage other) {
artifacts\obj\Microsoft.AspNetCore.Grpc.Microbenchmarks\Release\net10.0\Proto\Greet.cs (2)
113public bool Equals(HelloRequest other) { 319public bool Equals(HelloReply other) {
Microsoft.AspNetCore.Grpc.Swagger.Tests (35)
artifacts\obj\Microsoft.AspNetCore.Grpc.Swagger.Tests\Release\net10.0\Proto\Body.cs (3)
145public bool Equals(RequestOne other) { 372public bool Equals(RequestBody other) { 562public bool Equals(BodyParamResponse other) {
artifacts\obj\Microsoft.AspNetCore.Grpc.Swagger.Tests\Release\net10.0\Proto\Counter.cs (2)
122public bool Equals(CountRequest other) { 336public bool Equals(CountReply other) {
artifacts\obj\Microsoft.AspNetCore.Grpc.Swagger.Tests\Release\net10.0\Proto\Greeter.cs (2)
114public bool Equals(HelloRequest other) { 310public bool Equals(HelloReply other) {
artifacts\obj\Microsoft.AspNetCore.Grpc.Swagger.Tests\Release\net10.0\Proto\Messages.cs (13)
231public bool Equals(HelloRequest other) { 549public bool Equals(SubMessage other) { 961public bool Equals(DataTypes other) { 1558public bool Equals(NestedMessage other) { 1875public bool Equals(Wrappers other) { 2328public bool Equals(HelloReply other) { 2534public bool Equals(StringWrapper other) { 2730public bool Equals(RecursiveMessage other) { 2944public bool Equals(BytesMessage other) { 3164public bool Equals(EnumMessage other) { 3524public bool Equals(OneOfMessage other) { 3795public bool Equals(MapMessage other) { 3975public bool Equals(FieldMaskMessage other) {
artifacts\obj\Microsoft.AspNetCore.Grpc.Swagger.Tests\Release\net10.0\Proto\Parameters.cs (8)
174public bool Equals(RequestOne other) { 427public bool Equals(RequestTwo other) { 727public bool Equals(RequestThree other) { 950public bool Equals(RequestFour other) { 1214public bool Equals(Nested other) { 1503public bool Equals(RequestFive other) { 1762public bool Equals(RequestBody other) { 1952public bool Equals(ParamResponse other) {
artifacts\obj\Microsoft.AspNetCore.Grpc.Swagger.Tests\Release\net10.0\Proto\Responsebody.cs (3)
127public bool Equals(Request other) { 331public bool Equals(BodyParamResponse other) { 579public bool Equals(BodyMessage other) {
artifacts\obj\Microsoft.AspNetCore.Grpc.Swagger.Tests\Release\net10.0\Proto\Xmldoc.cs (4)
127public bool Equals(StringRequest other) { 339public bool Equals(StringRequestWithDetail other) { 571public bool Equals(Detail other) { 772public bool Equals(StringReply other) {
Microsoft.AspNetCore.HeaderParsing (1)
HostHeaderValue.cs (1)
93public bool Equals(HostHeaderValue other) => Host.Equals(other.Host, StringComparison.Ordinal) && Port == other.Port;
Microsoft.AspNetCore.Html.Abstractions.Tests (1)
HtmlContentBuilderTest.cs (1)
267public bool Equals(TestHtmlContent? other)
Microsoft.AspNetCore.Http.Abstractions (6)
FragmentString.cs (1)
111public bool Equals(FragmentString other)
HostString.cs (1)
281public bool Equals(HostString other)
Internal\HeaderSegment.cs (1)
32public bool Equals(HeaderSegment other)
Internal\HeaderSegmentCollection.cs (1)
18public bool Equals(HeaderSegmentCollection other)
PathString.cs (1)
383public bool Equals(PathString other)
QueryString.cs (1)
214public bool Equals(QueryString other)
Microsoft.AspNetCore.Http.Extensions (1)
src\Components\Endpoints\src\FormMapping\FormKey.cs (1)
17public readonly bool Equals(FormKey other) =>
Microsoft.AspNetCore.Identity (1)
Passkeys\BufferSource.cs (1)
70public bool Equals(BufferSource? other)
Microsoft.AspNetCore.Mvc.Abstractions (5)
ModelBinding\BindingSource.cs (1)
206public bool Equals(BindingSource? other)
ModelBinding\Metadata\ModelMetadataIdentity.cs (1)
180public bool Equals(ModelMetadataIdentity other)
ModelBinding\ModelBindingResult.cs (1)
73public bool Equals(ModelBindingResult other)
ModelBinding\ModelMetadata.cs (1)
712public bool Equals(ModelMetadata? other)
ModelBinding\ValueProviderResult.cs (1)
95public bool Equals(ValueProviderResult other)
Microsoft.AspNetCore.Mvc.Core (3)
Formatters\MediaType.cs (1)
462public bool Equals(MediaTypeParameter other)
ModelBinding\ModelBinderFactory.cs (1)
291public bool Equals(Key other)
src\Shared\MediaType\ReadOnlyMediaTypeHeaderValue.cs (1)
614public bool Equals(MediaTypeParameter other)
Microsoft.AspNetCore.Mvc.Core.Test (4)
Controllers\ControllerBinderDelegateProviderTest.cs (2)
1392public bool Equals(Person other) 1397bool IEquatable<object>.Equals(object obj)
ModelBinding\ParameterBinderTest.cs (2)
816public bool Equals(Person other) 821bool IEquatable<object>.Equals(object obj)
Microsoft.AspNetCore.Mvc.IntegrationTests (1)
HeaderModelBinderIntegrationTest.cs (1)
490public bool Equals(OrderWithTypeConverter other)
Microsoft.AspNetCore.Mvc.Razor (2)
RazorPageActivator.cs (1)
116public bool Equals(CacheKey other)
ViewLocationCacheKey.cs (1)
85public bool Equals(ViewLocationCacheKey y)
Microsoft.AspNetCore.Mvc.TagHelpers (2)
Cache\CacheTagKey.cs (1)
197public bool Equals(CacheTagKey other)
GlobbingUrlBuilder.cs (1)
350public bool Equals(GlobbingUrlKey other)
Microsoft.AspNetCore.ResponseCompression (1)
ResponseCompressionProvider.cs (1)
278public bool Equals(ProviderCandidate other)
Microsoft.AspNetCore.Routing (4)
Matching\HostMatcherPolicy.cs (1)
440public bool Equals(EdgeKey other)
Matching\HttpMethodMatcherPolicy.cs (1)
472public bool Equals(EdgeKey other)
Matching\PathSegment.cs (1)
22public bool Equals(PathSegment other)
src\Shared\MediaType\ReadOnlyMediaTypeHeaderValue.cs (1)
614public bool Equals(MediaTypeParameter other)
Microsoft.AspNetCore.Shared.Tests (1)
ClosedGenericMatcherTest.cs (1)
283public bool Equals(BaseClass other)
Microsoft.AspNetCore.SignalR.Common.Tests (1)
Internal\Protocol\CustomObject.cs (1)
34public bool Equals(CustomObject right)
Microsoft.Build (19)
AssemblyLoadInfo.cs (1)
75public bool Equals(AssemblyLoadInfo other)
AssemblyNameExtension.cs (1)
660bool IEquatable<AssemblyNameExtension>.Equals(AssemblyNameExtension other)
BackEnd\Components\RequestBuilder\TargetEntry.cs (1)
321public bool Equals(TargetEntry other)
BackEnd\Shared\BuildRequestConfiguration.cs (1)
903public bool Equals(BuildRequestConfiguration other)
BackEnd\Shared\ConfigurationMetadata.cs (1)
144public bool Equals(ConfigurationMetadata other)
BuildCheck\Checks\NoEnvironmentVariablePropertyCheck.cs (1)
110public bool Equals(EnvironmentVariableIdentityKey? other) =>
Collections\CopyOnWritePropertyDictionary.cs (2)
162public bool Equals(CopyOnWritePropertyDictionary<T> other) 208public bool Equals(ICopyOnWritePropertyDictionary<T> other)
Collections\PropertyDictionary.cs (1)
267public bool Equals(PropertyDictionary<T> other)
Definition\ProjectMetadata.cs (1)
278bool IEquatable<ProjectMetadata>.Equals(ProjectMetadata other)
Definition\ProjectProperty.cs (1)
253bool IEquatable<ProjectProperty>.Equals(ProjectProperty other)
Graph\ProjectGraph.cs (1)
876public readonly bool Equals(ProjectGraphBuildRequest other)
Instance\HostServices.cs (1)
504public bool Equals(TargetTaskKey other)
Instance\ImmutableProjectCollections\ImmutablePropertyCollectionConverter.cs (1)
37public bool Equals(ICopyOnWritePropertyDictionary<T>? other)
Instance\ProjectItemInstance.cs (1)
1614public bool Equals(TaskItem other)
Instance\ProjectMetadataInstance.cs (1)
195bool IEquatable<ProjectMetadataInstance>.Equals(ProjectMetadataInstance other)
Instance\ProjectPropertyInstance.cs (1)
149bool IEquatable<ProjectPropertyInstance>.Equals(ProjectPropertyInstance other)
Logging\BinaryLogger\BuildEventArgsWriter.cs (1)
1358public bool Equals(HashKey other)
Utilities\SimpleVersion.cs (1)
77public bool Equals(SimpleVersion other)
Microsoft.Build.Engine.UnitTests (2)
Collections\CopyOnWritePropertyDictionary_Tests.cs (2)
209public bool Equals(MockValue? other) 214public new bool Equals(object? other)
Microsoft.Build.Framework (5)
ImmutableSegmentedDictionary`2.cs (1)
316public bool Equals(ImmutableSegmentedDictionary<TKey, TValue> other)
ImmutableSegmentedList`1.cs (1)
594public bool Equals(ImmutableSegmentedList<T> other)
Sdk\SdkReference.cs (1)
54public bool Equals(SdkReference other)
SegmentedArray`1.cs (1)
187public bool Equals(SegmentedArray<T> other)
Telemetry\TaskOrTargetTelemetryKey.cs (1)
93public bool Equals(TaskOrTargetTelemetryKey other)
Microsoft.Build.Tasks.CodeAnalysis.Sdk (2)
src\Dependencies\Contracts\Index.cs (1)
133public bool Equals(Index other) => _value == other._value;
src\Dependencies\Contracts\Range.cs (1)
53public bool Equals(Range other) => other.Start.Equals(Start) && other.End.Equals(End);
Microsoft.Build.Tasks.Core (6)
AssemblyNameExtension.cs (1)
660bool IEquatable<AssemblyNameExtension>.Equals(AssemblyNameExtension other)
AssemblyRemapping.cs (1)
59public bool Equals(AssemblyRemapping other)
GetSDKReferenceFiles.cs (2)
781public bool Equals(ResolvedReferenceAssembly other) 860public bool Equals(ResolvedRedistFile other)
ResolveSDKReference.cs (1)
963public bool Equals(SDKReference other)
RoslynCodeTaskFactory\RoslynCodeTaskFactoryTaskInfo.cs (1)
44public bool Equals(RoslynCodeTaskFactoryTaskInfo other)
Microsoft.Build.Utilities.Core (1)
TargetPlatformSDK.cs (1)
169public bool Equals(TargetPlatformSDK other)
Microsoft.Cci.Extensions (2)
Mappings\AssemblyMapping.cs (1)
113public bool Equals(AssemblyProperty other)
Mappings\AttributesMapping.cs (1)
90public bool Equals(AttributeGroup that)
Microsoft.CodeAnalysis (81)
CodeGen\LocalDebugId.cs (1)
66public bool Equals(LocalDebugId other)
CodeGen\LocalSlotDebugInfo.cs (1)
21public bool Equals(LocalSlotDebugInfo other)
CodeGen\LocalSlotManager.cs (1)
47public bool Equals(LocalSignature other)
Collections\BitVector.cs (1)
41public bool Equals(BitVector other)
CommandLine\CommandLineAnalyzerReference.cs (1)
40public bool Equals(CommandLineAnalyzerReference other)
CommandLine\CommandLineReference.cs (1)
48public bool Equals(CommandLineReference other)
CommandLine\CommonCompiler.ExistingReferencesResolver.cs (1)
75public bool Equals(ExistingReferencesResolver? other)
CommandLine\CommonCompiler.LoggingMetadataFileReferenceResolver.cs (1)
47public bool Equals(LoggingMetadataFileReferenceResolver? other)
Compilation\LoadDirective.cs (1)
28public bool Equals(LoadDirective other)
Compilation\PreprocessingSymbolInfo.cs (1)
31public bool Equals(PreprocessingSymbolInfo other)
Compilation\SubsystemVersion.cs (1)
198public bool Equals(SubsystemVersion other)
Compilation\SymbolInfo.cs (1)
86public bool Equals(SymbolInfo other)
Compilation\TypeInfo.cs (1)
51public bool Equals(TypeInfo other)
ConstantValue.cs (1)
864public virtual bool Equals(ConstantValue? other)
Desktop\AssemblyPortabilityPolicy.cs (1)
37public bool Equals(AssemblyPortabilityPolicy other)
Desktop\AssemblyVersion.cs (1)
58public bool Equals(AssemblyVersion other)
Desktop\DesktopAssemblyIdentityComparer.Fx.cs (1)
65public bool Equals(Key other)
Diagnostic\Diagnostic.cs (1)
429public abstract bool Equals(Diagnostic? obj);
Diagnostic\DiagnosticDescriptor.cs (1)
195public bool Equals(DiagnosticDescriptor? other)
Diagnostic\ExternalFileLocation.cs (1)
64public bool Equals(ExternalFileLocation? obj)
Diagnostic\FileLinePositionSpan.cs (1)
99public bool Equals(FileLinePositionSpan other)
Diagnostic\LocalizableString.cs (1)
83public bool Equals(LocalizableString? other)
Diagnostic\MetadataLocation.cs (1)
45public bool Equals(MetadataLocation? other)
Diagnostic\ProgrammaticSuppressionInfo.cs (1)
23public bool Equals(ProgrammaticSuppressionInfo? other)
Diagnostic\SourceLocation.cs (1)
108public bool Equals(SourceLocation? other)
Diagnostic\SuppressionDescriptor.cs (1)
73public bool Equals(SuppressionDescriptor? other)
Diagnostic\XmlLocation.cs (1)
61public bool Equals(XmlLocation? other)
DiagnosticAnalyzer\AnalyzerFileReference.cs (1)
86public bool Equals(AnalyzerReference? other)
DiagnosticAnalyzer\SourceOrAdditionalFile.cs (1)
36public bool Equals(SourceOrAdditionalFile other)
DiagnosticAnalyzer\Suppression.cs (1)
70public bool Equals(Suppression other)
Emit\AnonymousTypeKey.cs (2)
42public bool Equals(AnonymousTypeKeyField other) 74public bool Equals(AnonymousTypeKey other)
Emit\EditAndContinue\EmitBaseline.cs (1)
47public bool Equals(MethodImplKey other)
Emit\EditAndContinue\EncHoistedLocalInfo.cs (1)
33public bool Equals(EncHoistedLocalInfo other)
Emit\EditAndContinue\EncLocalInfo.cs (1)
44public bool Equals(EncLocalInfo other)
Emit\EmitOptions.cs (1)
280public bool Equals(EmitOptions? other)
Emit\SemanticEdit.cs (1)
229public bool Equals(SemanticEdit other)
Emit\SynthesizedDelegateKey.cs (1)
21public bool Equals(SynthesizedDelegateKey other)
FileKey.cs (1)
60public bool Equals(FileKey other)
FileSystem\RelativePathResolver.cs (1)
60public bool Equals(RelativePathResolver? other) =>
IReferenceOrISignature.cs (1)
30public bool Equals(IReferenceOrISignature other) => ReferenceEquals(_item, other._item);
MetadataReader\MetadataTypeName.Key.cs (1)
65public bool Equals(Key other)
MetadataReference\AssemblyIdentity.cs (1)
389public bool Equals(AssemblyIdentity? obj)
MetadataReference\CompilationReference.cs (1)
117public bool Equals(CompilationReference? other)
MetadataReference\MetadataReferenceProperties.cs (1)
164public bool Equals(MetadataReferenceProperties other)
Operations\CaptureId.cs (1)
26public bool Equals(CaptureId other) => Value == other.Value;
PEWriter\Units.cs (1)
58public bool Equals(DefinitionWithLocation other)
PEWriter\UsedNamespaceOrType.cs (1)
66public bool Equals(UsedNamespaceOrType other)
SourceFileResolver.cs (1)
135public bool Equals(SourceFileResolver? other)
SourceGeneration\GlobalAliases.cs (1)
79public bool Equals(GlobalAliases? aliases)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
309public bool Equals(ImmutableSegmentedDictionary<TKey, TValue> other)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
322public bool Equals(ImmutableSegmentedHashSet<T> other)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
596public bool Equals(ImmutableSegmentedList<T> other)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
186public bool Equals(SegmentedArray<T> other)
Symbols\Attributes\AttributeUsageInfo.cs (1)
126public bool Equals(AttributeUsageInfo other)
Symbols\NullabilityInfo.cs (1)
42public bool Equals(NullabilityInfo other) =>
Symbols\TypedConstant.cs (1)
205public bool Equals(TypedConstant other)
Symbols\TypedConstantValue.cs (1)
72public bool Equals(TypedConstantValue other)
Symbols\TypeLayout.cs (1)
61public bool Equals(TypeLayout other)
Syntax\ChildSyntaxList.cs (1)
456public bool Equals(ChildSyntaxList other)
Syntax\ChildSyntaxList.Reversed.cs (1)
64public bool Equals(Reversed other)
Syntax\InternalSyntax\SeparatedSyntaxList.cs (1)
88public bool Equals(SeparatedSyntaxList<TNode> other)
Syntax\InternalSyntax\SyntaxList`1.cs (1)
146public bool Equals(SyntaxList<TNode> other)
Syntax\LineMapping.cs (1)
50public bool Equals(LineMapping other)
Syntax\SeparatedSyntaxList.cs (1)
345public bool Equals(SeparatedSyntaxList<TNode> other)
Syntax\SyntaxAnnotation.cs (1)
54public bool Equals(SyntaxAnnotation? other)
Syntax\SyntaxList`1.cs (1)
471public bool Equals(SyntaxList<TNode> other)
Syntax\SyntaxNodeOrToken.cs (1)
700public bool Equals(SyntaxNodeOrToken other)
Syntax\SyntaxNodeOrTokenList.cs (1)
506public bool Equals(SyntaxNodeOrTokenList other)
Syntax\SyntaxToken.cs (1)
553public bool Equals(SyntaxToken other)
Syntax\SyntaxTokenList.cs (1)
496public bool Equals(SyntaxTokenList other)
Syntax\SyntaxTokenList.Reversed.cs (1)
60public bool Equals(Reversed other)
Syntax\SyntaxTrivia.cs (1)
269public bool Equals(SyntaxTrivia other)
Syntax\SyntaxTriviaList.cs (1)
463public bool Equals(SyntaxTriviaList other)
Syntax\SyntaxTriviaList.Reversed.cs (1)
65public bool Equals(Reversed other)
Text\LinePosition.cs (1)
105public bool Equals(LinePosition other)
Text\LinePositionSpan.cs (1)
61public bool Equals(LinePositionSpan other)
Text\TextChange.cs (1)
63public bool Equals(TextChange other)
Text\TextChangeRange.cs (1)
51public bool Equals(TextChangeRange other)
Text\TextLine.cs (1)
193public bool Equals(TextLine other)
Text\TextSpan.cs (1)
219public bool Equals(TextSpan other)
Microsoft.CodeAnalysis.Analyzers (28)
src\Compilers\Core\Portable\Collections\BitVector.cs (1)
41public bool Equals(BitVector other)
src\Compilers\Core\Portable\FileSystem\RelativePathResolver.cs (1)
60public bool Equals(RelativePathResolver? other) =>
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
309public bool Equals(ImmutableSegmentedDictionary<TKey, TValue> other)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
322public bool Equals(ImmutableSegmentedHashSet<T> other)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
596public bool Equals(ImmutableSegmentedList<T> other)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
186public bool Equals(SegmentedArray<T> other)
src\Dependencies\Contracts\Index.cs (1)
133public bool Equals(Index other) => _value == other._value;
src\Dependencies\Contracts\Range.cs (1)
53public bool Equals(Range other) => other.Start.Equals(Start) && other.End.Equals(End);
src\Dependencies\Threading\VoidResult.cs (1)
22public bool Equals(VoidResult other)
src\RoslynAnalyzers\Utilities\Compiler\Options\OptionKey.cs (1)
54public bool Equals(OptionKey other)
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
255public bool Equals(SymbolNamesWithValueOption<TValue>? other)
src\RoslynAnalyzers\Utilities\Compiler\Options\Unit.cs (1)
28public readonly bool Equals(Unit other) => true;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeGeneration\ParameterName.cs (1)
66public bool Equals(ParameterName other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (1)
237public bool Equals(CodeStyleOption2<T>? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\Section.cs (1)
170public bool Equals(Section? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolUsageInfo.cs (1)
55public bool Equals(SymbolUsageInfo other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenData.cs (1)
44public bool Equals(TokenData other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingRule.cs (1)
21public bool Equals(NamingRule other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
368public bool Equals(NamingStylePreferences? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (2)
191public bool Equals(SymbolSpecification other) 550public bool Equals(ModifierKind other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\Option2.cs (1)
95public bool Equals(IOption2? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (1)
74public bool Equals(OptionDefinition? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\PerLanguageOption2.cs (1)
83public bool Equals(IOption2? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
356public readonly bool Equals(SymbolKey other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\InterceptsLocationUtilities.cs (1)
22public readonly bool Equals(InterceptsLocationData other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
157public bool Equals(SyntaxPath? other)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (1)
217public bool Equals(ISymbol other)
Microsoft.CodeAnalysis.AnalyzerUtilities (36)
src\Compilers\Core\Portable\Collections\BitVector.cs (1)
41public bool Equals(BitVector other)
src\Compilers\Core\Portable\FileSystem\RelativePathResolver.cs (1)
60public bool Equals(RelativePathResolver? other) =>
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
309public bool Equals(ImmutableSegmentedDictionary<TKey, TValue> other)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
322public bool Equals(ImmutableSegmentedHashSet<T> other)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
596public bool Equals(ImmutableSegmentedList<T> other)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
186public bool Equals(SegmentedArray<T> other)
src\Dependencies\Contracts\Index.cs (1)
133public bool Equals(Index other) => _value == other._value;
src\Dependencies\Contracts\Range.cs (1)
53public bool Equals(Range other) => other.Start.Equals(Start) && other.End.Equals(End);
src\Dependencies\Threading\VoidResult.cs (1)
22public bool Equals(VoidResult other)
src\RoslynAnalyzers\Utilities\Compiler\Options\OptionKey.cs (1)
54public bool Equals(OptionKey other)
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
255public bool Equals(SymbolNamesWithValueOption<TValue>? other)
src\RoslynAnalyzers\Utilities\Compiler\Options\Unit.cs (1)
28public readonly bool Equals(Unit other) => true;
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\SanitizerInfo.cs (1)
100public bool Equals(SanitizerInfo other)
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\SinkInfo.cs (1)
90public bool Equals(SinkInfo other)
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\SourceInfo.cs (1)
215public bool Equals(SourceInfo other)
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\TaintedDataSymbolMap.cs (1)
151public bool Equals(TaintedDataSymbolMap<TInfo>? other)
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\CacheBasedEquatable.cs (1)
45public bool Equals(T? other)
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\ConversionInference.cs (1)
58public readonly bool Equals(ConversionInference other)
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\InterproceduralAnalysisConfiguration.cs (1)
129public readonly bool Equals(InterproceduralAnalysisConfiguration other)
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\InterproceduralCaptureId.cs (1)
28public bool Equals(InterproceduralCaptureId other)
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\ThrownExceptionInfo.cs (1)
94public bool Equals(ThrownExceptionInfo? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeGeneration\ParameterName.cs (1)
66public bool Equals(ParameterName other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (1)
237public bool Equals(CodeStyleOption2<T>? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\Section.cs (1)
170public bool Equals(Section? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolUsageInfo.cs (1)
55public bool Equals(SymbolUsageInfo other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenData.cs (1)
44public bool Equals(TokenData other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingRule.cs (1)
21public bool Equals(NamingRule other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
368public bool Equals(NamingStylePreferences? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (2)
191public bool Equals(SymbolSpecification other) 550public bool Equals(ModifierKind other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\Option2.cs (1)
95public bool Equals(IOption2? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (1)
74public bool Equals(OptionDefinition? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\PerLanguageOption2.cs (1)
83public bool Equals(IOption2? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
356public readonly bool Equals(SymbolKey other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\InterceptsLocationUtilities.cs (1)
22public readonly bool Equals(InterceptsLocationData other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
157public bool Equals(SyntaxPath? other)
Microsoft.CodeAnalysis.BannedApiAnalyzers (28)
src\Compilers\Core\Portable\Collections\BitVector.cs (1)
41public bool Equals(BitVector other)
src\Compilers\Core\Portable\FileSystem\RelativePathResolver.cs (1)
60public bool Equals(RelativePathResolver? other) =>
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
309public bool Equals(ImmutableSegmentedDictionary<TKey, TValue> other)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
322public bool Equals(ImmutableSegmentedHashSet<T> other)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
596public bool Equals(ImmutableSegmentedList<T> other)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
186public bool Equals(SegmentedArray<T> other)
src\Dependencies\Contracts\Index.cs (1)
133public bool Equals(Index other) => _value == other._value;
src\Dependencies\Contracts\Range.cs (1)
53public bool Equals(Range other) => other.Start.Equals(Start) && other.End.Equals(End);
src\Dependencies\Threading\VoidResult.cs (1)
22public bool Equals(VoidResult other)
src\RoslynAnalyzers\Utilities\Compiler\Options\OptionKey.cs (1)
54public bool Equals(OptionKey other)
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
255public bool Equals(SymbolNamesWithValueOption<TValue>? other)
src\RoslynAnalyzers\Utilities\Compiler\Options\Unit.cs (1)
28public readonly bool Equals(Unit other) => true;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeGeneration\ParameterName.cs (1)
66public bool Equals(ParameterName other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (1)
237public bool Equals(CodeStyleOption2<T>? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\Section.cs (1)
170public bool Equals(Section? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolUsageInfo.cs (1)
55public bool Equals(SymbolUsageInfo other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenData.cs (1)
44public bool Equals(TokenData other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingRule.cs (1)
21public bool Equals(NamingRule other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
368public bool Equals(NamingStylePreferences? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (2)
191public bool Equals(SymbolSpecification other) 550public bool Equals(ModifierKind other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\Option2.cs (1)
95public bool Equals(IOption2? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (1)
74public bool Equals(OptionDefinition? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\PerLanguageOption2.cs (1)
83public bool Equals(IOption2? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
356public readonly bool Equals(SymbolKey other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\InterceptsLocationUtilities.cs (1)
22public readonly bool Equals(InterceptsLocationData other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
157public bool Equals(SyntaxPath? other)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (1)
217public bool Equals(ISymbol other)
Microsoft.CodeAnalysis.CodeStyle (24)
src\Compilers\Core\Portable\Collections\BitVector.cs (1)
41public bool Equals(BitVector other)
src\Compilers\Core\Portable\FileSystem\RelativePathResolver.cs (1)
60public bool Equals(RelativePathResolver? other) =>
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
309public bool Equals(ImmutableSegmentedDictionary<TKey, TValue> other)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
322public bool Equals(ImmutableSegmentedHashSet<T> other)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
596public bool Equals(ImmutableSegmentedList<T> other)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
186public bool Equals(SegmentedArray<T> other)
src\Dependencies\Contracts\Index.cs (1)
133public bool Equals(Index other) => _value == other._value;
src\Dependencies\Contracts\Range.cs (1)
53public bool Equals(Range other) => other.Start.Equals(Start) && other.End.Equals(End);
src\Dependencies\Threading\VoidResult.cs (1)
22public bool Equals(VoidResult other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeGeneration\ParameterName.cs (1)
66public bool Equals(ParameterName other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (1)
237public bool Equals(CodeStyleOption2<T>? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\Section.cs (1)
170public bool Equals(Section? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolUsageInfo.cs (1)
55public bool Equals(SymbolUsageInfo other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenData.cs (1)
44public bool Equals(TokenData other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingRule.cs (1)
21public bool Equals(NamingRule other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
368public bool Equals(NamingStylePreferences? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (2)
191public bool Equals(SymbolSpecification other) 550public bool Equals(ModifierKind other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\Option2.cs (1)
95public bool Equals(IOption2? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (1)
74public bool Equals(OptionDefinition? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\PerLanguageOption2.cs (1)
83public bool Equals(IOption2? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
356public readonly bool Equals(SymbolKey other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\InterceptsLocationUtilities.cs (1)
22public readonly bool Equals(InterceptsLocationData other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
157public bool Equals(SyntaxPath? other)
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (1)
217public bool Equals(ISymbol other)
Microsoft.CodeAnalysis.Collections.Package (4)
Segmented\ImmutableSegmentedDictionary`2.cs (1)
309public bool Equals(ImmutableSegmentedDictionary<TKey, TValue> other)
Segmented\ImmutableSegmentedHashSet`1.cs (1)
322public bool Equals(ImmutableSegmentedHashSet<T> other)
Segmented\ImmutableSegmentedList`1.cs (1)
596public bool Equals(ImmutableSegmentedList<T> other)
Segmented\SegmentedArray`1.cs (1)
186public bool Equals(SegmentedArray<T> other)
Microsoft.CodeAnalysis.CSharp (21)
Binder\BinderFactory.cs (1)
31bool IEquatable<BinderCacheKey>.Equals(BinderCacheKey other)
Binder\Semantics\Conversions\Conversion.cs (1)
1181public bool Equals(Conversion other)
Binder\Semantics\Operators\BinaryOperatorSignature.cs (1)
59public bool Equals(BinaryOperatorSignature other)
BoundTree\BoundExpression.cs (1)
723bool System.IEquatable<BoundTypeOrValueData>.Equals(BoundTypeOrValueData b)
Compilation\AwaitExpressionInfo.cs (1)
36public bool Equals(AwaitExpressionInfo other)
Compilation\CSharpCompilation.cs (1)
2828public bool Equals(ImportInfo other)
Compilation\ForEachStatementInfo.cs (1)
89public bool Equals(ForEachStatementInfo other)
Compilation\QueryClauseInfo.cs (1)
56public bool Equals(QueryClauseInfo other)
Compilation\TypeInfo.cs (1)
64public bool Equals(CSharpTypeInfo other)
CSharpCompilationOptions.cs (1)
730public bool Equals(CSharpCompilationOptions? other)
CSharpParseOptions.cs (1)
284public bool Equals(CSharpParseOptions? other)
Declarations\SingleTypeDeclaration.cs (1)
249public bool Equals(TypeDeclarationIdentity other)
FlowAnalysis\DefiniteAssignment.VariableIdentifier.cs (1)
61public bool Equals(VariableIdentifier other)
Symbols\AnonymousTypes\AnonymousTypeDescriptor.cs (1)
62public bool Equals(AnonymousTypeDescriptor desc)
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (1)
65public bool Equals(SynthesizedDelegateKey other)
Symbols\NamespaceExtent.cs (1)
124public bool Equals(NamespaceExtent other)
Symbols\PublicModel\PreprocessingSymbol.cs (1)
50bool IEquatable<ISymbol?>.Equals(ISymbol? other)
Symbols\PublicModel\Symbol.cs (1)
89bool IEquatable<ISymbol>.Equals(ISymbol other)
Symbols\Source\SourceMemberContainerSymbol.cs (1)
2520public bool Equals(ExtensionGroupingKey other)
Symbols\Synthesized\RefKindVector.cs (1)
69public bool Equals(RefKindVector other)
Utilities\InterceptableLocation.cs (1)
44public abstract bool Equals(InterceptableLocation? other);
Microsoft.CodeAnalysis.CSharp.Features (1)
ConvertToExtension\ConvertToExtensionCodeRefactoringProvider.cs (1)
53public bool Equals(ExtensionMethodInfo info)
Microsoft.CodeAnalysis.Debugging.Package (2)
src\Dependencies\Contracts\Index.cs (1)
133public bool Equals(Index other) => _value == other._value;
src\Dependencies\Contracts\Range.cs (1)
53public bool Equals(Range other) => other.Start.Equals(Start) && other.End.Equals(End);
Microsoft.CodeAnalysis.EditorFeatures (12)
Extensibility\NavigationBar\NavigationBarItem.cs (1)
46public bool Equals(NavigationBarItem? other)
Extensibility\NavigationBar\NavigationBarProjectItem.cs (1)
35public bool Equals(NavigationBarProjectItem? item)
Extensibility\NavigationBar\NavigationBarSelectedItems.cs (1)
30public bool Equals(NavigationBarSelectedTypeAndMember? other)
Extensibility\NavigationBar\SimpleNavigationBarItem.cs (1)
17public bool Equals(SimpleNavigationBarItem? other)
Extensibility\NavigationBar\WrappedNavigationBarItem.cs (1)
69public bool Equals(WrappedNavigationBarItem? other)
InlineHints\InlineHintDataTag.cs (1)
47public bool Equals(InlineHintDataTag<TAdditionalInformation>? other)
IntelliSense\QuickInfo\QuickInfoHyperLink.cs (1)
32public bool Equals(QuickInfoHyperLink? other)
NavigationBar\NavigationBarModel.cs (1)
19public bool Equals(NavigationBarModel? other)
Shared\Utilities\VirtualTreePoint.cs (1)
64public bool Equals(VirtualTreePoint other)
StringIndentation\StringIndentationTag.cs (1)
48public bool Equals(StringIndentationTag? other)
Structure\StructureTag.cs (1)
86public bool Equals(StructureTag? other)
Suggestions\SuggestedActions\SuggestedAction.cs (1)
287public bool Equals(ISuggestedAction other)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (4)
ILSpan.cs (1)
28public bool Equals(ILSpan other) => StartOffset == other.StartOffset && EndOffsetExclusive == other.EndOffsetExclusive;
MetadataBlock.cs (1)
43public bool Equals(MetadataBlock other)
MetadataContextId.cs (1)
21public bool Equals(MetadataContextId other)
PDB\MethodDebugInfo.Native.cs (1)
35public bool Equals(LocalNameAndScope other)
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (2)
src\Dependencies\Contracts\Index.cs (1)
133public bool Equals(Index other) => _value == other._value;
src\Dependencies\Contracts\Range.cs (1)
53public bool Equals(Range other) => other.Start.Equals(Start) && other.End.Equals(End);
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (2)
src\Dependencies\Contracts\Index.cs (1)
133public bool Equals(Index other) => _value == other._value;
src\Dependencies\Contracts\Range.cs (1)
53public bool Equals(Range other) => other.Start.Equals(Start) && other.End.Equals(End);
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (3)
Debugger\Engine\DkmClrMethodId.cs (1)
37public bool Equals(DkmClrMethodId other)
src\Dependencies\Contracts\Index.cs (1)
133public bool Equals(Index other) => _value == other._value;
src\Dependencies\Contracts\Range.cs (1)
53public bool Equals(Range other) => other.Start.Equals(Start) && other.End.Equals(End);
Microsoft.CodeAnalysis.Extensions.Package (6)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
309public bool Equals(ImmutableSegmentedDictionary<TKey, TValue> other)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
322public bool Equals(ImmutableSegmentedHashSet<T> other)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
596public bool Equals(ImmutableSegmentedList<T> other)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
186public bool Equals(SegmentedArray<T> other)
src\Dependencies\Contracts\Index.cs (1)
133public bool Equals(Index other) => _value == other._value;
src\Dependencies\Contracts\Range.cs (1)
53public bool Equals(Range other) => other.Start.Equals(Start) && other.End.Equals(End);
Microsoft.CodeAnalysis.ExternalAccess.AspNetCore (1)
EmbeddedLanguages\AspNetCoreVirtualChar.cs (1)
46public bool Equals(AspNetCoreVirtualChar other) => VirtualChar.Equals(other.VirtualChar);
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
FSharpDocumentSpan.cs (1)
36public bool Equals(FSharpDocumentSpan obj)
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (1)
ChecksumWrapper.cs (1)
27public bool Equals(ChecksumWrapper other)
Microsoft.CodeAnalysis.Features (26)
AddImport\References\Reference.cs (1)
67public bool Equals(Reference other)
CodeRefactorings\CodeRefactoringService.cs (1)
307public bool Equals(ProviderKey other)
Completion\Providers\AbstractSymbolCompletionProvider.SymbolAndSelectionInfo.cs (1)
15public bool Equals(SymbolAndSelectionInfo other)
Contracts\EditAndContinue\ManagedInstructionId.cs (1)
39public bool Equals(ManagedInstructionId other)
Contracts\EditAndContinue\ManagedMethodId.cs (1)
47public bool Equals(ManagedMethodId other)
Contracts\EditAndContinue\ManagedModuleMethodId.cs (1)
69public bool Equals(ManagedModuleMethodId other)
Contracts\EditAndContinue\SourceSpan.cs (1)
81public bool Equals(SourceSpan other)
EditAndContinue\DeclarationBody.cs (1)
87public bool Equals(DeclarationBody? other)
EditAndContinue\NonRemappableRegion.cs (1)
37public bool Equals(NonRemappableRegion other)
EditAndContinue\SourceFileSpan.cs (1)
64public bool Equals(SourceFileSpan other)
ExtractMethod\ExtractMethodMatrix.cs (1)
213public bool Equals(Key key)
FindUsages\DefinitionItem.DetachedDefinitionItem.cs (1)
52public bool Equals(DetachedDefinitionItem? other)
FullyQualify\AbstractFullyQualifyService.SymbolResult.cs (1)
37public bool Equals(SymbolResult other)
InheritanceMargin\InheritanceMarginItem.cs (1)
61public bool Equals(InheritanceMarginItem other)
MetadataAsSource\AbstractMetadataAsSourceService.AbstractWrappedSymbol.cs (1)
107public bool Equals(ISymbol other)
MetadataAsSource\DecompilationMetadataAsSourceFileProvider.cs (1)
425public bool Equals(UniqueDocumentKey? other)
NavigationBar\NavigationBarItems\RoslynNavigationBarItem.AbstractGenerateCodeItem.cs (1)
24public bool Equals(AbstractGenerateCodeItem? other)
NavigationBar\NavigationBarItems\RoslynNavigationBarItem.ActionlessItem.cs (1)
30public bool Equals(ActionlessItem? other)
NavigationBar\NavigationBarItems\RoslynNavigationBarItem.cs (1)
48public bool Equals(RoslynNavigationBarItem? other)
NavigationBar\NavigationBarItems\RoslynNavigationBarItem.GenerateDefaultConstructorItem.cs (1)
19public bool Equals(GenerateDefaultConstructor? other)
NavigationBar\NavigationBarItems\RoslynNavigationBarItem.GenerateEventHandlerItem.cs (1)
22public bool Equals(GenerateEventHandler? other)
NavigationBar\NavigationBarItems\RoslynNavigationBarItem.GenerateFinalizerItem.cs (1)
19public bool Equals(GenerateFinalizer? other)
NavigationBar\NavigationBarItems\RoslynNavigationBarItem.GenerateMethodItem.cs (1)
21public bool Equals(GenerateMethod? other)
NavigationBar\NavigationBarItems\RoslynNavigationBarItem.SymbolItem.cs (2)
44public bool Equals(SymbolItem? other) 98public bool Equals(SymbolItemLocation other)
SignatureHelp\AbstractSignatureHelpProvider.SymbolKeySignatureHelpItem.cs (1)
28public bool Equals(SymbolKeySignatureHelpItem? obj)
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
EditAndContinue\RudeEditDiagnosticDescription.cs (1)
31public bool Equals(RudeEditDiagnosticDescription other)
Microsoft.CodeAnalysis.InteractiveHost (7)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
309public bool Equals(ImmutableSegmentedDictionary<TKey, TValue> other)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
322public bool Equals(ImmutableSegmentedHashSet<T> other)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
596public bool Equals(ImmutableSegmentedList<T> other)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
186public bool Equals(SegmentedArray<T> other)
src\Dependencies\Contracts\Index.cs (1)
133public bool Equals(Index other) => _value == other._value;
src\Dependencies\Contracts\Range.cs (1)
53public bool Equals(Range other) => other.Start.Equals(Start) && other.End.Equals(End);
src\Dependencies\Threading\VoidResult.cs (1)
22public bool Equals(VoidResult other)
Microsoft.CodeAnalysis.LanguageServer.Protocol (22)
Protocol\CodeDescription.cs (1)
51public bool Equals(CodeDescription other)
Protocol\Diagnostic.cs (1)
141public bool Equals(Diagnostic other)
Protocol\DocumentUri.cs (1)
73public bool Equals(DocumentUri otherUri)
Protocol\Extensions\VSImageId.cs (1)
45public bool Equals(VSImageId? other)
Protocol\Extensions\VSProjectContext.cs (1)
79public virtual bool Equals(VSProjectContext other)
Protocol\Extensions\VSTextDocumentIdentifier.cs (1)
48public bool Equals(VSTextDocumentIdentifier other)
Protocol\Internal\Text\ImageId.cs (1)
66bool IEquatable<ImageId>.Equals(ImageId other)
Protocol\Internal\VSInternalIconMapping.cs (1)
44public bool Equals(VSInternalIconMapping? other)
Protocol\Internal\VSInternalKindAndModifier.cs (1)
64public bool Equals(VSInternalKindAndModifier? other)
Protocol\Internal\VSInternalProjectContext.cs (1)
47public bool Equals(VSInternalProjectContext other)
Protocol\Location.cs (1)
54public bool Equals(Location? other)
Protocol\LocationLink.cs (1)
62public bool Equals(LocationLink? other) =>
Protocol\OptionalVersionedTextDocumentIdentifier.cs (1)
50public bool Equals(OptionalVersionedTextDocumentIdentifier other)
Protocol\Position.cs (1)
103public bool Equals(Position? other)
Protocol\Range.cs (1)
68public bool Equals(Range? other)
Protocol\SumType.cs (3)
193public bool Equals(SumType<T1, T2> other) 476public bool Equals(SumType<T1, T2, T3> other) 857public bool Equals(SumType<T1, T2, T3, T4> other)
Protocol\SymbolInformation.cs (1)
112public bool Equals(SymbolInformation? other)
Protocol\TextDocumentIdentifier.cs (1)
55public bool Equals(TextDocumentIdentifier other)
Protocol\VersionedTextDocumentIdentifier.cs (1)
50public bool Equals(VersionedTextDocumentIdentifier other)
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\TypeRef.cs (1)
53public bool Equals(TypeRef? other)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (28)
src\Compilers\Core\Portable\Collections\BitVector.cs (1)
41public bool Equals(BitVector other)
src\Compilers\Core\Portable\FileSystem\RelativePathResolver.cs (1)
60public bool Equals(RelativePathResolver? other) =>
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
309public bool Equals(ImmutableSegmentedDictionary<TKey, TValue> other)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
322public bool Equals(ImmutableSegmentedHashSet<T> other)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
596public bool Equals(ImmutableSegmentedList<T> other)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
186public bool Equals(SegmentedArray<T> other)
src\Dependencies\Contracts\Index.cs (1)
133public bool Equals(Index other) => _value == other._value;
src\Dependencies\Contracts\Range.cs (1)
53public bool Equals(Range other) => other.Start.Equals(Start) && other.End.Equals(End);
src\Dependencies\Threading\VoidResult.cs (1)
22public bool Equals(VoidResult other)
src\RoslynAnalyzers\Utilities\Compiler\Options\OptionKey.cs (1)
54public bool Equals(OptionKey other)
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
255public bool Equals(SymbolNamesWithValueOption<TValue>? other)
src\RoslynAnalyzers\Utilities\Compiler\Options\Unit.cs (1)
28public readonly bool Equals(Unit other) => true;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeGeneration\ParameterName.cs (1)
66public bool Equals(ParameterName other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (1)
237public bool Equals(CodeStyleOption2<T>? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\Section.cs (1)
170public bool Equals(Section? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolUsageInfo.cs (1)
55public bool Equals(SymbolUsageInfo other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenData.cs (1)
44public bool Equals(TokenData other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingRule.cs (1)
21public bool Equals(NamingRule other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
368public bool Equals(NamingStylePreferences? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (2)
191public bool Equals(SymbolSpecification other) 550public bool Equals(ModifierKind other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\Option2.cs (1)
95public bool Equals(IOption2? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (1)
74public bool Equals(OptionDefinition? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\PerLanguageOption2.cs (1)
83public bool Equals(IOption2? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
356public readonly bool Equals(SymbolKey other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\InterceptsLocationUtilities.cs (1)
22public readonly bool Equals(InterceptsLocationData other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
157public bool Equals(SyntaxPath? other)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (1)
217public bool Equals(ISymbol other)
Microsoft.CodeAnalysis.PooledObjects.Package (2)
src\Dependencies\Contracts\Index.cs (1)
133public bool Equals(Index other) => _value == other._value;
src\Dependencies\Contracts\Range.cs (1)
53public bool Equals(Range other) => other.Start.Equals(Start) && other.End.Equals(End);
Microsoft.CodeAnalysis.PublicApiAnalyzers (27)
src\Compilers\Core\Portable\Collections\BitVector.cs (1)
41public bool Equals(BitVector other)
src\Compilers\Core\Portable\FileSystem\RelativePathResolver.cs (1)
60public bool Equals(RelativePathResolver? other) =>
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
309public bool Equals(ImmutableSegmentedDictionary<TKey, TValue> other)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
322public bool Equals(ImmutableSegmentedHashSet<T> other)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
596public bool Equals(ImmutableSegmentedList<T> other)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
186public bool Equals(SegmentedArray<T> other)
src\Dependencies\Contracts\Index.cs (1)
133public bool Equals(Index other) => _value == other._value;
src\Dependencies\Contracts\Range.cs (1)
53public bool Equals(Range other) => other.Start.Equals(Start) && other.End.Equals(End);
src\Dependencies\Threading\VoidResult.cs (1)
22public bool Equals(VoidResult other)
src\RoslynAnalyzers\Utilities\Compiler\Options\OptionKey.cs (1)
54public bool Equals(OptionKey other)
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
255public bool Equals(SymbolNamesWithValueOption<TValue>? other)
src\RoslynAnalyzers\Utilities\Compiler\Options\Unit.cs (1)
28public readonly bool Equals(Unit other) => true;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeGeneration\ParameterName.cs (1)
66public bool Equals(ParameterName other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (1)
237public bool Equals(CodeStyleOption2<T>? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\Section.cs (1)
170public bool Equals(Section? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolUsageInfo.cs (1)
55public bool Equals(SymbolUsageInfo other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenData.cs (1)
44public bool Equals(TokenData other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingRule.cs (1)
21public bool Equals(NamingRule other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
368public bool Equals(NamingStylePreferences? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (2)
191public bool Equals(SymbolSpecification other) 550public bool Equals(ModifierKind other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\Option2.cs (1)
95public bool Equals(IOption2? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (1)
74public bool Equals(OptionDefinition? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\PerLanguageOption2.cs (1)
83public bool Equals(IOption2? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
356public readonly bool Equals(SymbolKey other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\InterceptsLocationUtilities.cs (1)
22public readonly bool Equals(InterceptsLocationData other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
157public bool Equals(SyntaxPath? other)
Microsoft.CodeAnalysis.Remote.Workspaces (1)
VisualStudioMefHostServices.cs (1)
84public bool Equals(ExportKey other)
Microsoft.CodeAnalysis.ResxSourceGenerator (27)
src\Compilers\Core\Portable\Collections\BitVector.cs (1)
41public bool Equals(BitVector other)
src\Compilers\Core\Portable\FileSystem\RelativePathResolver.cs (1)
60public bool Equals(RelativePathResolver? other) =>
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
309public bool Equals(ImmutableSegmentedDictionary<TKey, TValue> other)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
322public bool Equals(ImmutableSegmentedHashSet<T> other)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
596public bool Equals(ImmutableSegmentedList<T> other)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
186public bool Equals(SegmentedArray<T> other)
src\Dependencies\Contracts\Index.cs (1)
133public bool Equals(Index other) => _value == other._value;
src\Dependencies\Contracts\Range.cs (1)
53public bool Equals(Range other) => other.Start.Equals(Start) && other.End.Equals(End);
src\Dependencies\Threading\VoidResult.cs (1)
22public bool Equals(VoidResult other)
src\RoslynAnalyzers\Utilities\Compiler\Options\OptionKey.cs (1)
54public bool Equals(OptionKey other)
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
255public bool Equals(SymbolNamesWithValueOption<TValue>? other)
src\RoslynAnalyzers\Utilities\Compiler\Options\Unit.cs (1)
28public readonly bool Equals(Unit other) => true;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeGeneration\ParameterName.cs (1)
66public bool Equals(ParameterName other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (1)
237public bool Equals(CodeStyleOption2<T>? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\Section.cs (1)
170public bool Equals(Section? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolUsageInfo.cs (1)
55public bool Equals(SymbolUsageInfo other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenData.cs (1)
44public bool Equals(TokenData other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingRule.cs (1)
21public bool Equals(NamingRule other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
368public bool Equals(NamingStylePreferences? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (2)
191public bool Equals(SymbolSpecification other) 550public bool Equals(ModifierKind other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\Option2.cs (1)
95public bool Equals(IOption2? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (1)
74public bool Equals(OptionDefinition? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\PerLanguageOption2.cs (1)
83public bool Equals(IOption2? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
356public readonly bool Equals(SymbolKey other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\InterceptsLocationUtilities.cs (1)
22public readonly bool Equals(InterceptsLocationData other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
157public bool Equals(SyntaxPath? other)
Microsoft.CodeAnalysis.Scripting (5)
Hosting\Resolvers\RuntimeMetadataReferenceResolver.cs (1)
238public bool Equals(RuntimeMetadataReferenceResolver? other)
ScriptMetadataResolver.cs (1)
73public bool Equals(ScriptMetadataResolver? other) => _resolver.Equals(other);
ScriptSourceResolver.cs (1)
52public bool Equals(ScriptSourceResolver other) => base.Equals(other);
src\Compilers\Core\Portable\FileSystem\RelativePathResolver.cs (1)
60public bool Equals(RelativePathResolver? other) =>
src\Compilers\Shared\GlobalAssemblyCacheHelpers\GacFileResolver.cs (1)
85public bool Equals(GacFileResolver other)
Microsoft.CodeAnalysis.Test.Utilities (1)
Metadata\CustomAttributeRow.cs (1)
24public bool Equals(CustomAttributeRow other)
Microsoft.CodeAnalysis.Threading.Package (7)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
309public bool Equals(ImmutableSegmentedDictionary<TKey, TValue> other)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
322public bool Equals(ImmutableSegmentedHashSet<T> other)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
596public bool Equals(ImmutableSegmentedList<T> other)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
186public bool Equals(SegmentedArray<T> other)
src\Dependencies\Contracts\Index.cs (1)
133public bool Equals(Index other) => _value == other._value;
src\Dependencies\Contracts\Range.cs (1)
53public bool Equals(Range other) => other.Start.Equals(Start) && other.End.Equals(End);
VoidResult.cs (1)
22public bool Equals(VoidResult other)
Microsoft.CodeAnalysis.UnitTests (4)
Collections\HashSet\TestingTypes.cs (4)
71public bool Equals(EquatableBackwardsOrder? other) 344public bool Equals(Equatable? other) 371public bool Equals(DelegateEquatable? other) => EqualsWorker(other); 378public bool Equals(ValueDelegateEquatable other) => EqualsWorker(other);
Microsoft.CodeAnalysis.VisualBasic (2)
Analysis\FlowAnalysis\DataFlowPass.VariableIdentifier.vb (1)
43Public Overloads Function Equals(obj As VariableIdentifier) As Boolean Implements IEquatable(Of VariableIdentifier).Equals
BoundTree\BoundTypeOrValueExpression.vb (1)
77Private Overloads Function Equals(b As BoundTypeOrValueData) As Boolean Implements IEquatable(Of BoundTypeOrValueData).Equals
Microsoft.CodeAnalysis.Workspaces (51)
Classification\ClassifiedSpan.cs (1)
27public bool Equals(ClassifiedSpan other)
CodeStyle\CodeStyleOption.cs (1)
66public bool Equals(CodeStyleOption<T>? other)
Diagnostics\DiagnosticData.cs (1)
110public bool Equals(DiagnosticData? other)
Differencing\Edit.cs (1)
67public bool Equals(Edit<TNode> other)
Differencing\SequenceEdit.cs (1)
60public bool Equals(SequenceEdit other)
FindSymbols\IStreamingFindReferencesProgress.cs (1)
47public bool Equals(SymbolGroup? group)
FindSymbols\ReferenceLocation.cs (1)
113public bool Equals(ReferenceLocation other)
FindSymbols\TopLevelSyntaxTree\DeclaredSymbolInfo.cs (1)
247public bool Equals(DeclaredSymbolInfo other)
Options\Option.cs (1)
90bool IEquatable<IOption2?>.Equals(IOption2? other) => Equals(other);
Options\OptionKey.cs (1)
40public bool Equals(OptionKey other)
Options\PerLanguageOption.cs (1)
82bool IEquatable<IOption2?>.Equals(IOption2? other) => Equals(other);
Packaging\IPackageInstallerService.cs (1)
58public bool Equals(PackageSource other)
Remote\RemoteArguments.cs (2)
35public bool Equals(SerializableSymbolAndProjectId? other) 211public bool Equals(SerializableSymbolGroup? other)
Rename\RenameLocation.cs (1)
37public bool Equals(RenameLocation other)
src\Compilers\Core\Portable\Collections\BitVector.cs (1)
41public bool Equals(BitVector other)
src\Compilers\Core\Portable\FileSystem\RelativePathResolver.cs (1)
60public bool Equals(RelativePathResolver? other) =>
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
309public bool Equals(ImmutableSegmentedDictionary<TKey, TValue> other)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
322public bool Equals(ImmutableSegmentedHashSet<T> other)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
596public bool Equals(ImmutableSegmentedList<T> other)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
186public bool Equals(SegmentedArray<T> other)
src\Dependencies\Threading\VoidResult.cs (1)
22public bool Equals(VoidResult other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeGeneration\ParameterName.cs (1)
66public bool Equals(ParameterName other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (1)
237public bool Equals(CodeStyleOption2<T>? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\Section.cs (1)
170public bool Equals(Section? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolUsageInfo.cs (1)
55public bool Equals(SymbolUsageInfo other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenData.cs (1)
44public bool Equals(TokenData other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingRule.cs (1)
21public bool Equals(NamingRule other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
368public bool Equals(NamingStylePreferences? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (2)
191public bool Equals(SymbolSpecification other) 550public bool Equals(ModifierKind other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\Option2.cs (1)
95public bool Equals(IOption2? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (1)
74public bool Equals(OptionDefinition? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\PerLanguageOption2.cs (1)
83public bool Equals(IOption2? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
356public readonly bool Equals(SymbolKey other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\InterceptsLocationUtilities.cs (1)
22public readonly bool Equals(InterceptsLocationData other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
157public bool Equals(SyntaxPath? other)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (1)
217public bool Equals(ISymbol other)
SymbolSearch\ISymbolSearchService.cs (1)
122public bool Equals(PackageWithAssemblyResult? other)
Utilities\ReferenceHolder`1.cs (1)
59public bool Equals(ReferenceHolder<T> other)
Workspace\Host\Metadata\WorkspaceMetadataFileReferenceResolver.cs (1)
39public bool Equals(WorkspaceMetadataFileReferenceResolver other)
Workspace\Host\PersistentStorage\DocumentKey.cs (1)
42public bool Equals(DocumentKey other)
Workspace\Solution\Checksum.cs (1)
110public bool Equals(Checksum other)
Workspace\Solution\CompilationOutputInfo.cs (1)
67public bool Equals(CompilationOutputInfo other)
Workspace\Solution\DocumentId.cs (1)
71public bool Equals(DocumentId? other)
Workspace\Solution\ProjectCone.cs (1)
32public bool Equals(ProjectCone? other)
Workspace\Solution\ProjectId.cs (1)
80public bool Equals(ProjectId? other)
Workspace\Solution\ProjectReference.cs (1)
43public bool Equals(ProjectReference reference)
Workspace\Solution\SolutionId.cs (1)
64public bool Equals(SolutionId other)
Workspace\Solution\StateChecksums.cs (1)
372public bool Equals(ProjectStateChecksums? obj)
Workspace\Solution\VersionStamp.cs (1)
155public bool Equals(VersionStamp version)
Microsoft.CodeAnalysis.Workspaces.Desktop (1)
Workspace\Host\Mef\MefV1HostServices.cs (1)
123public bool Equals(ExportKey other)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (4)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
309public bool Equals(ImmutableSegmentedDictionary<TKey, TValue> other)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
322public bool Equals(ImmutableSegmentedHashSet<T> other)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
596public bool Equals(ImmutableSegmentedList<T> other)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
186public bool Equals(SegmentedArray<T> other)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
MEF\TestComposition.cs (1)
44public bool Equals(CacheKey other)
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
ObjectSerializationTests.cs (1)
183public bool Equals(TypeWithOneMember<T> other)
SolutionTests\SolutionWithSourceGeneratorTests.cs (1)
118public bool Equals(AnalyzerReference? other)
Microsoft.CommonLanguageServerProtocol.Framework.Package (3)
src\Dependencies\Contracts\Index.cs (1)
133public bool Equals(Index other) => _value == other._value;
src\Dependencies\Contracts\Range.cs (1)
53public bool Equals(Range other) => other.Start.Equals(Start) && other.End.Equals(End);
TypeRef.cs (1)
53public bool Equals(TypeRef? other)
Microsoft.CSharp (4)
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\SymbolStore.cs (1)
89public bool Equals(Key other) => _name == other._name && _parent == other._parent;
Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeArray.cs (1)
45public bool Equals(TypeArrayKey other)
Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeTable.cs (1)
24public bool Equals(KeyPair<TKey1, TKey2> other) =>
Microsoft\CSharp\RuntimeBinder\SymbolTable.cs (1)
34public bool Equals(NameHashKey other) => Type.Equals(other.Type) && Name.Equals(other.Name);
Microsoft.DotNet.SignTool (2)
src\ExplicitCertificateKey.cs (1)
32bool IEquatable<ExplicitCertificateKey>.Equals(ExplicitCertificateKey other)
src\SignedFileContentKey.cs (1)
47bool IEquatable<SignedFileContentKey>.Equals(SignedFileContentKey other)
Microsoft.DotNet.SourceBuild.Tasks (1)
src\UsageReport\Usage.cs (1)
89public bool Equals(Usage other)
Microsoft.DotNet.XUnitAssert.Tests (15)
AsyncCollectionAssertsTests.cs (2)
946 public bool Equals(EquatableObject? other) => 1303 public bool Equals(EquatableObject? other) =>
CollectionAssertsTests.cs (4)
1169 public bool Equals(EquatableObject? other) => 1414 public bool Equals(EquatableObject? other) => 1867 public bool Equals(EquatableObject? other) => 2081 public bool Equals(EquatableObject? other) =>
EqualityAssertsTests.cs (9)
1105 public bool Equals(EnumerableEquatable<T>? other) 1684 public bool Equals(EquatableObject? other) => 3334 public bool Equals(EnumerableEquatable<T>? other) 3912 public bool Equals(EquatableObject? other) => 4456 public bool Equals(EquatableBaseClass? other) => Value == other!.Value; 4478 bool IEquatable<StringWrapper>.Equals(StringWrapper? other) => Value == other!.Value; 4494 public bool Equals(IntWrapper? other) => Value == other!.Value; 4506 bool IEquatable<IntWrapper>.Equals(IntWrapper? other) => Value == other!.Value; 4609 public bool Equals(SpyEquatable? other)
Microsoft.Extensions.AI.Abstractions (3)
ChatCompletion\ChatFinishReason.cs (1)
37public bool Equals(ChatFinishReason other) => StringComparer.OrdinalIgnoreCase.Equals(Value, other.Value);
ChatCompletion\ChatRole.cs (1)
80public bool Equals(ChatRole other)
SpeechToText\SpeechToTextResponseUpdateKind.cs (1)
82public bool Equals(SpeechToTextResponseUpdateKind other)
Microsoft.Extensions.AI.Evaluation.NLP (2)
Common\NGram.cs (1)
34public bool Equals(NGram<T> other)
Common\RationalNumber.cs (1)
32public bool Equals(RationalNumber other)
Microsoft.Extensions.AI.Evaluation.Safety (1)
ContentSafetyService.UrlCacheKey.cs (1)
21public bool Equals(UrlCacheKey? other)
Microsoft.Extensions.AsyncState (1)
AsyncStateToken.cs (1)
35public bool Equals(AsyncStateToken other)
Microsoft.Extensions.Caching.Hybrid (1)
Internal\DefaultHybridCache.StampedeKey.cs (1)
45public bool Equals(StampedeKey other) => _flags == other._flags & _key == other._key;
Microsoft.Extensions.Compliance.Abstractions (2)
Classification\DataClassification.cs (1)
65public bool Equals(DataClassification other) => other.TaxonomyName == TaxonomyName && other.Value == Value;
Classification\DataClassificationSet.cs (1)
104public bool Equals(DataClassificationSet? other) => other != null && _classifications.SetEquals(other._classifications);
Microsoft.Extensions.Compliance.Testing (2)
RedactedData.cs (1)
54public bool Equals(RedactedData other) => other.Original == Original && other.Redacted == Redacted && other.SequenceNumber == SequenceNumber;
RedactorRequested.cs (1)
47public bool Equals(RedactorRequested other) => other.SequenceNumber == SequenceNumber && other.DataClassifications.Equals(DataClassifications);
Microsoft.Extensions.DependencyInjection (2)
ServiceLookup\ServiceCacheKey.cs (1)
44public bool Equals(ServiceCacheKey other) =>
ServiceLookup\ServiceIdentifier.cs (1)
31public bool Equals(ServiceIdentifier other)
Microsoft.Extensions.DependencyModel (1)
Dependency.cs (1)
29public bool Equals(Dependency other)
Microsoft.Extensions.Diagnostics.ExceptionSummarization (1)
ExceptionSummary.cs (1)
98public bool Equals(ExceptionSummary other)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
src\Shared\StringSplit\StringRange.cs (1)
84public bool Equals(StringRange other) => other.Index == Index && other.Count == Count;
Microsoft.Extensions.FileSystemGlobbing (1)
FilePatternMatch.cs (1)
51public bool Equals(FilePatternMatch other)
Microsoft.Extensions.Logging.Abstractions (1)
EventId.cs (1)
77public bool Equals(EventId other)
Microsoft.Extensions.Logging.Generators (3)
src\libraries\Common\src\Roslyn\GlobalAliases.cs (1)
61public bool Equals(GlobalAliases? aliases)
src\libraries\Common\src\Roslyn\SyntaxNodeGrouping.cs (1)
39public bool Equals(SyntaxNodeGrouping<TSyntaxNode>? obj)
src\libraries\Common\src\Roslyn\SyntaxValueProvider_ForAttributeWithSimpleName.cs (1)
39public bool Equals(SyntaxTreeInfo? other)
Microsoft.Extensions.Primitives (5)
StringSegment.cs (2)
207public bool Equals(StringSegment other) => Equals(other, StringComparison.Ordinal); 245public bool Equals(string? text) => Equals(text, StringComparison.Ordinal);
StringValues.cs (3)
575public bool Equals(StringValues other) => Equals(this, other); 598public bool Equals(string? other) => Equals(this, new StringValues(other)); 621public bool Equals(string?[]? other) => Equals(this, new StringValues(other));
Microsoft.Extensions.ServiceDiscovery.Dns (1)
Resolver\EncodedDomainName.cs (1)
35public bool Equals(EncodedDomainName other)
Microsoft.Extensions.Telemetry (2)
src\Shared\Memoization\MemoizedFunction.cs (2)
53public bool Equals(MemoizedFunction<TParameter, TResult>.Arg other) => EqualityComparer<TParameter>.Default.Equals(Arg1, other.Arg1); 124public bool Equals(MemoizedFunction<TParameter1, TParameter2, TResult>.Args other) =>
Microsoft.Extensions.Telemetry.Abstractions (2)
Latency\Checkpoint.cs (1)
58public bool Equals(Checkpoint other)
Latency\Measure.cs (1)
51public bool Equals(Measure other) => Value == other.Value && Name.Equals(other.Name, StringComparison.Ordinal);
Microsoft.Interop.ComInterfaceGenerator (4)
ComClassInfo.cs (1)
71public bool Equals(ComClassInfo? other)
ComInterfaceInfo.cs (1)
398public bool Equals(ComInterfaceInfo other)
ComMethodContext.cs (1)
60public bool Equals(ComMethodContext other) => _state.Equals(other);
src\libraries\System.Private.CoreLib\src\System\Index.cs (1)
129public bool Equals(Index other) => _value == other._value;
Microsoft.Interop.JavaScript.JSImportGenerator (1)
src\libraries\System.Private.CoreLib\src\System\Index.cs (1)
129public bool Equals(Index other) => _value == other._value;
Microsoft.Interop.SourceGeneration (10)
ContainingSyntaxContext.cs (2)
27public bool Equals(ContainingSyntax other) 85public bool Equals(ContainingSyntaxContext other)
ManagedTypeInfo.cs (2)
18public virtual bool Equals(ManagedTypeInfo? other) 93public bool Equals(SpecialTypeInfo? other)
ManualTypeMarshallingHelper.cs (1)
27public bool Equals(CustomTypeMarshallers other)
MethodSignatureDiagnosticLocations.cs (1)
52public bool Equals(MethodSignatureDiagnosticLocations other)
SequenceEqualImmutableArray.cs (1)
38public bool Equals(SequenceEqualImmutableArray<T> other)
SignatureContext.cs (1)
134public bool Equals(SignatureContext other)
SyntaxEquivalentNode.cs (1)
14public bool Equals(SyntaxEquivalentNode<T> other)
ValueEqualityImmutableDictionary.cs (1)
16public bool Equals(ValueEqualityImmutableDictionary<T, U> other)
Microsoft.JSInterop (1)
Infrastructure\DotNetDispatcher.cs (1)
541public bool Equals(AssemblyKey other)
Microsoft.Maui (4)
Layouts\FlexEnums.cs (1)
98 public bool Equals(FlexBasis other) => _isLength == other._isLength && _isRelative == other._isRelative && Length == other.Length;
Primitives\Font.cs (1)
128 bool IEquatable<Font>.Equals(Font other)
Primitives\SizeRequest.cs (1)
41 public bool Equals(SizeRequest other) => Request.Equals(other.Request) && Minimum.Equals(other.Minimum);
WeakEventManager.cs (1)
160 public bool Equals(Subscription other) => Subscriber == other.Subscriber && Handler == other.Handler;
Microsoft.Maui.Controls (3)
LayoutOptions.cs (1)
77 public bool Equals(LayoutOptions other) => _flags == other._flags;
Region.cs (1)
126 public bool Equals(Region other) =>
Shapes\Matrix.cs (1)
675 public bool Equals(Matrix other) =>
Microsoft.Maui.Controls.BindingSourceGen (6)
EquatableArray.cs (1)
35 public bool Equals(EquatableArray<T> array)
PathPart.cs (5)
12 public bool Equals(IPathPart other) 25 public bool Equals(IPathPart other) 37 public bool Equals(IPathPart other) 50 public bool Equals(IPathPart other) 60 public bool Equals(IPathPart other)
Microsoft.Maui.Essentials (9)
Accelerometer\Accelerometer.shared.cs (1)
162 public bool Equals(AccelerometerData other) =>
Barometer\Barometer.shared.cs (1)
159 public bool Equals(BarometerData other) =>
Compass\Compass.shared.cs (1)
217 public bool Equals(CompassData other) =>
Gyroscope\Gyroscope.shared.cs (1)
154 public bool Equals(GyroscopeData other) =>
Magnetometer\Magnetometer.shared.cs (1)
158 public bool Equals(MagnetometerData other) =>
OrientationSensor\OrientationSensor.shared.cs (1)
159 public bool Equals(OrientationSensorData other) =>
Types\DeviceIdiom.shared.cs (1)
66 public bool Equals(DeviceIdiom other) =>
Types\DevicePlatform.shared.cs (1)
89 public bool Equals(DevicePlatform other) =>
Types\DisplayInfo.shared.cs (1)
111 public bool Equals(DisplayInfo other) =>
Microsoft.Maui.Graphics (2)
Font.cs (1)
47 public bool Equals(IFont other)
FontSource.cs (1)
19 public bool Equals(FontSource other)
Microsoft.ML.AutoML (5)
Sweepers\ISweeper.cs (1)
133public bool Equals(ParameterSet other)
Sweepers\Parameters.cs (3)
89public bool Equals(IParameterValue other) 135public bool Equals(IParameterValue other) 178public bool Equals(IParameterValue other)
TransformInference\TransformInference.cs (1)
109public bool Equals(ColumnRoutingStructure obj)
Microsoft.ML.Core (1)
ComponentModel\ComponentCatalog.cs (1)
119public bool Equals(Key other)
Microsoft.ML.DataView (3)
DataViewRowId.cs (1)
49public bool Equals(DataViewRowId other)
DataViewType.cs (2)
48public abstract bool Equals(DataViewType other); 487public abstract bool Equals(DataViewTypeAttribute other);
Microsoft.ML.OnnxConverter (19)
OnnxMl.cs (19)
517public bool Equals(AttributeProto other) 1011public bool Equals(ValueInfoProto other) 1325public bool Equals(NodeProto other) 1732public bool Equals(ModelProto other) 2055public bool Equals(StringStringEntryProto other) 2250public bool Equals(TensorAnnotation other) 2553public bool Equals(GraphProto other) 3056public bool Equals(TensorProto other) 3503public bool Equals(Segment other) 3733public bool Equals(SparseTensorProto other) 3940public bool Equals(TensorShapeProto other) 4158public bool Equals(Dimension other) 4493public bool Equals(TypeProto other) 4823public bool Equals(Tensor other) 5015public bool Equals(Sequence other) 5205public bool Equals(Map other) 5409public bool Equals(SparseTensor other) 5614public bool Equals(Opaque other) 5825public bool Equals(OperatorSetIdProto other)
Microsoft.ML.OnnxTransformer (19)
src\Microsoft.ML.OnnxConverter\OnnxMl.cs (19)
517public bool Equals(AttributeProto other) 1011public bool Equals(ValueInfoProto other) 1325public bool Equals(NodeProto other) 1732public bool Equals(ModelProto other) 2055public bool Equals(StringStringEntryProto other) 2250public bool Equals(TensorAnnotation other) 2553public bool Equals(GraphProto other) 3056public bool Equals(TensorProto other) 3503public bool Equals(Segment other) 3733public bool Equals(SparseTensorProto other) 3940public bool Equals(TensorShapeProto other) 4158public bool Equals(Dimension other) 4493public bool Equals(TypeProto other) 4823public bool Equals(Tensor other) 5015public bool Equals(Sequence other) 5205public bool Equals(Map other) 5409public bool Equals(SparseTensor other) 5614public bool Equals(Opaque other) 5825public bool Equals(OperatorSetIdProto other)
Microsoft.ML.SearchSpace (1)
Parameter.cs (1)
385public bool Equals(Parameter other)
Microsoft.ML.Sweeper (4)
ISweeper.cs (1)
162public bool Equals(ParameterSet other)
Parameters.cs (3)
97public bool Equals(IParameterValue other) 143public bool Equals(IParameterValue other) 186public bool Equals(IParameterValue other)
Microsoft.ML.TestFramework (1)
SubComponent.cs (1)
108public bool Equals(SubComponent other)
Microsoft.ML.Tests (1)
OnnxConversionTest.cs (1)
1143public bool Equals(TransformedDataPoint other)
Microsoft.ML.TimeSeries (2)
RootCauseLocalizationType.cs (2)
152public bool Equals(RootCauseItem other) 227public bool Equals(TimeSeriesPoint other)
Microsoft.ML.Tokenizers (13)
EncodedToken.cs (1)
44public bool Equals(EncodedToken other) => Id == other.Id && Value == other.Value && Offset.Equals(other.Offset);
Model\CodeGenTokenizer.cs (1)
1837public bool Equals(SymbolPair other) => Left == other.Left && Score == other.Score;
Model\Merge.cs (1)
43public bool Equals(Merge other) => Pos == other.Pos && Rank == other.Rank;
Model\Pair.cs (1)
24public bool Equals(Pair<T> other) => First.Equals(other.First) && Second.Equals(other.Second);
Model\SentencePieceBpeModel.cs (1)
1255public bool Equals(SymbolPair other) => Left == other.Left && Score == other.Score;
SentencepieceModel.cs (6)
1602public bool Equals(TrainerSpec other) { 3089public bool Equals(NormalizerSpec other) { 3446public bool Equals(SelfTestData other) { 3712public bool Equals(Sample other) { 4006public bool Equals(ModelProto other) { 4441public bool Equals(SentencePiece other) {
Utils\StringSpanOrdinalKey.cs (2)
43public bool Equals(StringSpanOrdinalKey other) => 68public bool Equals(StringSpanOrdinalKeyPair other) => other._left.Equals(_left) && other._right.Equals(_right);
Microsoft.ML.Transforms (2)
Expression\MethodGenerator.cs (1)
133public bool Equals(LocalKey other)
Text\NgramHashingTransformer.cs (1)
709public bool Equals(NGram other)
Microsoft.VisualStudio.LanguageServices (3)
DocumentOutline\DocumentSymbolDataViewModel.cs (1)
81public bool Equals(DocumentSymbolDataViewModel? other)
InheritanceMargin\InheritanceMarginTag.cs (1)
64public bool Equals(InheritanceMarginTag? other)
src\Compilers\Core\Portable\FileKey.cs (1)
60public bool Equals(FileKey other)
MSBuild (2)
AssemblyLoadInfo.cs (1)
75public bool Equals(AssemblyLoadInfo other)
AssemblyNameExtension.cs (1)
660bool IEquatable<AssemblyNameExtension>.Equals(AssemblyNameExtension other)
MSBuildTaskHost (2)
AssemblyLoadInfo.cs (1)
75public bool Equals(AssemblyLoadInfo other)
AssemblyNameExtension.cs (1)
660bool IEquatable<AssemblyNameExtension>.Equals(AssemblyNameExtension other)
MyFrontend (9)
artifacts\obj\MyFrontend\Debug\net8.0\Basket.cs (9)
133public bool Equals(BasketRequest other) { 343public bool Equals(CustomerBasketRequest other) { 567public bool Equals(CustomerBasketResponse other) { 831public bool Equals(BasketItemResponse other) { 1143public bool Equals(CheckoutCustomerBasketRequest other) { 1328public bool Equals(CheckoutCustomerBasketResponse other) { 1502public bool Equals(DeleteCustomerBasketRequest other) { 1687public bool Equals(DeleteCustomerBasketResponse other) { 1885public bool Equals(DecimalValue other) {
PresentationCore (12)
MS\Internal\DpiScale2.cs (2)
125public bool Equals(DpiScale dpiScale) 150public bool Equals(DpiScale2 dpiScale2)
MS\Internal\Ink\StrokeFIndices.cs (1)
79public bool Equals(StrokeFIndices strokeFIndices)
System\Windows\Input\Stylus\Common\StylusPoint.cs (1)
568public bool Equals(StylusPoint value)
System\Windows\Input\TouchPoint.cs (1)
99bool IEquatable<TouchPoint>.Equals(TouchPoint other)
System\Windows\Media\Animation\KeyTime.cs (1)
161public bool Equals(KeyTime value)
System\Windows\Media\Color.cs (1)
665public bool Equals(Color color)
System\Windows\Media\PixelFormat.cs (1)
297public readonly bool Equals(PixelFormat pixelFormat)
System\Windows\Media\textformatting\CharacterBufferReference.cs (1)
123public bool Equals(CharacterBufferReference value)
System\Windows\Media\textformatting\CharacterHit.cs (1)
94public bool Equals(CharacterHit obj)
System\Windows\Media\textformatting\CharacterString.cs (1)
190public bool Equals(CharacterBufferRange value)
System\Windows\Media\textformatting\MinMaxParagraphWidth.cs (1)
62public bool Equals(MinMaxParagraphWidth value)
PresentationFramework (15)
MS\Internal\Data\AccessorTable.cs (1)
189public bool Equals(AccessorTableKey other) =>
MS\Internal\Data\DataBindEngine.cs (1)
665public bool Equals(ValueConverterTableKey other) =>
MS\Internal\WindowsRuntime\Generated\Windows.Data.Text.cs (4)
51public bool Equals(AlternateWordForm other) => this == other; 156public bool Equals(TextSegment other) => this == other; 269public bool Equals(WordSegment other) => this == other; 374public bool Equals(WordsSegmenter other) => this == other;
MS\Internal\WindowsRuntime\Generated\Windows.Globalization.cs (1)
146public bool Equals(Language other) => this == other;
System\Windows\Controls\DataGridLength.cs (1)
172public bool Equals(DataGridLength other)
System\Windows\Controls\VirtualizationCacheLength.cs (1)
138public bool Equals(VirtualizationCacheLength cacheLength)
System\Windows\CornerRadius.cs (1)
84public bool Equals(CornerRadius cornerRadius)
System\Windows\FigureLength.cs (1)
198public bool Equals(FigureLength figureLength)
System\Windows\GridLength.cs (1)
167public bool Equals(GridLength gridLength)
System\Windows\ThemeMode.cs (1)
76public bool Equals(ThemeMode other) => string.Equals(Value, other.Value, StringComparison.Ordinal);
System\Windows\Thickness.cs (1)
85public bool Equals(Thickness thickness)
System\Windows\VisualStateManager.cs (1)
718public bool Equals(TimelineDataToken other)
Replay (2)
src\Dependencies\Contracts\Index.cs (1)
133public bool Equals(Index other) => _value == other._value;
src\Dependencies\Contracts\Range.cs (1)
53public bool Equals(Range other) => other.Start.Equals(Start) && other.End.Equals(End);
Roslyn.Diagnostics.Analyzers (28)
src\Compilers\Core\Portable\Collections\BitVector.cs (1)
41public bool Equals(BitVector other)
src\Compilers\Core\Portable\FileSystem\RelativePathResolver.cs (1)
60public bool Equals(RelativePathResolver? other) =>
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
309public bool Equals(ImmutableSegmentedDictionary<TKey, TValue> other)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
322public bool Equals(ImmutableSegmentedHashSet<T> other)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
596public bool Equals(ImmutableSegmentedList<T> other)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
186public bool Equals(SegmentedArray<T> other)
src\Dependencies\Contracts\Index.cs (1)
133public bool Equals(Index other) => _value == other._value;
src\Dependencies\Contracts\Range.cs (1)
53public bool Equals(Range other) => other.Start.Equals(Start) && other.End.Equals(End);
src\Dependencies\Threading\VoidResult.cs (1)
22public bool Equals(VoidResult other)
src\RoslynAnalyzers\Utilities\Compiler\Options\OptionKey.cs (1)
54public bool Equals(OptionKey other)
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
255public bool Equals(SymbolNamesWithValueOption<TValue>? other)
src\RoslynAnalyzers\Utilities\Compiler\Options\Unit.cs (1)
28public readonly bool Equals(Unit other) => true;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeGeneration\ParameterName.cs (1)
66public bool Equals(ParameterName other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (1)
237public bool Equals(CodeStyleOption2<T>? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\Section.cs (1)
170public bool Equals(Section? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolUsageInfo.cs (1)
55public bool Equals(SymbolUsageInfo other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenData.cs (1)
44public bool Equals(TokenData other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingRule.cs (1)
21public bool Equals(NamingRule other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
368public bool Equals(NamingStylePreferences? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (2)
191public bool Equals(SymbolSpecification other) 550public bool Equals(ModifierKind other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\Option2.cs (1)
95public bool Equals(IOption2? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (1)
74public bool Equals(OptionDefinition? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\PerLanguageOption2.cs (1)
83public bool Equals(IOption2? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
356public readonly bool Equals(SymbolKey other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\InterceptsLocationUtilities.cs (1)
22public readonly bool Equals(InterceptsLocationData other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
157public bool Equals(SyntaxPath? other)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (1)
217public bool Equals(ISymbol other)
Roslyn.VisualStudio.Next.UnitTests (3)
UnifiedSettings\TestModel\EnumIntegerToString.cs (1)
19public bool Equals(EnumIntegerToString? other)
UnifiedSettings\TestModel\UnifiedSettingBase.cs (1)
32public virtual bool Equals(UnifiedSettingBase? other)
UnifiedSettings\TestModel\UnifiedSettingsEnumOption.cs (1)
20public bool Equals(UnifiedSettingsEnumOption? other)
Sandbox (9)
artifacts\obj\Sandbox\Release\net10.0\Greet.cs (3)
113public bool Equals(HelloRequest other) { 316public bool Equals(HelloRequestFrom other) { 543public bool Equals(HelloReply other) {
artifacts\obj\Sandbox\Release\net10.0\Transcoding.cs (6)
252public bool Equals(HelloRequest other) { 570public bool Equals(SubMessage other) { 982public bool Equals(DataTypes other) { 1579public bool Equals(NestedMessage other) { 1896public bool Equals(Wrappers other) { 2362public bool Equals(HelloReply2 other) {
ScenarioTests.Common.Tests (2)
ScenarioTestTypes.cs (2)
520public bool Equals(ComplexCompositeType other) 665public bool Equals(ComplexCompositeTypeDuplexCallbackOnly other)
Shared (4)
JsonSchemaExporter\JsonSchemaExporter.ReflectionHelpers.cs (1)
414public bool Equals(ParameterLookupKey other) => Type == other.Type && string.Equals(Name, other.Name, StringComparison.OrdinalIgnoreCase);
Memoization\MemoizedFunction.cs (2)
53public bool Equals(MemoizedFunction<TParameter, TResult>.Arg other) => EqualityComparer<TParameter>.Default.Equals(Arg1, other.Arg1); 124public bool Equals(MemoizedFunction<TParameter1, TParameter2, TResult>.Args other) =>
StringSplit\StringRange.cs (1)
84public bool Equals(StringRange other) => other.Index == Index && other.Count == Count;
SocialWeather (1)
Protobuf\WeatherReport.cs (1)
147public bool Equals(WeatherReport other) {
Stress.TelemetryService (42)
artifacts\obj\Stress.TelemetryService\Debug\net8.0\opentelemetry\proto\collector\logs\v1\LogsService.cs (3)
127public bool Equals(ExportLogsServiceRequest other) { 332public bool Equals(ExportLogsServiceResponse other) { 567public bool Equals(ExportLogsPartialSuccess other) {
artifacts\obj\Stress.TelemetryService\Debug\net8.0\opentelemetry\proto\collector\metrics\v1\MetricsService.cs (3)
129public bool Equals(ExportMetricsServiceRequest other) { 334public bool Equals(ExportMetricsServiceResponse other) { 569public bool Equals(ExportMetricsPartialSuccess other) {
artifacts\obj\Stress.TelemetryService\Debug\net8.0\opentelemetry\proto\collector\trace\v1\TraceService.cs (3)
128public bool Equals(ExportTraceServiceRequest other) { 333public bool Equals(ExportTraceServiceResponse other) { 568public bool Equals(ExportTracePartialSuccess other) {
artifacts\obj\Stress.TelemetryService\Debug\net8.0\opentelemetry\proto\common\v1\Common.cs (5)
321public bool Equals(AnyValue other) { 700public bool Equals(ArrayValue other) { 900public bool Equals(KeyValueList other) { 1105public bool Equals(KeyValue other) { 1386public bool Equals(InstrumentationScope other) {
artifacts\obj\Stress.TelemetryService\Debug\net8.0\opentelemetry\proto\logs\v1\Logs.cs (4)
221public bool Equals(LogsData other) { 448public bool Equals(ResourceLogs other) { 732public bool Equals(ScopeLogs other) { 1171public bool Equals(LogRecord other) {
artifacts\obj\Stress.TelemetryService\Debug\net8.0\opentelemetry\proto\metrics\v1\Metrics.cs (16)
321public bool Equals(MetricsData other) { 548public bool Equals(ResourceMetrics other) { 832public bool Equals(ScopeMetrics other) { 1301public bool Equals(Metric other) { 1747public bool Equals(Gauge other) { 1971public bool Equals(Sum other) { 2227public bool Equals(Histogram other) { 2459public bool Equals(ExponentialHistogram other) { 2678public bool Equals(Summary other) { 3029public bool Equals(NumberDataPoint other) { 3613public bool Equals(HistogramDataPoint other) { 4324public bool Equals(ExponentialHistogramDataPoint other) { 4867public bool Equals(Buckets other) { 5206public bool Equals(SummaryDataPoint other) { 5563public bool Equals(ValueAtQuantile other) { 5937public bool Equals(Exemplar other) {
artifacts\obj\Stress.TelemetryService\Debug\net8.0\opentelemetry\proto\resource\v1\Resource.cs (1)
135public bool Equals(Resource other) {
artifacts\obj\Stress.TelemetryService\Debug\net8.0\opentelemetry\proto\trace\v1\Trace.cs (7)
167public bool Equals(TracesData other) { 394public bool Equals(ResourceSpans other) { 678public bool Equals(ScopeSpans other) { 1204public bool Equals(Span other) { 1817public bool Equals(Event other) { 2153public bool Equals(Link other) { 2465public bool Equals(Status other) {
System.Collections.Immutable (1)
System\Collections\Immutable\ImmutableArray_1.Minimal.cs (1)
320public bool Equals(ImmutableArray<T> other)
System.Collections.Specialized (2)
System\Collections\Specialized\BitVector32.cs (2)
156public bool Equals(BitVector32 other) => _data == other._data; 204public bool Equals(Section obj)
System.ComponentModel.Composition (1)
System\ComponentModel\Composition\ReflectionModel\LazyMemberInfo.cs (1)
115public bool Equals(LazyMemberInfo other)
System.ComponentModel.TypeConverter (3)
System\ComponentModel\Design\Serialization\MemberRelationshipService.cs (2)
155public bool Equals(RelationshipEntry other) 212public bool Equals(MemberRelationship other) => other.Owner == Owner && other.Member == Member;
System\ComponentModel\InterlockedBitVector32.cs (1)
49public bool Equals(InterlockedBitVector32 other) => _data == other._data;
System.Console (1)
System\ConsoleKeyInfo.cs (1)
56public bool Equals(ConsoleKeyInfo obj)
System.Data.Common (15)
System\Data\DataKey.cs (1)
157public bool Equals(DataKey value)
System\Data\Selection.cs (1)
33public bool Equals(IndexField other) => Column == other.Column && IsDescending == other.IsDescending;
System\Data\SQLTypes\SQLBinary.cs (1)
365public bool Equals(SqlBinary other) =>
System\Data\SQLTypes\SQLBoolean.cs (1)
472public bool Equals(SqlBoolean other) =>
System\Data\SQLTypes\SQLByte.cs (1)
481public bool Equals(SqlByte other) =>
System\Data\SQLTypes\SQLDateTime.cs (1)
623public bool Equals(SqlDateTime other) =>
System\Data\SQLTypes\SQLDecimal.cs (1)
3307public bool Equals(SqlDecimal other) =>
System\Data\SQLTypes\SQLDouble.cs (1)
397public bool Equals(SqlDouble other) =>
System\Data\SQLTypes\SQLGuid.cs (1)
288public bool Equals(SqlGuid other) => _value == other._value;
System\Data\SQLTypes\SQLInt16.cs (1)
482public bool Equals(SqlInt16 other) =>
System\Data\SQLTypes\SQLInt32.cs (1)
497public bool Equals(SqlInt32 other) =>
System\Data\SQLTypes\SQLInt64.cs (1)
556public bool Equals(SqlInt64 other) =>
System\Data\SQLTypes\SQLMoney.cs (1)
551public bool Equals(SqlMoney other) =>
System\Data\SQLTypes\SQLSingle.cs (1)
407public bool Equals(SqlSingle other) =>
System\Data\SQLTypes\SQLString.cs (1)
883public bool Equals(SqlString other) =>
System.Diagnostics.DiagnosticSource (12)
System\Diagnostics\Activity.cs (2)
1941public bool Equals(ActivityTraceId traceId) 2135public bool Equals(ActivitySpanId spanId)
System\Diagnostics\ActivityContext.cs (1)
109public bool Equals(ActivityContext value) => SpanId.Equals(value.SpanId) && TraceId.Equals(value.TraceId) && TraceFlags == value.TraceFlags && TraceState == value.TraceState && IsRemote == value.IsRemote;
System\Diagnostics\ActivityLink.cs (1)
43public bool Equals(ActivityLink value) => Context == value.Context && value.Tags == Tags;
System\Diagnostics\Metrics\ObjectSequence.cs (4)
20public bool Equals(ObjectSequence1 other) 43public bool Equals(ObjectSequence2 other) 69public bool Equals(ObjectSequence3 other) 92public bool Equals(ObjectSequenceMany other)
System\Diagnostics\Metrics\StringSequence.cs (4)
20public bool Equals(StringSequence1 other) 43public bool Equals(StringSequence2 other) 68public bool Equals(StringSequence3 other) 90public bool Equals(StringSequenceMany other) =>
System.Diagnostics.PerformanceCounter (1)
artifacts\obj\System.Diagnostics.PerformanceCounter\Debug\net10.0\System.Diagnostics.PerformanceCounter.notsupported.cs (1)
49public bool Equals(System.Diagnostics.CounterSample sample) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_PerfCounters); }
System.Diagnostics.StackTrace (1)
System\Diagnostics\SymbolStore\SymbolToken.cs (1)
29public bool Equals(SymbolToken obj) => obj._token == _token;
System.Drawing.Primitives (7)
System\Drawing\Color.cs (1)
587public bool Equals(Color other) => this == other;
System\Drawing\Point.cs (1)
141public readonly bool Equals(Point other) => this == other;
System\Drawing\PointF.cs (1)
139public readonly bool Equals(PointF other) => this == other;
System\Drawing\Rectangle.cs (1)
161public readonly bool Equals(Rectangle other) => this == other;
System\Drawing\RectangleF.cs (1)
191public readonly bool Equals(RectangleF other) => this == other;
System\Drawing\Size.cs (1)
182public readonly bool Equals(Size other) => this == other;
System\Drawing\SizeF.cs (1)
169public readonly bool Equals(SizeF other) => this == other;
System.Formats.Asn1 (2)
System\Formats\Asn1\Asn1Tag.cs (1)
383public bool Equals(Asn1Tag other)
System\Formats\Asn1\AsnWriter.cs (1)
845public bool Equals(StackFrame other)
System.Formats.Nrbf (1)
System\Formats\Nrbf\SerializationRecordId.cs (1)
55public bool Equals(SerializationRecordId other) => _id == other._id;
System.IO.Packaging (1)
System\IO\Packaging\PackUriHelper.cs (1)
649bool IEquatable<ValidatedPartUri>.Equals(ValidatedPartUri? otherPartUri)
System.Linq.Expressions (2)
System\Linq\Expressions\Compiler\BoundConstants.cs (1)
42public bool Equals(TypedConstant other)
System\Linq\Expressions\Interpreter\LocalVariables.cs (1)
61public bool Equals(LocalDefinition other) => other.Index == Index && other.Parameter == Parameter;
System.Memory (1)
System\SequencePosition.cs (1)
43public bool Equals(SequencePosition other) => _integer == other._integer && object.Equals(this._object, other._object);
System.Net.Http (5)
src\libraries\Common\src\System\Net\CredentialCacheKey.cs (1)
80public bool Equals([NotNullWhen(true)] CredentialCacheKey? other)
System\Net\Http\Headers\HeaderDescriptor.cs (1)
42public bool Equals(HeaderDescriptor other)
System\Net\Http\HttpMethod.cs (1)
55public bool Equals([NotNullWhen(true)] HttpMethod? other) =>
System\Net\Http\SocketsHttpHandler\HttpAuthority.cs (1)
42public bool Equals([NotNullWhen(true)] HttpAuthority? other)
System\Net\Http\SocketsHttpHandler\HttpConnectionPoolManager.cs (1)
552public bool Equals(HttpConnectionKey other) =>
System.Net.NameResolution (1)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.IPAddress.cs (1)
45public bool Equals(IPAddress other)
System.Net.Primitives (5)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.IPAddress.cs (1)
45public bool Equals(IPAddress other)
src\libraries\Common\src\System\Net\CredentialCacheKey.cs (1)
80public bool Equals([NotNullWhen(true)] CredentialCacheKey? other)
src\libraries\Common\src\System\Net\SocketAddress.cs (1)
144public bool Equals(SocketAddress? comparand) => comparand != null && Buffer.Span.SequenceEqual(comparand.Buffer.Span);
System\Net\CredentialCache.cs (1)
370public bool Equals(CredentialHostKey other)
System\Net\IPNetwork.cs (1)
314public bool Equals(IPNetwork other) =>
System.Net.Quic (3)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.X509.cs (1)
427public bool Equals(X509VerifyStatusCode other) => Code == other.Code;
System\Net\Quic\Internal\MsQuicConfiguration.Cache.cs (1)
74public bool Equals(CacheKey other)
System\Net\Quic\Interop\QUIC_SETTINGS.IEquattable.cs (1)
14public readonly bool Equals(QUIC_SETTINGS other)
System.Net.Security (4)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (1)
76public bool Equals(SslContextCacheKey other) =>
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.X509.cs (1)
427public bool Equals(X509VerifyStatusCode other) => Code == other.Code;
System\Net\Security\SslApplicationProtocol.cs (1)
54public bool Equals(SslApplicationProtocol other) =>
System\Net\Security\SslSessionsCache.cs (1)
81public bool Equals(SslCredKey other)
System.Net.Sockets (3)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.IPAddress.cs (1)
45public bool Equals(IPAddress other)
System\Net\Sockets\IPPacketInformation.cs (1)
35public bool Equals(IPPacketInformation other) =>
System\Net\Sockets\UdpReceiveResult.cs (1)
74public bool Equals(UdpReceiveResult other)
System.Numerics.Tensors (3)
System\Buffers\NIndex.cs (1)
150public bool Equals(NIndex other) => _value == other._value;
System\Buffers\NRange.cs (1)
55public bool Equals(NRange other) => other.Start.Equals(Start) && other.End.Equals(End);
System\Numerics\Tensors\netcore\TensorShape.cs (1)
1083public bool Equals(TensorShape other) => (this == other);
System.Private.CoreLib (90)
src\libraries\System.Private.CoreLib\src\System\Boolean.cs (1)
131public bool Equals(bool obj)
src\libraries\System.Private.CoreLib\src\System\Buffers\StandardFormat.cs (1)
145public bool Equals(StandardFormat other) => _format == other._format && _precision == other._precision;
src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
85public bool Equals(byte obj)
src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
127public bool Equals(char obj)
src\libraries\System.Private.CoreLib\src\System\DateOnly.cs (1)
262public bool Equals(DateOnly value) => _dayNumber == value._dayNumber;
src\libraries\System.Private.CoreLib\src\System\DateTime.cs (1)
1192public bool Equals(DateTime value)
src\libraries\System.Private.CoreLib\src\System\DateTimeOffset.cs (1)
568public bool Equals(DateTimeOffset other) => UtcTicks == other.UtcTicks;
src\libraries\System.Private.CoreLib\src\System\Decimal.cs (1)
451public bool Equals(decimal value) =>
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventDescriptor.cs (1)
100public bool Equals(EventDescriptor other) =>
src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
330public bool Equals(double obj)
src\libraries\System.Private.CoreLib\src\System\Globalization\SortVersion.cs (1)
47public bool Equals([NotNullWhen(true)] SortVersion? other)
src\libraries\System.Private.CoreLib\src\System\Guid.cs (1)
1074public bool Equals(Guid g) => EqualsCore(this, g);
src\libraries\System.Private.CoreLib\src\System\Half.cs (1)
480public bool Equals(Half other)
src\libraries\System.Private.CoreLib\src\System\Index.cs (1)
129public bool Equals(Index other) => _value == other._value;
src\libraries\System.Private.CoreLib\src\System\Int128.cs (1)
89public bool Equals(Int128 other)
src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
86public bool Equals(short obj)
src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
103public bool Equals(int obj)
src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
100public bool Equals(long obj)
src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (1)
204public bool Equals(nint other) => _value == other;
src\libraries\System.Private.CoreLib\src\System\Memory.cs (1)
467public bool Equals(Memory<T> other)
src\libraries\System.Private.CoreLib\src\System\Numerics\Matrix3x2.cs (1)
587public readonly bool Equals(Matrix3x2 other)
src\libraries\System.Private.CoreLib\src\System\Numerics\Matrix3x2.Impl.cs (1)
439readonly bool IEquatable<Impl>.Equals(Impl other) => Equals(in other);
src\libraries\System.Private.CoreLib\src\System\Numerics\Matrix4x4.cs (1)
1043public readonly bool Equals(Matrix4x4 other)
src\libraries\System.Private.CoreLib\src\System\Numerics\Matrix4x4.Impl.cs (1)
1672readonly bool IEquatable<Impl>.Equals(Impl other) => Equals(in other);
src\libraries\System.Private.CoreLib\src\System\Numerics\Plane.cs (1)
189public readonly bool Equals(Plane other) => this.AsVector128().Equals(other.AsVector128());
src\libraries\System.Private.CoreLib\src\System\Numerics\Quaternion.cs (1)
438public readonly bool Equals(Quaternion other) => this.AsVector128().Equals(other.AsVector128());
src\libraries\System.Private.CoreLib\src\System\Numerics\TotalOrderIeee754Comparer.cs (1)
227public bool Equals(TotalOrderIeee754Comparer<T> other) => true;
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector_1.cs (1)
702public bool Equals(Vector<T> other)
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector2.cs (1)
1045public readonly bool Equals(Vector2 other) => this.AsVector128().Equals(other.AsVector128());
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector3.cs (1)
1058public readonly bool Equals(Vector3 other) => this.AsVector128().Equals(other.AsVector128());
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector4.cs (1)
1085public readonly bool Equals(Vector4 other) => this.AsVector128().Equals(other.AsVector128());
src\libraries\System.Private.CoreLib\src\System\Range.cs (1)
54public bool Equals(Range other) => other.Start.Equals(Start) && other.End.Equals(End);
src\libraries\System.Private.CoreLib\src\System\ReadOnlyMemory.cs (1)
379public bool Equals(ReadOnlyMemory<T> other)
src\libraries\System.Private.CoreLib\src\System\Reflection\CustomAttributeNamedArgument.cs (1)
58public bool Equals(CustomAttributeNamedArgument other) =>
src\libraries\System.Private.CoreLib\src\System\Reflection\CustomAttributeTypedArgument.cs (1)
94public bool Equals(CustomAttributeTypedArgument other) => _value == other._value && _argumentType == other._argumentType;
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\Label.cs (1)
33public bool Equals(Label obj) =>
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\Opcode.cs (1)
126public bool Equals(OpCode obj) => obj.Value == Value;
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ArrayWithOffset.cs (1)
58public bool Equals(ArrayWithOffset obj)
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\CLong.cs (1)
65public bool Equals(CLong other) => _value == other._value;
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\CULong.cs (1)
65public bool Equals(CULong other) => _value == other._value;
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\GCHandle.cs (1)
176public readonly bool Equals(GCHandle other) => _handle == other._handle;
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\GCHandle.T.cs (1)
105public readonly bool Equals(GCHandle<T> other) => _handle == other._handle;
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (1)
826public bool Equals(NFloat other) => _value.Equals(other._value);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\OSPlatform.cs (1)
35public bool Equals(OSPlatform other)
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\PinnedGCHandle.T.cs (1)
139public readonly bool Equals(PinnedGCHandle<T> other) => _handle == other._handle;
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\WeakGCHandle.T.cs (1)
113public readonly bool Equals(WeakGCHandle<T> other) => _handle == other._handle;
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector128_1.cs (1)
402public bool Equals(Vector128<T> other)
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector256_1.cs (1)
390public bool Equals(Vector256<T> other)
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector512_1.cs (1)
390public bool Equals(Vector512<T> other)
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector64_1.cs (1)
449public bool Equals(Vector64<T> other)
src\libraries\System.Private.CoreLib\src\System\Runtime\Versioning\FrameworkName.cs (1)
67public bool Equals([NotNullWhen(true)] FrameworkName? other)
src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
88public bool Equals(sbyte obj)
src\libraries\System.Private.CoreLib\src\System\Single.cs (1)
327public bool Equals(float obj)
src\libraries\System.Private.CoreLib\src\System\String.Comparison.cs (1)
629public bool Equals([NotNullWhen(true)] string? value)
src\libraries\System.Private.CoreLib\src\System\Text\Rune.cs (1)
781public bool Equals(Rune other) => this == other;
src\libraries\System.Private.CoreLib\src\System\Threading\CancellationToken.cs (1)
306public bool Equals(CancellationToken other) => _source == other._source;
src\libraries\System.Private.CoreLib\src\System\Threading\CancellationTokenRegistration.cs (1)
152public bool Equals(CancellationTokenRegistration other) => _node == other._node && _id == other._id;
src\libraries\System.Private.CoreLib\src\System\Threading\ExecutionContext.cs (1)
601public bool Equals(AsyncFlowControl obj)
src\libraries\System.Private.CoreLib\src\System\Threading\Lock.cs (1)
840bool IEquatable<State>.Equals(State other) => this == other;
src\libraries\System.Private.CoreLib\src\System\Threading\LowLevelLifoSemaphore.cs (1)
370public bool Equals(Counts other) => _data == other._data;
src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.ThreadCounts.cs (1)
121public bool Equals(ThreadCounts other) => _data == other._data;
src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.WorkerTracking.cs (1)
125public bool Equals(CountsOfThreadsProcessingUserCallbacks other) => _data == other._data;
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\ValueTask.cs (2)
155public bool Equals(ValueTask other) => _obj == other._obj && _token == other._token; 553public bool Equals(ValueTask<TResult> other) =>
src\libraries\System.Private.CoreLib\src\System\TimeOnly.cs (1)
426public bool Equals(TimeOnly value) => _ticks == value._ticks;
src\libraries\System.Private.CoreLib\src\System\TimeSpan.cs (1)
433public bool Equals(TimeSpan obj) => Equals(this, obj);
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.AdjustmentRule.cs (1)
50public bool Equals([NotNullWhen(true)] AdjustmentRule? other) =>
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.cs (1)
857public bool Equals([NotNullWhen(true)] TimeZoneInfo? other) =>
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.TransitionTime.cs (1)
40public bool Equals(TransitionTime other) =>
src\libraries\System.Private.CoreLib\src\System\UInt128.cs (1)
91public bool Equals(UInt128 other)
src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
81public bool Equals(ushort obj)
src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
97public bool Equals(uint obj)
src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
97public bool Equals(ulong obj)
src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (1)
200public bool Equals(nuint other) => _value == other;
src\libraries\System.Private.CoreLib\src\System\ValueTuple.cs (9)
50public bool Equals(ValueTuple other) 308public bool Equals(ValueTuple<T1> other) 479public bool Equals(ValueTuple<T1, T2> other) 686public bool Equals(ValueTuple<T1, T2, T3> other) 891public bool Equals(ValueTuple<T1, T2, T3, T4> other) 1114public bool Equals(ValueTuple<T1, T2, T3, T4, T5> other) 1355public bool Equals(ValueTuple<T1, T2, T3, T4, T5, T6> other) 1614public bool Equals(ValueTuple<T1, T2, T3, T4, T5, T6, T7> other) 1897public bool Equals(ValueTuple<T1, T2, T3, T4, T5, T6, T7, TRest> other)
src\libraries\System.Private.CoreLib\src\System\Version.cs (1)
143public bool Equals([NotNullWhen(true)] Version? obj)
src\System\Reflection\Emit\RuntimeMethodBuilder.cs (1)
875public bool Equals(ExceptionHandler other)
src\System\Runtime\CompilerServices\VirtualDispatchHelpers.cs (1)
32public bool Equals(VirtualResolutionData other) =>
src\System\RuntimeHandles.cs (4)
100public bool Equals(RuntimeTypeHandle handle) 1036public bool Equals(RuntimeMethodHandle handle) 1466public bool Equals(RuntimeFieldHandle handle) 1763public bool Equals(ModuleHandle handle)
System.Private.DataContractSerialization (2)
System\Xml\PrefixHandle.cs (1)
182public bool Equals([NotNullWhen(true)] PrefixHandle? prefix2)
System\Xml\StringHandle.cs (1)
234public bool Equals([NotNullWhen(true)] StringHandle? other)
System.Private.Uri (1)
System\Uri.cs (1)
1718public bool Equals([NotNullWhen(true)] Uri? other)
System.Private.Windows.Core (5)
System\Private\Windows\Count.cs (1)
32public bool Equals(Count other) => _count == other._count;
System\Private\Windows\Id.cs (1)
36public bool Equals(Id other) => _isNull == other._isNull && _id == other._id;
System\Private\Windows\Nrbf\FullyQualifiedTypeName.cs (1)
28public bool Equals(FullyQualifiedTypeName other) =>
Windows\Win32\Foundation\HandleRef.cs (1)
42public bool Equals(HandleRef<THandle> other)
Windows\Win32\System\Com\CY.cs (1)
8public readonly bool Equals(CY other) => int64 == other.int64;
System.Private.Xml (4)
System\Xml\BinaryXml\XmlBinaryReader.cs (1)
105public bool Equals(QName other) =>
System\Xml\Cache\XPathNodeInfoAtom.cs (1)
289public bool Equals(XPathNodeInfoAtom? other)
System\Xml\Xsl\Pair.cs (1)
24public bool Equals(Int32Pair other) => Left == other.Left && Right == other.Right;
System\Xml\Xsl\XmlQueryCardinality.cs (1)
99public bool Equals(XmlQueryCardinality other)
System.Private.Xml.Linq (1)
System\Xml\Linq\XName.cs (1)
180bool IEquatable<XName>.Equals(XName? other)
System.Reflection.Metadata (45)
System\Reflection\Metadata\BlobContentId.cs (1)
126public bool Equals(BlobContentId other) => Guid == other.Guid && Stamp == other.Stamp;
System\Reflection\Metadata\Ecma335\EditAndContinueLogEntry.cs (1)
22public bool Equals(EditAndContinueLogEntry other) =>
System\Reflection\Metadata\Ecma335\Encoding\LabelHandle.cs (1)
24public bool Equals(LabelHandle other) => Id == other.Id;
System\Reflection\Metadata\EntityHandle.cs (1)
103public bool Equals(EntityHandle other)
System\Reflection\Metadata\Handle.cs (1)
168public bool Equals(Handle other)
System\Reflection\Metadata\PortablePdb\DocumentNameBlobHandle.cs (1)
62public bool Equals(DocumentNameBlobHandle other)
System\Reflection\Metadata\PortablePdb\Handles.Debug.cs (7)
77public bool Equals(DocumentHandle other) 160public bool Equals(MethodDebugInformationHandle other) 255public bool Equals(LocalScopeHandle other) 338public bool Equals(LocalVariableHandle other) 421public bool Equals(LocalConstantHandle other) 504public bool Equals(ImportScopeHandle other) 587public bool Equals(CustomDebugInformationHandle other)
System\Reflection\Metadata\PortablePdb\SequencePoint.cs (1)
56public bool Equals(SequencePoint other)
System\Reflection\Metadata\Signatures\SignatureHeader.cs (1)
94public bool Equals(SignatureHeader other)
System\Reflection\Metadata\TypeSystem\Handles.TypeSystem.cs (30)
77public bool Equals(ModuleDefinitionHandle other) 160public bool Equals(AssemblyDefinitionHandle other) 243public bool Equals(InterfaceImplementationHandle other) 326public bool Equals(MethodDefinitionHandle other) 421public bool Equals(MethodImplementationHandle other) 504public bool Equals(MethodSpecificationHandle other) 587public bool Equals(TypeDefinitionHandle other) 670public bool Equals(ExportedTypeHandle other) 753public bool Equals(TypeReferenceHandle other) 836public bool Equals(TypeSpecificationHandle other) 919public bool Equals(MemberReferenceHandle other) 1002public bool Equals(FieldDefinitionHandle other) 1085public bool Equals(EventDefinitionHandle other) 1168public bool Equals(PropertyDefinitionHandle other) 1251public bool Equals(StandaloneSignatureHandle other) 1334public bool Equals(ParameterHandle other) 1417public bool Equals(GenericParameterHandle other) 1500public bool Equals(GenericParameterConstraintHandle other) 1583public bool Equals(ModuleReferenceHandle other) 1701public bool Equals(AssemblyReferenceHandle other) 1784public bool Equals(CustomAttributeHandle other) 1867public bool Equals(DeclarativeSecurityAttributeHandle other) 1950public bool Equals(ConstantHandle other) 2033public bool Equals(ManifestResourceHandle other) 2116public bool Equals(AssemblyFileHandle other) 2193public bool Equals(UserStringHandle other) 2409public bool Equals(StringHandle other) 2527public bool Equals(NamespaceDefinitionHandle other) 2658public bool Equals(BlobHandle other) 2726public bool Equals(GuidHandle other)
System.Reflection.MetadataLoadContext (3)
System\Reflection\TypeLoading\General\RoAssemblyName.cs (1)
52public bool Equals(RoAssemblyName? other)
System\Reflection\TypeLoading\Types\RoArrayType.Key.cs (1)
27public bool Equals(Key other)
System\Reflection\TypeLoading\Types\RoConstructedGenericType.Key.cs (1)
25public bool Equals(Key other)
System.Runtime.Caching (2)
System\Runtime\Caching\CacheExpires.cs (1)
36public bool Equals(ExpiresEntryRef other) => _ref == other._ref;
System\Runtime\Caching\CacheUsage.cs (1)
37public bool Equals(UsageEntryRef other) => _ref == other._ref;
System.Runtime.Numerics (4)
System\Number.Polyfill.cs (2)
43public bool Equals(Utf16Char other) => value == other.value; 58public bool Equals(Utf8Char other) => value == other.value;
System\Numerics\BigInteger.cs (1)
1140public bool Equals(BigInteger other)
System\Numerics\Complex.cs (1)
352public bool Equals(Complex value)
System.Security.Cryptography (13)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.X509.cs (1)
427public bool Equals(X509VerifyStatusCode other) => Code == other.Code;
src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsaAlgorithm.cs (1)
221public bool Equals([NotNullWhen(true)] CompositeMLDsaAlgorithm? other) => other is not null && other.Name == Name;
src\libraries\Common\src\System\Security\Cryptography\MLDsaAlgorithm.cs (1)
133public bool Equals([NotNullWhen(true)] MLDsaAlgorithm? other) => other is not null && other.Name == Name;
src\libraries\Common\src\System\Security\Cryptography\MLKemAlgorithm.cs (1)
121public bool Equals([NotNullWhen(true)] MLKemAlgorithm? other) => other is not null && other.Name == Name;
src\libraries\Common\src\System\Security\Cryptography\SlhDsaAlgorithm.cs (1)
214public bool Equals([NotNullWhen(true)] SlhDsaAlgorithm? other) => other is not null && other.Name == Name;
System\Security\Cryptography\CngAlgorithm.cs (1)
62public bool Equals([NotNullWhen(true)] CngAlgorithm? other)
System\Security\Cryptography\CngAlgorithmGroup.cs (1)
63public bool Equals([NotNullWhen(true)] CngAlgorithmGroup? other)
System\Security\Cryptography\CngKeyBlobFormat.cs (1)
63public bool Equals([NotNullWhen(true)] CngKeyBlobFormat? other)
System\Security\Cryptography\CngProperty.cs (1)
62public bool Equals(CngProperty other)
System\Security\Cryptography\CngProvider.cs (1)
60public bool Equals([NotNullWhen(true)] CngProvider? other)
System\Security\Cryptography\HashAlgorithmName.cs (1)
103public bool Equals(HashAlgorithmName other)
System\Security\Cryptography\RSAEncryptionPadding.cs (1)
108public bool Equals([NotNullWhen(true)] RSAEncryptionPadding? other)
System\Security\Cryptography\RSASignaturePadding.cs (1)
62public bool Equals([NotNullWhen(true)] RSASignaturePadding? other)
System.Security.Cryptography.Cose (2)
System\Security\Cryptography\Cose\CoseHeaderLabel.cs (1)
74public bool Equals(CoseHeaderLabel other)
System\Security\Cryptography\Cose\CoseHeaderValue.cs (1)
246public bool Equals(CoseHeaderValue other) => EncodedValue.Span.SequenceEqual(other.EncodedValue.Span);
System.ServiceProcess.ServiceController (1)
artifacts\obj\System.ServiceProcess.ServiceController\Debug\net10.0\System.ServiceProcess.ServiceController.notsupported.cs (1)
135public bool Equals(System.ServiceProcess.SessionChangeDescription changeDescription) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_ServiceController); }
System.Speech (4)
artifacts\obj\System.Speech\Debug\net10.0\System.Speech.notsupported.cs (4)
939public bool Equals(System.Speech.Synthesis.TtsEngine.ContourPoint other) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemSpeech); } 990public bool Equals(System.Speech.Synthesis.TtsEngine.FragmentState other) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemSpeech); } 1033public bool Equals(System.Speech.Synthesis.TtsEngine.ProsodyNumber other) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemSpeech); } 1112public bool Equals(System.Speech.Synthesis.TtsEngine.SpeechEventInfo other) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemSpeech); }
System.Text.Json (4)
System\Text\Json\JsonEncodedText.cs (1)
144public bool Equals(JsonEncodedText other)
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (1)
1061public bool Equals(ParameterLookupKey other) => Type == other.Type && string.Equals(Name, other.Name, StringComparison.OrdinalIgnoreCase);
System\Text\Json\Serialization\Metadata\PropertyRef.cs (1)
37public bool Equals(PropertyRef other) => Equals(other.Utf8PropertyName, other.Key);
System\Text\Json\Serialization\ReferenceEqualsWrapper.cs (1)
16public bool Equals(ReferenceEqualsWrapper obj) => ReferenceEquals(_object, obj._object);
System.Text.Json.SourceGeneration (3)
src\libraries\Common\src\SourceGenerators\DiagnosticInfo.cs (1)
42public readonly bool Equals(DiagnosticInfo other)
src\libraries\Common\src\SourceGenerators\ImmutableEquatableArray.cs (1)
27public bool Equals(ImmutableEquatableArray<T>? other)
src\libraries\Common\src\SourceGenerators\TypeRef.cs (1)
38public bool Equals(TypeRef? other) => other != null && FullyQualifiedName == other.FullyQualifiedName;
System.Text.RegularExpressions (5)
System\Text\RegularExpressions\Regex.Cache.cs (1)
298public bool Equals(Key other) =>
System\Text\RegularExpressions\Symbolic\BDD.cs (1)
147public bool Equals(BDD? bdd) =>
System\Text\RegularExpressions\Symbolic\BitVector.cs (1)
189public bool Equals(BitVector other) =>
System\Text\RegularExpressions\Symbolic\SymbolicRegexBuilder.cs (1)
90public bool Equals(SymbolicRegexBuilder<TSet>.NodeCacheKey other) =>
System\Text\RegularExpressions\Symbolic\SymbolicRegexInfo.cs (1)
165public bool Equals(SymbolicRegexInfo other) => _info == other._info;
System.Threading (1)
System\Threading\LockCookie.cs (1)
25public bool Equals(LockCookie obj) =>
System.Threading.RateLimiting (1)
System\Threading\RateLimiting\MetadataName.T.cs (1)
49public bool Equals(MetadataName<T>? other)
System.Threading.Tasks.Dataflow (1)
Base\DataflowMessageHeader.cs (1)
52public bool Equals(DataflowMessageHeader other)
System.Transactions.Local (3)
System\Transactions\EnlistmentTraceIdentifier.cs (1)
53public bool Equals(EnlistmentTraceIdentifier other) =>
System\Transactions\TransactionOptions.cs (1)
32public bool Equals(TransactionOptions other) =>
System\Transactions\TransactionTraceIdentifier.cs (1)
40public bool Equals(TransactionTraceIdentifier other) =>
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonControlLength.cs (1)
110public bool Equals(RibbonControlLength other)
System.Windows.Forms (4)
System\Windows\Forms\Controls\Labels\LinkArea.cs (1)
49public readonly bool Equals(LinkArea other)
System\Windows\Forms\DataBinding\BindingMemberInfo.cs (1)
47public bool Equals(BindingMemberInfo other)
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanelCellPosition.cs (1)
34public readonly bool Equals(TableLayoutPanelCellPosition other)
System\Windows\Forms\Rendering\ControlPaint.HLSColor.cs (1)
132public bool Equals(HLSColor other)
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\SelectionUIService.HitTestInfo.cs (1)
41public bool Equals(HitTestInfo other)
System.Windows.Forms.Primitives (3)
System\Windows\Forms\Message.cs (1)
124public readonly bool Equals(Message other)
System\Windows\Forms\Padding.cs (1)
138public readonly bool Equals(Padding other) =>
Windows\Win32\PInvoke.LCID.cs (1)
16public readonly bool Equals(LCID other) => other.RawValue == RawValue;
System.Windows.Forms.PrivateSourceGenerators (1)
System\Windows\Forms\SourceGenerators\EquatableArray`1.cs (1)
31public bool Equals(EquatableArray<T> other)
System.Xaml (4)
System\Xaml\AttachableMemberIdentifier.cs (1)
55public bool Equals(AttachableMemberIdentifier other)
System\Xaml\Schema\XamlValueConverter.cs (1)
132public bool Equals(XamlValueConverter<TConverterBase> other) => this == other;
System\Xaml\XamlMember.cs (1)
1049public bool Equals(XamlMember other)
System\Xaml\XamlType.cs (1)
1871public bool Equals(XamlType other)
Test.Utilities (25)
src\Compilers\Core\Portable\Collections\BitVector.cs (1)
41public bool Equals(BitVector other)
src\Compilers\Core\Portable\FileSystem\RelativePathResolver.cs (1)
60public bool Equals(RelativePathResolver? other) =>
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
309public bool Equals(ImmutableSegmentedDictionary<TKey, TValue> other)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
322public bool Equals(ImmutableSegmentedHashSet<T> other)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
596public bool Equals(ImmutableSegmentedList<T> other)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
186public bool Equals(SegmentedArray<T> other)
src\Dependencies\Threading\VoidResult.cs (1)
22public bool Equals(VoidResult other)
src\RoslynAnalyzers\Utilities\Compiler\Options\OptionKey.cs (1)
54public bool Equals(OptionKey other)
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
255public bool Equals(SymbolNamesWithValueOption<TValue>? other)
src\RoslynAnalyzers\Utilities\Compiler\Options\Unit.cs (1)
28public readonly bool Equals(Unit other) => true;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeGeneration\ParameterName.cs (1)
66public bool Equals(ParameterName other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (1)
237public bool Equals(CodeStyleOption2<T>? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\Section.cs (1)
170public bool Equals(Section? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolUsageInfo.cs (1)
55public bool Equals(SymbolUsageInfo other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenData.cs (1)
44public bool Equals(TokenData other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingRule.cs (1)
21public bool Equals(NamingRule other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
368public bool Equals(NamingStylePreferences? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (2)
191public bool Equals(SymbolSpecification other) 550public bool Equals(ModifierKind other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\Option2.cs (1)
95public bool Equals(IOption2? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (1)
74public bool Equals(OptionDefinition? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\PerLanguageOption2.cs (1)
83public bool Equals(IOption2? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
356public readonly bool Equals(SymbolKey other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\InterceptsLocationUtilities.cs (1)
22public readonly bool Equals(InterceptsLocationData other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
157public bool Equals(SyntaxPath? other)
Text.Analyzers (28)
src\Compilers\Core\Portable\Collections\BitVector.cs (1)
41public bool Equals(BitVector other)
src\Compilers\Core\Portable\FileSystem\RelativePathResolver.cs (1)
60public bool Equals(RelativePathResolver? other) =>
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
309public bool Equals(ImmutableSegmentedDictionary<TKey, TValue> other)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
322public bool Equals(ImmutableSegmentedHashSet<T> other)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
596public bool Equals(ImmutableSegmentedList<T> other)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
186public bool Equals(SegmentedArray<T> other)
src\Dependencies\Contracts\Index.cs (1)
133public bool Equals(Index other) => _value == other._value;
src\Dependencies\Contracts\Range.cs (1)
53public bool Equals(Range other) => other.Start.Equals(Start) && other.End.Equals(End);
src\Dependencies\Threading\VoidResult.cs (1)
22public bool Equals(VoidResult other)
src\RoslynAnalyzers\Utilities\Compiler\Options\OptionKey.cs (1)
54public bool Equals(OptionKey other)
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
255public bool Equals(SymbolNamesWithValueOption<TValue>? other)
src\RoslynAnalyzers\Utilities\Compiler\Options\Unit.cs (1)
28public readonly bool Equals(Unit other) => true;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeGeneration\ParameterName.cs (1)
66public bool Equals(ParameterName other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (1)
237public bool Equals(CodeStyleOption2<T>? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\Section.cs (1)
170public bool Equals(Section? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolUsageInfo.cs (1)
55public bool Equals(SymbolUsageInfo other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenData.cs (1)
44public bool Equals(TokenData other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingRule.cs (1)
21public bool Equals(NamingRule other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
368public bool Equals(NamingStylePreferences? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (2)
191public bool Equals(SymbolSpecification other) 550public bool Equals(ModifierKind other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\Option2.cs (1)
95public bool Equals(IOption2? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (1)
74public bool Equals(OptionDefinition? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\PerLanguageOption2.cs (1)
83public bool Equals(IOption2? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
356public readonly bool Equals(SymbolKey other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\InterceptsLocationUtilities.cs (1)
22public readonly bool Equals(InterceptsLocationData other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
157public bool Equals(SyntaxPath? other)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (1)
217public bool Equals(ISymbol other)
UnitTests.Common (1)
TestTypes.cs (1)
564public bool Equals(ComplexCompositeType other)
1595 references to Equals
GenerateDocumentationAndConfigFiles (63)
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (1)
38if (generatedCodeAttribute.Equals(attribute.AttributeClass))
src\RoslynAnalyzers\Utilities\Compiler\Extensions\INamedTypeSymbolExtensions.cs (2)
54if (baseType.Equals(parentType)) 60if (type.OriginalDefinition.AllInterfaces.Any(baseInterface => baseInterface.OriginalDefinition.Equals(parentType)))
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (1)
335operation is ILocalFunctionOperation localFunction && localFunction.Symbol.OriginalDefinition.Equals(lambdaOrLocalFunction.OriginalDefinition));
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IPropertySymbolExtensions.cs (1)
20=> propertySymbol.ContainingType.GetMembers().OfType<IFieldSymbol>().Any(f => f.IsImplicitlyDeclared && propertySymbol.Equals(f.AssociatedSymbol));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
457notImplementedExceptionType.Equals(objectCreation.Type);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (1)
178return type.AllInterfaces.Any(static (i, enumerableType) => i.OriginalDefinition.Equals(enumerableType), enumerableType);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (1)
488Debug.Assert(localFunction.Equals(localFunction.OriginalDefinition));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyleRules.cs (1)
95if (symbol.Equals(containingType.FindImplementationForInterfaceMember(implementedInterfaceMember)))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFactsExtensions.cs (1)
38if (!innerTypeInfo.Type.Equals(innerTypeInfo.ConvertedType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BodyLevelSymbolKey.cs (1)
91if (possibleSymbol.symbol.Equals(symbol))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ErrorTypeSymbolKey.cs (1)
34var isConstructed = !symbol.Equals(symbol.ConstructedFrom);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.MethodSymbolKey.cs (3)
17Debug.Assert(symbol.Equals(symbol.ConstructedFrom)); 104if (!method.Equals(method.ConstructedFrom)) 129Debug.Assert(symbol.Equals(symbol.ConstructedFrom));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamedTypeSymbolKey.cs (1)
29symbol.Equals(symbol.ConstructedFrom) || symbol.IsUnboundGenericType ? [] : symbol.TypeArguments);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (3)
364if (!methodSymbol.Equals(methodSymbol.ConstructedFrom)) 500if (typeParameter.DeclaringMethod!.Equals(method)) 518Contract.ThrowIfFalse(method.Equals(_methodSymbolStack[^1]));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
923if (symbol.Equals(overriddenMember)) 1007if (!newSymbol.Equals(implementationMember))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (1)
140dictionary[key] = existingArray.IsEmpty && value.Equals(defaultArray[0]) ? defaultArray : existingArray.Add(value);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IMethodSymbolExtensions.cs (3)
108methodSymbol.ReturnType.OriginalDefinition.Equals(taskType) || 109methodSymbol.ReturnType.OriginalDefinition.Equals(genericTaskType)); 123return method.ReturnType.Equals(compilation.TaskType()) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (3)
61if (current.Equals(outer)) 75.FirstOrDefault(s => symbol.Equals(s.GetOverriddenMember())); 459if (type.Equals(systemAttributeType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IPropertySymbolExtensions.cs (1)
17.FirstOrDefault(f => property.Equals(f.AssociatedSymbol));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (2)
161if (symbol.Equals(impl)) 814return symbol.GetAttributes().Any(static (attribute, attributeClass) => attributeClass.Equals(attribute.AttributeClass), attributeClass);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions_Accessibility.cs (1)
440if (current.Equals(originalContainingType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.AnonymousTypeRemover.cs (2)
26if (elementType != null && elementType.Equals(symbol.ElementType)) 57if (elementType != null && elementType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (2)
415if (typeSymbol.OriginalDefinition.Equals(expressionOfT)) 601if (baseType.Equals(compilation.ExceptionType()))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.SubstituteTypesVisitor.cs (2)
105if (elementType != null && elementType.Equals(symbol.ElementType)) 122if (pointedAtType != null && pointedAtType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.UnavailableTypeParameterRemover.cs (2)
29if (elementType != null && elementType.Equals(symbol.ElementType)) 57if (elementType != null && elementType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.UnnamedErrorTypeRemover.cs (2)
28if (elementType != null && elementType.Equals(symbol.ElementType)) 61if (elementType != null && elementType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (2)
192=> symbol.Equals(symbol.ConstructedFrom); 195=> symbol.Equals(symbol.ConstructedFrom);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
592if (x.Equals(y))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (2)
163=> GetAttributes().WhereAsArray(a => a.AttributeClass.Equals(attributeType)); 166=> GetAttributes().WhereAsArray(a => a.AttributeConstructor.Equals(attributeConstructor));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (1)
263if (containedNamespace.Equals(symbol))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (1)
173=> arg.removeAttributeTypes.Any(attr => attr.Equals(a.AttributeClass)) ||
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IPropertySymbolExtensions.cs (1)
70=> arg.attributesToRemove.Any(attr => attr.Equals(a.AttributeClass)) ||
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\KnownTypes.cs (4)
22if (returnType.Equals(this.TaskType)) 25if (returnType.Equals(this.ValueTaskType)) 28if (returnType.OriginalDefinition.Equals(this.TaskOfTType)) 31if (returnType.OriginalDefinition.Equals(this.ValueTaskOfTType))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (1)
148if (!throughMemberType.Equals(interfaceBeingImplemented))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
75.Single(m => containingType.Equals(m.Parameters.FirstOrDefault()?.Type));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\InitializeParameterHelpersCore.cs (2)
40parameter.Equals(parameterReference.Parameter); 150memberReference.Member.ContainingType.Equals(containingType))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SymbolFinder\SymbolFinderInternal.cs (1)
65symbol.ContainingAssembly.Equals(compilation.Assembly))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NullableHelpers.cs (4)
145ILocalReferenceOperation localReference => localReference.Local.Equals(symbol), 146IParameterReferenceOperation parameterReference => parameterReference.Parameter.Equals(symbol), 149IForEachLoopOperation { LoopControlVariable: IVariableDeclaratorOperation variableDeclarator } => variableDeclarator.Symbol.Equals(symbol), 152IVariableDeclaratorOperation variableDeclarator when includeDeclaration => variableDeclarator.GetVariableInitializer() != null && variableDeclarator.Symbol.Equals(symbol),
illink (13)
ILLink.RoslynAnalyzer (14)
DataFlow\LocalStateAndContextLattice.cs (1)
25LocalState.Equals(other.LocalState) && Context.Equals(other.Context);
src\tools\illink\src\ILLink.Shared\DataFlow\DefaultValueDictionary.cs (3)
41if (value.Equals(DefaultValue)) 49if (!DefaultValue.Equals(other.DefaultValue)) 63if (!Get(kvp.Key).Equals(kvp.Value))
src\tools\illink\src\ILLink.Shared\DataFlow\ForwardDataFlowAnalysis.cs (9)
255if (block.Equals(cfg.Entry)) 261bool isTryStart = isTryBlock && block.Equals(cfg.FirstBlock(tryOrCatchOrFilterRegion!)); 263bool isCatchStartWithoutFilter = isCatchBlock && block.Equals(cfg.FirstBlock(tryOrCatchOrFilterRegion!)) && !cfg.HasFilter(tryOrCatchOrFilterRegion!); 265bool isFilterStart = isFilterBlock && block.Equals(cfg.FirstBlock(tryOrCatchOrFilterRegion!)); 270bool isFinallyStart = isFinallyBlock && block.Equals(cfg.FirstBlock(finallyRegion!)); 373if (!changed && !newValue.Equals(state.Current)) 390if (!changed && !newValue.Equals(value)) 399if (exceptionState?.Value.Equals(oldExceptionState!.Value) == false) 434if (!changed && !finallyInputState.Equals(oldFinallyInputState))
src\tools\illink\src\ILLink.Shared\DataFlow\IControlFlowGraph.cs (1)
80if (!Source.Equals(other.Source))
Metrics (47)
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (1)
38if (generatedCodeAttribute.Equals(attribute.AttributeClass))
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (2)
394a.AttributeClass.Equals(wellKnownTypeProvider.GetOrCreateTypeByMetadataName(WellKnownTypeNames.SystemRuntimeCompilerServicesCompilerGeneratedAttribute)) || 395a.AttributeClass.Equals(wellKnownTypeProvider.GetOrCreateTypeByMetadataName(WellKnownTypeNames.SystemCodeDomCompilerGeneratedCodeAttribute))),
src\RoslynAnalyzers\Utilities\Compiler\Extensions\INamedTypeSymbolExtensions.cs (2)
54if (baseType.Equals(parentType)) 60if (type.OriginalDefinition.AllInterfaces.Any(baseInterface => baseInterface.OriginalDefinition.Equals(parentType)))
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (1)
335operation is ILocalFunctionOperation localFunction && localFunction.Symbol.OriginalDefinition.Equals(lambdaOrLocalFunction.OriginalDefinition));
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IPropertySymbolExtensions.cs (1)
20=> propertySymbol.ContainingType.GetMembers().OfType<IFieldSymbol>().Any(f => f.IsImplicitlyDeclared && propertySymbol.Equals(f.AssociatedSymbol));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
457notImplementedExceptionType.Equals(objectCreation.Type);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (1)
178return type.AllInterfaces.Any(static (i, enumerableType) => i.OriginalDefinition.Equals(enumerableType), enumerableType);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (1)
488Debug.Assert(localFunction.Equals(localFunction.OriginalDefinition));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyleRules.cs (1)
95if (symbol.Equals(containingType.FindImplementationForInterfaceMember(implementedInterfaceMember)))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFactsExtensions.cs (1)
38if (!innerTypeInfo.Type.Equals(innerTypeInfo.ConvertedType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BodyLevelSymbolKey.cs (1)
91if (possibleSymbol.symbol.Equals(symbol))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ErrorTypeSymbolKey.cs (1)
34var isConstructed = !symbol.Equals(symbol.ConstructedFrom);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.MethodSymbolKey.cs (3)
17Debug.Assert(symbol.Equals(symbol.ConstructedFrom)); 104if (!method.Equals(method.ConstructedFrom)) 129Debug.Assert(symbol.Equals(symbol.ConstructedFrom));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamedTypeSymbolKey.cs (1)
29symbol.Equals(symbol.ConstructedFrom) || symbol.IsUnboundGenericType ? [] : symbol.TypeArguments);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (3)
364if (!methodSymbol.Equals(methodSymbol.ConstructedFrom)) 500if (typeParameter.DeclaringMethod!.Equals(method)) 518Contract.ThrowIfFalse(method.Equals(_methodSymbolStack[^1]));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
923if (symbol.Equals(overriddenMember)) 1007if (!newSymbol.Equals(implementationMember))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (1)
140dictionary[key] = existingArray.IsEmpty && value.Equals(defaultArray[0]) ? defaultArray : existingArray.Add(value);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IMethodSymbolExtensions.cs (3)
108methodSymbol.ReturnType.OriginalDefinition.Equals(taskType) || 109methodSymbol.ReturnType.OriginalDefinition.Equals(genericTaskType)); 123return method.ReturnType.Equals(compilation.TaskType()) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (3)
61if (current.Equals(outer)) 75.FirstOrDefault(s => symbol.Equals(s.GetOverriddenMember())); 459if (type.Equals(systemAttributeType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IPropertySymbolExtensions.cs (1)
17.FirstOrDefault(f => property.Equals(f.AssociatedSymbol));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (2)
161if (symbol.Equals(impl)) 814return symbol.GetAttributes().Any(static (attribute, attributeClass) => attributeClass.Equals(attribute.AttributeClass), attributeClass);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions_Accessibility.cs (1)
440if (current.Equals(originalContainingType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.AnonymousTypeRemover.cs (2)
26if (elementType != null && elementType.Equals(symbol.ElementType)) 57if (elementType != null && elementType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (2)
415if (typeSymbol.OriginalDefinition.Equals(expressionOfT)) 601if (baseType.Equals(compilation.ExceptionType()))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.SubstituteTypesVisitor.cs (2)
105if (elementType != null && elementType.Equals(symbol.ElementType)) 122if (pointedAtType != null && pointedAtType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.UnavailableTypeParameterRemover.cs (2)
29if (elementType != null && elementType.Equals(symbol.ElementType)) 57if (elementType != null && elementType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.UnnamedErrorTypeRemover.cs (2)
28if (elementType != null && elementType.Equals(symbol.ElementType)) 61if (elementType != null && elementType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (2)
192=> symbol.Equals(symbol.ConstructedFrom); 195=> symbol.Equals(symbol.ConstructedFrom);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
592if (x.Equals(y))
Metrics.Legacy (47)
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (1)
38if (generatedCodeAttribute.Equals(attribute.AttributeClass))
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (2)
394a.AttributeClass.Equals(wellKnownTypeProvider.GetOrCreateTypeByMetadataName(WellKnownTypeNames.SystemRuntimeCompilerServicesCompilerGeneratedAttribute)) || 395a.AttributeClass.Equals(wellKnownTypeProvider.GetOrCreateTypeByMetadataName(WellKnownTypeNames.SystemCodeDomCompilerGeneratedCodeAttribute))),
src\RoslynAnalyzers\Utilities\Compiler\Extensions\INamedTypeSymbolExtensions.cs (2)
54if (baseType.Equals(parentType)) 60if (type.OriginalDefinition.AllInterfaces.Any(baseInterface => baseInterface.OriginalDefinition.Equals(parentType)))
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (1)
335operation is ILocalFunctionOperation localFunction && localFunction.Symbol.OriginalDefinition.Equals(lambdaOrLocalFunction.OriginalDefinition));
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IPropertySymbolExtensions.cs (1)
20=> propertySymbol.ContainingType.GetMembers().OfType<IFieldSymbol>().Any(f => f.IsImplicitlyDeclared && propertySymbol.Equals(f.AssociatedSymbol));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
457notImplementedExceptionType.Equals(objectCreation.Type);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (1)
178return type.AllInterfaces.Any(static (i, enumerableType) => i.OriginalDefinition.Equals(enumerableType), enumerableType);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (1)
488Debug.Assert(localFunction.Equals(localFunction.OriginalDefinition));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyleRules.cs (1)
95if (symbol.Equals(containingType.FindImplementationForInterfaceMember(implementedInterfaceMember)))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFactsExtensions.cs (1)
38if (!innerTypeInfo.Type.Equals(innerTypeInfo.ConvertedType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BodyLevelSymbolKey.cs (1)
91if (possibleSymbol.symbol.Equals(symbol))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ErrorTypeSymbolKey.cs (1)
34var isConstructed = !symbol.Equals(symbol.ConstructedFrom);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.MethodSymbolKey.cs (3)
17Debug.Assert(symbol.Equals(symbol.ConstructedFrom)); 104if (!method.Equals(method.ConstructedFrom)) 129Debug.Assert(symbol.Equals(symbol.ConstructedFrom));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamedTypeSymbolKey.cs (1)
29symbol.Equals(symbol.ConstructedFrom) || symbol.IsUnboundGenericType ? [] : symbol.TypeArguments);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (3)
364if (!methodSymbol.Equals(methodSymbol.ConstructedFrom)) 500if (typeParameter.DeclaringMethod!.Equals(method)) 518Contract.ThrowIfFalse(method.Equals(_methodSymbolStack[^1]));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
923if (symbol.Equals(overriddenMember)) 1007if (!newSymbol.Equals(implementationMember))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (1)
140dictionary[key] = existingArray.IsEmpty && value.Equals(defaultArray[0]) ? defaultArray : existingArray.Add(value);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IMethodSymbolExtensions.cs (3)
108methodSymbol.ReturnType.OriginalDefinition.Equals(taskType) || 109methodSymbol.ReturnType.OriginalDefinition.Equals(genericTaskType)); 123return method.ReturnType.Equals(compilation.TaskType()) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (3)
61if (current.Equals(outer)) 75.FirstOrDefault(s => symbol.Equals(s.GetOverriddenMember())); 459if (type.Equals(systemAttributeType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IPropertySymbolExtensions.cs (1)
17.FirstOrDefault(f => property.Equals(f.AssociatedSymbol));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (2)
161if (symbol.Equals(impl)) 814return symbol.GetAttributes().Any(static (attribute, attributeClass) => attributeClass.Equals(attribute.AttributeClass), attributeClass);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions_Accessibility.cs (1)
440if (current.Equals(originalContainingType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.AnonymousTypeRemover.cs (2)
26if (elementType != null && elementType.Equals(symbol.ElementType)) 57if (elementType != null && elementType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (2)
415if (typeSymbol.OriginalDefinition.Equals(expressionOfT)) 601if (baseType.Equals(compilation.ExceptionType()))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.SubstituteTypesVisitor.cs (2)
105if (elementType != null && elementType.Equals(symbol.ElementType)) 122if (pointedAtType != null && pointedAtType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.UnavailableTypeParameterRemover.cs (2)
29if (elementType != null && elementType.Equals(symbol.ElementType)) 57if (elementType != null && elementType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.UnnamedErrorTypeRemover.cs (2)
28if (elementType != null && elementType.Equals(symbol.ElementType)) 61if (elementType != null && elementType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (2)
192=> symbol.Equals(symbol.ConstructedFrom); 195=> symbol.Equals(symbol.ConstructedFrom);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
592if (x.Equals(y))
Microsoft.Arcade.Test.Common (1)
AssertEx.cs (1)
72return equatable.Equals(y);
Microsoft.AspNetCore.Identity.EntityFrameworkCore (22)
RoleStore.cs (4)
253if (id.Equals(default(TKey))) 271return Roles.FirstOrDefaultAsync(u => u.Id.Equals(roleId), cancellationToken); 341return await RoleClaims.Where(rc => rc.RoleId.Equals(role.Id)).Select(c => new Claim(c.ClaimType!, c.ClaimValue!)).ToListAsync(cancellationToken); 373var claims = await RoleClaims.Where(rc => rc.RoleId.Equals(role.Id) && rc.ClaimValue == claim.Value && rc.ClaimType == claim.Type).ToListAsync(cancellationToken);
UserOnlyStore.cs (8)
300return Users.SingleOrDefaultAsync(u => u.Id.Equals(userId), cancellationToken); 313return UserLogins.SingleOrDefaultAsync(userLogin => userLogin.UserId.Equals(userId) && userLogin.LoginProvider == loginProvider && userLogin.ProviderKey == providerKey, cancellationToken); 339return await UserClaims.Where(uc => uc.UserId.Equals(user.Id)).Select(c => c.ToClaim()).ToListAsync(cancellationToken); 376var matchedClaims = await UserClaims.Where(uc => uc.UserId.Equals(user.Id) && uc.ClaimValue == claim.Value && uc.ClaimType == claim.Type).ToListAsync(cancellationToken); 398var matchedClaims = await UserClaims.Where(uc => uc.UserId.Equals(user.Id) && uc.ClaimValue == claim.Value && uc.ClaimType == claim.Type).ToListAsync(cancellationToken); 459return await UserLogins.Where(l => l.UserId.Equals(userId)) 592userPasskey => userPasskey.UserId.Equals(userId) && userPasskey.CredentialId.SequenceEqual(credentialId), 654.Where(p => p.UserId.Equals(userId))
UserStore.cs (10)
318return Users.SingleOrDefaultAsync(u => u.Id.Equals(userId), cancellationToken); 331return UserLogins.SingleOrDefaultAsync(userLogin => userLogin.UserId.Equals(userId) && userLogin.LoginProvider == loginProvider && userLogin.ProviderKey == providerKey, cancellationToken); 407where userRole.UserId.Equals(userId) 447return await UserClaims.Where(uc => uc.UserId.Equals(user.Id)).Select(c => c.ToClaim()).ToListAsync(cancellationToken); 484var matchedClaims = await UserClaims.Where(uc => uc.UserId.Equals(user.Id) && uc.ClaimValue == claim.Value && uc.ClaimType == claim.Type).ToListAsync(cancellationToken); 506var matchedClaims = await UserClaims.Where(uc => uc.UserId.Equals(user.Id) && uc.ClaimValue == claim.Value && uc.ClaimType == claim.Type).ToListAsync(cancellationToken); 567return await UserLogins.Where(l => l.UserId.Equals(userId)) 652where userrole.RoleId.Equals(role.Id) 728userPasskey => userPasskey.UserId.Equals(userId) && userPasskey.CredentialId.SequenceEqual(credentialId), 789.Where(p => p.UserId.Equals(userId))
Microsoft.Build (1)
Collections\PropertyDictionary.cs (1)
289if (rightProp?.Equals(leftProp) != true)
Microsoft.Build.BuildCheck.UnitTests (1)
EditorConfig_Tests.cs (1)
69return equatable.Equals(y);
Microsoft.Build.Tasks.Core (1)
RoslynCodeTaskFactory\RoslynCodeTaskFactoryTaskInfo.cs (1)
43/// <inheritdoc cref="IEquatable{T}.Equals(T)"/>
Microsoft.Cci.Extensions (1)
Differs\ElementDiffer.cs (1)
95if (equatable != null && !equatable.Equals(item2))
Microsoft.CodeAnalysis (24)
Compilation\Compilation.cs (2)
1689if (a.Equals(compilation.Assembly)) 1696if (a.Equals(compilation.GetAssemblyOrModuleSymbol(reference)))
DiagnosticAnalyzer\AnalyzerDriver.cs (1)
2917if (declaredSymbol.Equals(otherSymbol))
DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (2)
765if (boundReturnType != null && methodSymbol.ReturnType.Equals(boundReturnType)) 803return parameterType != null && symbol.Type.Equals(parameterType);
Emit\SemanticEdit.cs (2)
231&& (OldSymbol == null ? other.OldSymbol == null : OldSymbol.Equals(other.OldSymbol)) 232&& (NewSymbol == null ? other.NewSymbol == null : NewSymbol.Equals(other.NewSymbol));
Operations\ControlFlowGraphBuilder.cs (8)
3130((INamedTypeSymbol)operation.Target.Type!).TypeArguments[0].Equals(operation.Type)) 3340if (candidate.OriginalDefinition.Equals(method)) 4141if (!iDisposable.Equals(resource.Type) && disposeMethod is null) 4169((value.Type!.Equals(iDisposable) || (!value.Type.IsReferenceType && !ITypeSymbolHelpers.IsNullableType(value.Type))) && disposeArguments.IsDefaultOrEmpty)); 4213iDisposable.Equals(_compilation.CommonGetWellKnownType(WellKnownType.System_IAsyncDisposable)?.GetITypeSymbol())); 4317if (!objectType.Equals(lockedValue.Type)) 4480if (op is ILocalReferenceOperation l && l.Local.Equals(local)) 5665Debug.Assert(ITypeSymbolHelpers.GetNullableUnderlyingType(type).Equals(operand.Type));
Operations\OperationExtensions.cs (3)
377case ILoopOperation correspondingLoop when operation.Target.Equals(correspondingLoop.ExitLabel) || 378operation.Target.Equals(correspondingLoop.ContinueLabel): 380case ISwitchOperation correspondingSwitch when operation.Target.Equals(correspondingSwitch.ExitLabel):
SourceGeneration\GeneratedCodeUtilities.cs (1)
38if (generatedCodeAttribute.Equals(attribute.AttributeClass))
SymbolDisplay\AbstractSymbolDisplayVisitor_Minimal.cs (3)
37if (normalSymbol.Equals(symbol.OriginalDefinition)) 58type1.Equals(type2) && 59typeOnlySymbol.Equals(symbol.OriginalDefinition);
Symbols\ISymbolExtensions.cs (1)
43if (arg.Equals(typeParameter))
Symbols\SymbolEqualityComparer.cs (1)
17/// Compares two <see cref="ISymbol"/> instances based on the default comparison rules, equivalent to calling <see cref="IEquatable{ISymbol}.Equals(ISymbol)"/>.
Microsoft.CodeAnalysis.Analyzers (69)
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzer.cs (1)
598invocation.TargetMethod.ReturnType.Equals(localizableResourceStringType) &&
MetaAnalyzers\ReportDiagnosticAnalyzer.cs (3)
159p.OverriddenProperty.Equals(supportedDiagnosticBaseProperty)); 214if (type != null && type.Equals(_diagnosticType)) 232method.ContainingType.Equals(_diagnosticType) &&
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (1)
38if (generatedCodeAttribute.Equals(attribute.AttributeClass))
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (2)
394a.AttributeClass.Equals(wellKnownTypeProvider.GetOrCreateTypeByMetadataName(WellKnownTypeNames.SystemRuntimeCompilerServicesCompilerGeneratedAttribute)) || 395a.AttributeClass.Equals(wellKnownTypeProvider.GetOrCreateTypeByMetadataName(WellKnownTypeNames.SystemCodeDomCompilerGeneratedCodeAttribute))),
src\RoslynAnalyzers\Utilities\Compiler\Extensions\INamedTypeSymbolExtensions.cs (2)
54if (baseType.Equals(parentType)) 60if (type.OriginalDefinition.AllInterfaces.Any(baseInterface => baseInterface.OriginalDefinition.Equals(parentType)))
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (1)
335operation is ILocalFunctionOperation localFunction && localFunction.Symbol.OriginalDefinition.Equals(lambdaOrLocalFunction.OriginalDefinition));
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IPropertySymbolExtensions.cs (1)
20=> propertySymbol.ContainingType.GetMembers().OfType<IFieldSymbol>().Any(f => f.IsImplicitlyDeclared && propertySymbol.Equals(f.AssociatedSymbol));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
457notImplementedExceptionType.Equals(objectCreation.Type);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (1)
178return type.AllInterfaces.Any(static (i, enumerableType) => i.OriginalDefinition.Equals(enumerableType), enumerableType);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (1)
488Debug.Assert(localFunction.Equals(localFunction.OriginalDefinition));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyleRules.cs (1)
95if (symbol.Equals(containingType.FindImplementationForInterfaceMember(implementedInterfaceMember)))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFactsExtensions.cs (1)
38if (!innerTypeInfo.Type.Equals(innerTypeInfo.ConvertedType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BodyLevelSymbolKey.cs (1)
91if (possibleSymbol.symbol.Equals(symbol))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ErrorTypeSymbolKey.cs (1)
34var isConstructed = !symbol.Equals(symbol.ConstructedFrom);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.MethodSymbolKey.cs (3)
17Debug.Assert(symbol.Equals(symbol.ConstructedFrom)); 104if (!method.Equals(method.ConstructedFrom)) 129Debug.Assert(symbol.Equals(symbol.ConstructedFrom));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamedTypeSymbolKey.cs (1)
29symbol.Equals(symbol.ConstructedFrom) || symbol.IsUnboundGenericType ? [] : symbol.TypeArguments);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (3)
364if (!methodSymbol.Equals(methodSymbol.ConstructedFrom)) 500if (typeParameter.DeclaringMethod!.Equals(method)) 518Contract.ThrowIfFalse(method.Equals(_methodSymbolStack[^1]));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
923if (symbol.Equals(overriddenMember)) 1007if (!newSymbol.Equals(implementationMember))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (1)
140dictionary[key] = existingArray.IsEmpty && value.Equals(defaultArray[0]) ? defaultArray : existingArray.Add(value);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IMethodSymbolExtensions.cs (3)
108methodSymbol.ReturnType.OriginalDefinition.Equals(taskType) || 109methodSymbol.ReturnType.OriginalDefinition.Equals(genericTaskType)); 123return method.ReturnType.Equals(compilation.TaskType()) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (3)
61if (current.Equals(outer)) 75.FirstOrDefault(s => symbol.Equals(s.GetOverriddenMember())); 459if (type.Equals(systemAttributeType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IPropertySymbolExtensions.cs (1)
17.FirstOrDefault(f => property.Equals(f.AssociatedSymbol));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (2)
161if (symbol.Equals(impl)) 814return symbol.GetAttributes().Any(static (attribute, attributeClass) => attributeClass.Equals(attribute.AttributeClass), attributeClass);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions_Accessibility.cs (1)
440if (current.Equals(originalContainingType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.AnonymousTypeRemover.cs (2)
26if (elementType != null && elementType.Equals(symbol.ElementType)) 57if (elementType != null && elementType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (2)
415if (typeSymbol.OriginalDefinition.Equals(expressionOfT)) 601if (baseType.Equals(compilation.ExceptionType()))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.SubstituteTypesVisitor.cs (2)
105if (elementType != null && elementType.Equals(symbol.ElementType)) 122if (pointedAtType != null && pointedAtType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.UnavailableTypeParameterRemover.cs (2)
29if (elementType != null && elementType.Equals(symbol.ElementType)) 57if (elementType != null && elementType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.UnnamedErrorTypeRemover.cs (2)
28if (elementType != null && elementType.Equals(symbol.ElementType)) 61if (elementType != null && elementType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (2)
192=> symbol.Equals(symbol.ConstructedFrom); 195=> symbol.Equals(symbol.ConstructedFrom);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
592if (x.Equals(y))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (2)
163=> GetAttributes().WhereAsArray(a => a.AttributeClass.Equals(attributeType)); 166=> GetAttributes().WhereAsArray(a => a.AttributeConstructor.Equals(attributeConstructor));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (1)
263if (containedNamespace.Equals(symbol))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (1)
173=> arg.removeAttributeTypes.Any(attr => attr.Equals(a.AttributeClass)) ||
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IPropertySymbolExtensions.cs (1)
70=> arg.attributesToRemove.Any(attr => attr.Equals(a.AttributeClass)) ||
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\KnownTypes.cs (4)
22if (returnType.Equals(this.TaskType)) 25if (returnType.Equals(this.ValueTaskType)) 28if (returnType.OriginalDefinition.Equals(this.TaskOfTType)) 31if (returnType.OriginalDefinition.Equals(this.ValueTaskOfTType))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (1)
148if (!throughMemberType.Equals(interfaceBeingImplemented))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
75.Single(m => containingType.Equals(m.Parameters.FirstOrDefault()?.Type));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\InitializeParameterHelpersCore.cs (2)
40parameter.Equals(parameterReference.Parameter); 150memberReference.Member.ContainingType.Equals(containingType))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SymbolFinder\SymbolFinderInternal.cs (1)
65symbol.ContainingAssembly.Equals(compilation.Assembly))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NullableHelpers.cs (4)
145ILocalReferenceOperation localReference => localReference.Local.Equals(symbol), 146IParameterReferenceOperation parameterReference => parameterReference.Parameter.Equals(symbol), 149IForEachLoopOperation { LoopControlVariable: IVariableDeclaratorOperation variableDeclarator } => variableDeclarator.Symbol.Equals(symbol), 152IVariableDeclaratorOperation variableDeclarator when includeDeclaration => variableDeclarator.GetVariableInitializer() != null && variableDeclarator.Symbol.Equals(symbol),
Microsoft.CodeAnalysis.AnalyzerUtilities (54)
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (1)
38if (generatedCodeAttribute.Equals(attribute.AttributeClass))
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (2)
394a.AttributeClass.Equals(wellKnownTypeProvider.GetOrCreateTypeByMetadataName(WellKnownTypeNames.SystemRuntimeCompilerServicesCompilerGeneratedAttribute)) || 395a.AttributeClass.Equals(wellKnownTypeProvider.GetOrCreateTypeByMetadataName(WellKnownTypeNames.SystemCodeDomCompilerGeneratedCodeAttribute))),
src\RoslynAnalyzers\Utilities\Compiler\Extensions\INamedTypeSymbolExtensions.cs (2)
54if (baseType.Equals(parentType)) 60if (type.OriginalDefinition.AllInterfaces.Any(baseInterface => baseInterface.OriginalDefinition.Equals(parentType)))
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (1)
335operation is ILocalFunctionOperation localFunction && localFunction.Symbol.OriginalDefinition.Equals(lambdaOrLocalFunction.OriginalDefinition));
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IPropertySymbolExtensions.cs (1)
20=> propertySymbol.ContainingType.GetMembers().OfType<IFieldSymbol>().Any(f => f.IsImplicitlyDeclared && propertySymbol.Equals(f.AssociatedSymbol));
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\ParameterValidationAnalysis\ParameterValidationAnalysis.ParameterValidationDataFlowOperationVisitor.cs (1)
128attr.AttributeClass.Equals(_notNullAttributeType)));
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PointsToAnalysis\PointsToAnalysis.PointsToDataFlowOperationVisitor.cs (1)
994activatorType.Equals(method.ContainingType))
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AbstractDataFlowAnalysisContext.cs (1)
106if (localFunction.Equals(OwningSymbol))
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AnalysisEntityDataFlowOperationVisitor.cs (3)
679if (!currentValue.Equals(newValue)) 693entity.Symbol.ContainingSymbol.Equals(DataFlowAnalysisContext.OwningSymbol) || 742Debug.Assert(throwBranchWithExceptionType.ExceptionType.Equals(ExceptionNamedType));
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (1)
3568if (OwningSymbol.Equals(forOwningSymbol))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
457notImplementedExceptionType.Equals(objectCreation.Type);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (1)
178return type.AllInterfaces.Any(static (i, enumerableType) => i.OriginalDefinition.Equals(enumerableType), enumerableType);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (1)
488Debug.Assert(localFunction.Equals(localFunction.OriginalDefinition));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyleRules.cs (1)
95if (symbol.Equals(containingType.FindImplementationForInterfaceMember(implementedInterfaceMember)))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFactsExtensions.cs (1)
38if (!innerTypeInfo.Type.Equals(innerTypeInfo.ConvertedType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BodyLevelSymbolKey.cs (1)
91if (possibleSymbol.symbol.Equals(symbol))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ErrorTypeSymbolKey.cs (1)
34var isConstructed = !symbol.Equals(symbol.ConstructedFrom);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.MethodSymbolKey.cs (3)
17Debug.Assert(symbol.Equals(symbol.ConstructedFrom)); 104if (!method.Equals(method.ConstructedFrom)) 129Debug.Assert(symbol.Equals(symbol.ConstructedFrom));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamedTypeSymbolKey.cs (1)
29symbol.Equals(symbol.ConstructedFrom) || symbol.IsUnboundGenericType ? [] : symbol.TypeArguments);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (3)
364if (!methodSymbol.Equals(methodSymbol.ConstructedFrom)) 500if (typeParameter.DeclaringMethod!.Equals(method)) 518Contract.ThrowIfFalse(method.Equals(_methodSymbolStack[^1]));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
923if (symbol.Equals(overriddenMember)) 1007if (!newSymbol.Equals(implementationMember))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (1)
140dictionary[key] = existingArray.IsEmpty && value.Equals(defaultArray[0]) ? defaultArray : existingArray.Add(value);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IMethodSymbolExtensions.cs (3)
108methodSymbol.ReturnType.OriginalDefinition.Equals(taskType) || 109methodSymbol.ReturnType.OriginalDefinition.Equals(genericTaskType)); 123return method.ReturnType.Equals(compilation.TaskType()) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (3)
61if (current.Equals(outer)) 75.FirstOrDefault(s => symbol.Equals(s.GetOverriddenMember())); 459if (type.Equals(systemAttributeType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IPropertySymbolExtensions.cs (1)
17.FirstOrDefault(f => property.Equals(f.AssociatedSymbol));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (2)
161if (symbol.Equals(impl)) 814return symbol.GetAttributes().Any(static (attribute, attributeClass) => attributeClass.Equals(attribute.AttributeClass), attributeClass);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions_Accessibility.cs (1)
440if (current.Equals(originalContainingType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.AnonymousTypeRemover.cs (2)
26if (elementType != null && elementType.Equals(symbol.ElementType)) 57if (elementType != null && elementType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (2)
415if (typeSymbol.OriginalDefinition.Equals(expressionOfT)) 601if (baseType.Equals(compilation.ExceptionType()))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.SubstituteTypesVisitor.cs (2)
105if (elementType != null && elementType.Equals(symbol.ElementType)) 122if (pointedAtType != null && pointedAtType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.UnavailableTypeParameterRemover.cs (2)
29if (elementType != null && elementType.Equals(symbol.ElementType)) 57if (elementType != null && elementType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.UnnamedErrorTypeRemover.cs (2)
28if (elementType != null && elementType.Equals(symbol.ElementType)) 61if (elementType != null && elementType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (2)
192=> symbol.Equals(symbol.ConstructedFrom); 195=> symbol.Equals(symbol.ConstructedFrom);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
592if (x.Equals(y))
Microsoft.CodeAnalysis.BannedApiAnalyzers (65)
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (1)
38if (generatedCodeAttribute.Equals(attribute.AttributeClass))
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (2)
394a.AttributeClass.Equals(wellKnownTypeProvider.GetOrCreateTypeByMetadataName(WellKnownTypeNames.SystemRuntimeCompilerServicesCompilerGeneratedAttribute)) || 395a.AttributeClass.Equals(wellKnownTypeProvider.GetOrCreateTypeByMetadataName(WellKnownTypeNames.SystemCodeDomCompilerGeneratedCodeAttribute))),
src\RoslynAnalyzers\Utilities\Compiler\Extensions\INamedTypeSymbolExtensions.cs (2)
54if (baseType.Equals(parentType)) 60if (type.OriginalDefinition.AllInterfaces.Any(baseInterface => baseInterface.OriginalDefinition.Equals(parentType)))
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (1)
335operation is ILocalFunctionOperation localFunction && localFunction.Symbol.OriginalDefinition.Equals(lambdaOrLocalFunction.OriginalDefinition));
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IPropertySymbolExtensions.cs (1)
20=> propertySymbol.ContainingType.GetMembers().OfType<IFieldSymbol>().Any(f => f.IsImplicitlyDeclared && propertySymbol.Equals(f.AssociatedSymbol));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
457notImplementedExceptionType.Equals(objectCreation.Type);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (1)
178return type.AllInterfaces.Any(static (i, enumerableType) => i.OriginalDefinition.Equals(enumerableType), enumerableType);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (1)
488Debug.Assert(localFunction.Equals(localFunction.OriginalDefinition));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyleRules.cs (1)
95if (symbol.Equals(containingType.FindImplementationForInterfaceMember(implementedInterfaceMember)))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFactsExtensions.cs (1)
38if (!innerTypeInfo.Type.Equals(innerTypeInfo.ConvertedType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BodyLevelSymbolKey.cs (1)
91if (possibleSymbol.symbol.Equals(symbol))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ErrorTypeSymbolKey.cs (1)
34var isConstructed = !symbol.Equals(symbol.ConstructedFrom);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.MethodSymbolKey.cs (3)
17Debug.Assert(symbol.Equals(symbol.ConstructedFrom)); 104if (!method.Equals(method.ConstructedFrom)) 129Debug.Assert(symbol.Equals(symbol.ConstructedFrom));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamedTypeSymbolKey.cs (1)
29symbol.Equals(symbol.ConstructedFrom) || symbol.IsUnboundGenericType ? [] : symbol.TypeArguments);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (3)
364if (!methodSymbol.Equals(methodSymbol.ConstructedFrom)) 500if (typeParameter.DeclaringMethod!.Equals(method)) 518Contract.ThrowIfFalse(method.Equals(_methodSymbolStack[^1]));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
923if (symbol.Equals(overriddenMember)) 1007if (!newSymbol.Equals(implementationMember))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (1)
140dictionary[key] = existingArray.IsEmpty && value.Equals(defaultArray[0]) ? defaultArray : existingArray.Add(value);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IMethodSymbolExtensions.cs (3)
108methodSymbol.ReturnType.OriginalDefinition.Equals(taskType) || 109methodSymbol.ReturnType.OriginalDefinition.Equals(genericTaskType)); 123return method.ReturnType.Equals(compilation.TaskType()) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (3)
61if (current.Equals(outer)) 75.FirstOrDefault(s => symbol.Equals(s.GetOverriddenMember())); 459if (type.Equals(systemAttributeType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IPropertySymbolExtensions.cs (1)
17.FirstOrDefault(f => property.Equals(f.AssociatedSymbol));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (2)
161if (symbol.Equals(impl)) 814return symbol.GetAttributes().Any(static (attribute, attributeClass) => attributeClass.Equals(attribute.AttributeClass), attributeClass);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions_Accessibility.cs (1)
440if (current.Equals(originalContainingType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.AnonymousTypeRemover.cs (2)
26if (elementType != null && elementType.Equals(symbol.ElementType)) 57if (elementType != null && elementType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (2)
415if (typeSymbol.OriginalDefinition.Equals(expressionOfT)) 601if (baseType.Equals(compilation.ExceptionType()))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.SubstituteTypesVisitor.cs (2)
105if (elementType != null && elementType.Equals(symbol.ElementType)) 122if (pointedAtType != null && pointedAtType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.UnavailableTypeParameterRemover.cs (2)
29if (elementType != null && elementType.Equals(symbol.ElementType)) 57if (elementType != null && elementType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.UnnamedErrorTypeRemover.cs (2)
28if (elementType != null && elementType.Equals(symbol.ElementType)) 61if (elementType != null && elementType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (2)
192=> symbol.Equals(symbol.ConstructedFrom); 195=> symbol.Equals(symbol.ConstructedFrom);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
592if (x.Equals(y))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (2)
163=> GetAttributes().WhereAsArray(a => a.AttributeClass.Equals(attributeType)); 166=> GetAttributes().WhereAsArray(a => a.AttributeConstructor.Equals(attributeConstructor));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (1)
263if (containedNamespace.Equals(symbol))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (1)
173=> arg.removeAttributeTypes.Any(attr => attr.Equals(a.AttributeClass)) ||
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IPropertySymbolExtensions.cs (1)
70=> arg.attributesToRemove.Any(attr => attr.Equals(a.AttributeClass)) ||
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\KnownTypes.cs (4)
22if (returnType.Equals(this.TaskType)) 25if (returnType.Equals(this.ValueTaskType)) 28if (returnType.OriginalDefinition.Equals(this.TaskOfTType)) 31if (returnType.OriginalDefinition.Equals(this.ValueTaskOfTType))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (1)
148if (!throughMemberType.Equals(interfaceBeingImplemented))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
75.Single(m => containingType.Equals(m.Parameters.FirstOrDefault()?.Type));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\InitializeParameterHelpersCore.cs (2)
40parameter.Equals(parameterReference.Parameter); 150memberReference.Member.ContainingType.Equals(containingType))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SymbolFinder\SymbolFinderInternal.cs (1)
65symbol.ContainingAssembly.Equals(compilation.Assembly))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NullableHelpers.cs (4)
145ILocalReferenceOperation localReference => localReference.Local.Equals(symbol), 146IParameterReferenceOperation parameterReference => parameterReference.Parameter.Equals(symbol), 149IForEachLoopOperation { LoopControlVariable: IVariableDeclaratorOperation variableDeclarator } => variableDeclarator.Symbol.Equals(symbol), 152IVariableDeclaratorOperation variableDeclarator when includeDeclaration => variableDeclarator.GetVariableInitializer() != null && variableDeclarator.Symbol.Equals(symbol),
Microsoft.CodeAnalysis.CodeStyle (64)
src\Analyzers\Core\Analyzers\Helpers\DeserializationConstructorCheck.cs (2)
19methodSymbol.Parameters[0].Type.Equals(_serializationInfoType) && 20methodSymbol.Parameters[1].Type.Equals(_streamingContextType) &&
src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.cs (1)
225=> Unwrap(value) is ILocalReferenceOperation localReference && accumulatorVariable.Equals(localReference.Local);
src\Analyzers\Core\Analyzers\MakeFieldReadonly\AbstractMakeFieldReadonlyDiagnosticAnalyzer.cs (1)
281if (!field.ContainingType.Equals(owningSymbol.ContainingType))
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
848if (suppressMessageAttributeType.Equals(attribute.AttributeClass) &&
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\SuppressMessageAttributeState.cs (1)
62_suppressMessageAttributeType.Equals(propertyReference.Property.ContainingType))
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
827methodSymbol.Parameters[0].Type.Equals(memberSymbol.ContainingType))
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (1)
274containingType.AllInterfaces.Any((@interface, marshaler) => @interface.Equals(marshaler), _iCustomMarshaler))
src\Analyzers\Core\Analyzers\SimplifyInterpolation\AbstractSimplifyInterpolationDiagnosticAnalyzer.cs (2)
55convertedType.Equals(formattableStringType)) 62invocation.TargetMethod.ContainingType.Equals(formattableStringType);
src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (3)
346if (!containingType.Equals(property.ContainingType)) 415if (!containingType.Equals(getterField.ContainingType)) 423if (!property.Type.Equals(getterField.Type))
src\Analyzers\Core\Analyzers\UseCoalesceExpression\AbstractUseCoalesceExpressionForNullableTernaryConditionalCheckDiagnosticAnalyzer.cs (1)
115if (!nullableType.Equals(type.Type?.OriginalDefinition))
src\Analyzers\Core\Analyzers\UseCollectionInitializer\UpdateExpressionState.cs (2)
120InitializedSymbol.Equals( 252useSpread = parameter.Type.Equals(convertedType);
src\Analyzers\Core\Analyzers\UseExplicitTupleName\UseExplicitTupleNameDiagnosticAnalyzer.cs (2)
52if (field.CorrespondingTupleField?.Equals(field) == true) 84unnamedField.Equals(fieldSymbol.CorrespondingTupleField) &&
src\Analyzers\Core\Analyzers\UseIsNullCheck\AbstractUseIsNullForReferenceEqualsDiagnosticAnalyzer.cs (1)
102if (!referenceEqualsMethod.Equals(symbol))
src\Analyzers\Core\Analyzers\UseNullPropagation\AbstractUseNullPropagationDiagnosticAnalyzer.cs (1)
317return referenceEqualsMethod.Equals(symbol);
src\Analyzers\Core\Analyzers\ValidateFormatString\AbstractValidateFormatStringDiagnosticAnalyzer.cs (1)
139var hasIFormatProvider = parameters[0].Type.Equals(formatProviderType);
src\Compilers\Core\Portable\DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (2)
765if (boundReturnType != null && methodSymbol.ReturnType.Equals(boundReturnType)) 803return parameterType != null && symbol.Type.Equals(parameterType);
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (1)
38if (generatedCodeAttribute.Equals(attribute.AttributeClass))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
457notImplementedExceptionType.Equals(objectCreation.Type);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (1)
178return type.AllInterfaces.Any(static (i, enumerableType) => i.OriginalDefinition.Equals(enumerableType), enumerableType);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (1)
488Debug.Assert(localFunction.Equals(localFunction.OriginalDefinition));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyleRules.cs (1)
95if (symbol.Equals(containingType.FindImplementationForInterfaceMember(implementedInterfaceMember)))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFactsExtensions.cs (1)
38if (!innerTypeInfo.Type.Equals(innerTypeInfo.ConvertedType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BodyLevelSymbolKey.cs (1)
91if (possibleSymbol.symbol.Equals(symbol))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ErrorTypeSymbolKey.cs (1)
34var isConstructed = !symbol.Equals(symbol.ConstructedFrom);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.MethodSymbolKey.cs (3)
17Debug.Assert(symbol.Equals(symbol.ConstructedFrom)); 104if (!method.Equals(method.ConstructedFrom)) 129Debug.Assert(symbol.Equals(symbol.ConstructedFrom));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamedTypeSymbolKey.cs (1)
29symbol.Equals(symbol.ConstructedFrom) || symbol.IsUnboundGenericType ? [] : symbol.TypeArguments);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (3)
364if (!methodSymbol.Equals(methodSymbol.ConstructedFrom)) 500if (typeParameter.DeclaringMethod!.Equals(method)) 518Contract.ThrowIfFalse(method.Equals(_methodSymbolStack[^1]));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
923if (symbol.Equals(overriddenMember)) 1007if (!newSymbol.Equals(implementationMember))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (1)
140dictionary[key] = existingArray.IsEmpty && value.Equals(defaultArray[0]) ? defaultArray : existingArray.Add(value);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IMethodSymbolExtensions.cs (3)
108methodSymbol.ReturnType.OriginalDefinition.Equals(taskType) || 109methodSymbol.ReturnType.OriginalDefinition.Equals(genericTaskType)); 123return method.ReturnType.Equals(compilation.TaskType()) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (3)
61if (current.Equals(outer)) 75.FirstOrDefault(s => symbol.Equals(s.GetOverriddenMember())); 459if (type.Equals(systemAttributeType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IPropertySymbolExtensions.cs (1)
17.FirstOrDefault(f => property.Equals(f.AssociatedSymbol));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (2)
161if (symbol.Equals(impl)) 814return symbol.GetAttributes().Any(static (attribute, attributeClass) => attributeClass.Equals(attribute.AttributeClass), attributeClass);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions_Accessibility.cs (1)
440if (current.Equals(originalContainingType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.AnonymousTypeRemover.cs (2)
26if (elementType != null && elementType.Equals(symbol.ElementType)) 57if (elementType != null && elementType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (2)
415if (typeSymbol.OriginalDefinition.Equals(expressionOfT)) 601if (baseType.Equals(compilation.ExceptionType()))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.SubstituteTypesVisitor.cs (2)
105if (elementType != null && elementType.Equals(symbol.ElementType)) 122if (pointedAtType != null && pointedAtType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.UnavailableTypeParameterRemover.cs (2)
29if (elementType != null && elementType.Equals(symbol.ElementType)) 57if (elementType != null && elementType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.UnnamedErrorTypeRemover.cs (2)
28if (elementType != null && elementType.Equals(symbol.ElementType)) 61if (elementType != null && elementType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (2)
192=> symbol.Equals(symbol.ConstructedFrom); 195=> symbol.Equals(symbol.ConstructedFrom);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
592if (x.Equals(y))
Microsoft.CodeAnalysis.CodeStyle.Fixes (31)
src\Analyzers\Core\CodeFixes\AddExplicitCast\InheritanceDistanceComparer.cs (1)
63if (derivedType.Equals(baseType))
src\Analyzers\Core\CodeFixes\AddParameter\AbstractAddParameterCodeFixProvider.cs (2)
540if (parameterType.Equals(argumentTypeInfo.Type) || parameterType.Equals(argumentTypeInfo.ConvertedType))
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.cs (3)
56if (currentConstructor.Equals(delegatedConstructor)) 60if (!delegatedConstructor.ContainingType.Equals(currentConstructor.ContainingType)) 73if (currentDelegatedConstructor.Equals(currentConstructor))
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (2)
220if (TypeToGenerateIn.Equals(constructor.ContainingType) && 428var isThis = _delegatedConstructor.ContainingType.OriginalDefinition.Equals(TypeToGenerateIn.OriginalDefinition);
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.State.cs (2)
380symbol.ContainingType.Equals(ContainingType)) 494if (!ContainingType.OriginalDefinition.Equals(TypeToGenerateIn.OriginalDefinition))
src\Analyzers\Core\CodeFixes\ImplementInterface\AbstractImplementInterfaceCodeFixProvider.cs (1)
186if (!typeA.Equals(typeB))
src\Analyzers\Core\CodeFixes\RemoveAsyncModifier\AbstractRemoveAsyncModifierCodeFixProvider.cs (6)
110|| returnType.OriginalDefinition.Equals(knownTypes.TaskOfTType) 111|| returnType.OriginalDefinition.Equals(knownTypes.ValueTaskOfTType); 114=> returnType.OriginalDefinition.Equals(knownTypes.TaskType) 115|| returnType.OriginalDefinition.Equals(knownTypes.ValueTaskType); 217if (returnType.OriginalDefinition.Equals(knownTypes.TaskType)) 233if (returnType.OriginalDefinition.Equals(knownTypes.TaskOfTType))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (1)
173=> arg.removeAttributeTypes.Any(attr => attr.Equals(a.AttributeClass)) ||
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IPropertySymbolExtensions.cs (1)
70=> arg.attributesToRemove.Any(attr => attr.Equals(a.AttributeClass)) ||
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\KnownTypes.cs (4)
22if (returnType.Equals(this.TaskType)) 25if (returnType.Equals(this.ValueTaskType)) 28if (returnType.OriginalDefinition.Equals(this.TaskOfTType)) 31if (returnType.OriginalDefinition.Equals(this.ValueTaskOfTType))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
75.Single(m => containingType.Equals(m.Parameters.FirstOrDefault()?.Type));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\InitializeParameterHelpersCore.cs (2)
40parameter.Equals(parameterReference.Parameter); 150memberReference.Member.ContainingType.Equals(containingType))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SymbolFinder\SymbolFinderInternal.cs (1)
65symbol.ContainingAssembly.Equals(compilation.Assembly))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NullableHelpers.cs (4)
145ILocalReferenceOperation localReference => localReference.Local.Equals(symbol), 146IParameterReferenceOperation parameterReference => parameterReference.Parameter.Equals(symbol), 149IForEachLoopOperation { LoopControlVariable: IVariableDeclaratorOperation variableDeclarator } => variableDeclarator.Symbol.Equals(symbol), 152IVariableDeclaratorOperation variableDeclarator when includeDeclaration => variableDeclarator.GetVariableInitializer() != null && variableDeclarator.Symbol.Equals(symbol),
Microsoft.CodeAnalysis.CSharp (1)
SymbolDisplay\SymbolDisplayVisitor_Minimal.cs (1)
38if ((object?)boundAlias != null && alias.Target.Equals(symbol))
Microsoft.CodeAnalysis.CSharp.CodeStyle (39)
src\Analyzers\CSharp\Analyzers\ConvertProgram\ConvertProgramAnalysis_TopLevelStatements.cs (1)
82if (!entryPointMethod.Equals(thisMethod))
src\Analyzers\CSharp\Analyzers\InlineDeclaration\CSharpInlineDeclarationDiagnosticAnalyzer.cs (1)
365if (outSymbol.Equals(symbol))
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
388if (methodReference.Equals(owningMethod))
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryLambdaExpression\CSharpRemoveUnnecessaryLambdaExpressionDiagnosticAnalyzer.cs (2)
214!invokedMethod.Equals(rewrittenMethod)) 220if (!lambdaTypeInfo.ConvertedType.Equals(rewrittenConvertedType))
src\Analyzers\CSharp\Analyzers\SimplifyLinqExpression\CSharpSimplifyLinqTypeCheckAndCastDiagnosticAnalyzer.cs (3)
205if (!whereType.Equals(castType)) 211if (!enumerableType.Equals(castOrSelectSymbol?.OriginalDefinition.ContainingType) || 212!enumerableType.Equals(whereSymbol?.OriginalDefinition.ContainingType))
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (6)
131!originalTypeInfo.Type.Equals(originalTypeInfo.ConvertedType) && 181if (!originalTypeInfo.ConvertedType.Equals(replacedTypeInfo.ConvertedType) && 558if (!local.Equals(symbol)) 898if (!factoryType.OriginalDefinition.Equals(collectionBuilderType.OriginalDefinition)) 1065if (type.OriginalDefinition.Equals(interfaceType)) 1070if (interfaceType.Equals(baseInterface.OriginalDefinition))
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseRangeOperatorDiagnosticAnalyzer.InfoCache.cs (1)
148if (sliceLikeMethod.ReturnType.Equals(containingType))
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\Helpers.cs (5)
47lengthLikeProperty.Equals(propertyRef.Property) && 135returnType.Equals(p.Type) && 137p.Parameters[0].Type.Equals(parameterType)) 152m.Parameters[0].Type.Equals(parameterType) && 153m.ReturnType.Equals(method.ReturnType))
src\Analyzers\CSharp\Analyzers\UseLocalFunction\CSharpUseLocalFunctionDiagnosticAnalyzer.cs (1)
404if (localEnclosingSymbol.Equals(delegateContainingType))
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.Analyzer.cs (1)
376_localSymbol.Equals(_semanticModel.GetSymbolInfo(identifierName, _cancellationToken).Symbol))
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.cs (4)
134if (!localSymbol.Type.Equals(asType)) 182asOperand.Equals(semanticModel.GetSymbolInfo(identifierName, cancellationToken).Symbol) && 219localSymbol.Equals(semanticModel.GetSymbolInfo(identifierName, cancellationToken).Symbol)) 239localSymbol.Equals(semanticModel.GetSymbolInfo(identifierName, cancellationToken).Symbol))
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpIsAndCastCheckDiagnosticAnalyzer.cs (1)
126if (!localSymbol.Type.Equals(isType))
src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
102if (!namedType.Equals(member.ContainingType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\TypeStyle\TypeStyleHelper.cs (2)
147if (UnwrapTupleType(containingType).Equals(returnType)) 159containingType.ContainingNamespace.Equals(returnType.ContainingNamespace))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\DefaultExpressionSyntaxExtensions.cs (1)
55if (entityType != null && entityType.Equals(defaultType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (2)
799if (expressionType.Equals(typeInfo.ConvertedType?.OriginalDefinition)) 828expressionType.Equals(method.Parameters[0].Type?.OriginalDefinition))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (3)
529if (originalConvertedType.Equals(rewrittenConvertedType)) 922if (!otherSideType.Equals(thisSideRewrittenType)) 936return rewrittenConditionalConvertedType.Equals(conversionOperation.Type);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpUseImplicitTypeHelper.cs (3)
243return valueType.Equals(parameterType); 313return declaredType != null && declaredType.Equals(initializerType); 321return declaredType.Equals(initializerType) &&
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (35)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (1)
290=> iEquatable.Equals(semanticModel.GetTypeInfo(baseItem.Type, cancellationToken).Type));
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (17)
50&& param.Equals(methodSymbol.Parameters.First())) 170return left != null && right != null && !left.Equals(right); 245referencedParameter.Equals(parameter) ? referencedProperty.GetBackingFieldIfAny() : null, 251referencedParameter.Equals(parameter) ? referencedField : null, 510if (parameter.Type.Equals(type)) 592} && referencedParameter1.Equals(parameter)) 642return param != null && invokedOn != null && !invokedOn.Equals(param); 672op => otherObject.Equals(GetReferencedSymbolObject(op))); 691otherObject.Equals(GetReferencedSymbolObject(patternOp.Value)) && 924if (memberReference1.Member.Equals(memberReference2.Member) && 927!leftObject.Equals(rightObject) && 928AreConditionsSatisfiedEitherOrder(leftObject, rightObject, currentObject.Equals, otherObject.Equals)) 1017testType.Equals(type) && referencedParameter.Equals(parameter)) 1103equals.Equals(equals.ContainingType.FindImplementationForInterfaceMember(equatableEquals))) 1113if (curr.Equals(objectEquals))
src\Analyzers\CSharp\CodeFixes\Iterator\CSharpAddYieldCodeFixProvider.cs (6)
140if (!(methodReturnType.Equals(ienumerableGenericSymbol) || 141methodReturnType.Equals(ienumerableSymbol) || 142methodReturnType.Equals(ienumeratorGenericSymbol) || 143methodReturnType.Equals(ienumeratorSymbol))) 201if (!(methodReturnType.Equals(ienumerableSymbol) || 202methodReturnType.Equals(ienumeratorSymbol)))
src\Analyzers\CSharp\CodeFixes\ReplaceDefaultLiteral\CSharpReplaceDefaultLiteralCodeFixProvider.cs (1)
92else if (type.Equals(semanticModel.Compilation.GetTypeByMetadataName(typeof(CancellationToken).FullName!)))
src\Analyzers\CSharp\CodeFixes\UseCoalesceExpression\CSharpUseCoalesceExpressionForIfNullStatementCheckCodeFixProvider.cs (1)
33if (leftPartTypeSymbol.Equals(rightPartTypeSymbol))
src\Analyzers\CSharp\CodeFixes\UseExplicitArrayInExpressionTree\CSharpUseExplicitArrayInExpressionTreeCodeFixProvider.cs (1)
86if (!originalParameter.Type.Equals(currentParameter.Type))
src\Analyzers\CSharp\CodeFixes\UseExpressionBodyForLambda\UseExpressionBodyForLambdaCodeActionHelpers.cs (1)
103if (returnType.Equals(taskType))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (2)
266var stringValue = negative && nonNegativeValue.Equals(value) 283if (constant.Key.Equals(value))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\FieldGenerator.cs (1)
114var canUseFieldReference = field.Type != null && !field.Type.Equals(field.ContainingType);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
125if (!targetType.Equals(type))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (2)
92while (arrayType != null && !arrayType.Equals(underlyingType)) 183if (symbol.IsTupleType && symbol.TupleUnderlyingType != null && !symbol.Equals(symbol.TupleUnderlyingType))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\InitializeParameter\CSharpInitializeParameterService.cs (1)
88if (tupleRight.Elements[i] is IParameterReferenceOperation parameterReference && sibling.Equals(parameterReference.Parameter) &&
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (9)
CodeGen\CodeGenTupleTest.cs (9)
6615Assert.True(tuple1.Equals(tuple2)); 6618Assert.False(tuple1.Equals(tuple3)); 6621Assert.False(tuple1.Equals(tuple4)); 6814Assert.True(tuple1.Equals(tuple2)); 6821Assert.True(tuple1.Equals(tuple2)); 6869Assert.True(tuple1.Equals(tuple2)); 6877Assert.True(tuple1.Equals(tuple2)); 6883Assert.True(tuple1.Equals(tuple2)); 6890Assert.True(tuple1.Equals(tuple2));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Semantics\ExtensionTests.cs (1)
2725Assert.True(extensionParameter.Equals(extensionParameter));
Microsoft.CodeAnalysis.CSharp.Features (70)
Completion\CompletionProviders\AwaitCompletionProvider.cs (2)
87returnType.OriginalDefinition.Equals(taskLikeTypes.IAsyncEnumerableOfTType) || 88returnType.OriginalDefinition.Equals(taskLikeTypes.IAsyncEnumeratorOfTType))
Copilot\CSharpImplementNotImplementedExceptionDiagnosticAnalyzer.cs (1)
60notImplementedExceptionType.Equals(constructedType))
DocumentHighlighting\CSharpDocumentHighlightsService.cs (1)
68if (originalSymbol.Equals(boundSymbol))
ImplementInterface\AbstractChangeImplementationCodeRefactoringProvider.cs (1)
199containingType.Equals(impl.ContainingType) &&
ReplaceMethodWithProperty\CSharpReplaceMethodWithPropertyService.cs (1)
297if (_parameter.Equals(_semanticModel.GetSymbolInfo(node).Symbol))
src\Analyzers\CSharp\Analyzers\ConvertProgram\ConvertProgramAnalysis_TopLevelStatements.cs (1)
82if (!entryPointMethod.Equals(thisMethod))
src\Analyzers\CSharp\Analyzers\InlineDeclaration\CSharpInlineDeclarationDiagnosticAnalyzer.cs (1)
365if (outSymbol.Equals(symbol))
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
388if (methodReference.Equals(owningMethod))
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryLambdaExpression\CSharpRemoveUnnecessaryLambdaExpressionDiagnosticAnalyzer.cs (2)
214!invokedMethod.Equals(rewrittenMethod)) 220if (!lambdaTypeInfo.ConvertedType.Equals(rewrittenConvertedType))
src\Analyzers\CSharp\Analyzers\SimplifyLinqExpression\CSharpSimplifyLinqTypeCheckAndCastDiagnosticAnalyzer.cs (3)
205if (!whereType.Equals(castType)) 211if (!enumerableType.Equals(castOrSelectSymbol?.OriginalDefinition.ContainingType) || 212!enumerableType.Equals(whereSymbol?.OriginalDefinition.ContainingType))
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (6)
131!originalTypeInfo.Type.Equals(originalTypeInfo.ConvertedType) && 181if (!originalTypeInfo.ConvertedType.Equals(replacedTypeInfo.ConvertedType) && 558if (!local.Equals(symbol)) 898if (!factoryType.OriginalDefinition.Equals(collectionBuilderType.OriginalDefinition)) 1065if (type.OriginalDefinition.Equals(interfaceType)) 1070if (interfaceType.Equals(baseInterface.OriginalDefinition))
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseRangeOperatorDiagnosticAnalyzer.InfoCache.cs (1)
148if (sliceLikeMethod.ReturnType.Equals(containingType))
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\Helpers.cs (5)
47lengthLikeProperty.Equals(propertyRef.Property) && 135returnType.Equals(p.Type) && 137p.Parameters[0].Type.Equals(parameterType)) 152m.Parameters[0].Type.Equals(parameterType) && 153m.ReturnType.Equals(method.ReturnType))
src\Analyzers\CSharp\Analyzers\UseLocalFunction\CSharpUseLocalFunctionDiagnosticAnalyzer.cs (1)
404if (localEnclosingSymbol.Equals(delegateContainingType))
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.Analyzer.cs (1)
376_localSymbol.Equals(_semanticModel.GetSymbolInfo(identifierName, _cancellationToken).Symbol))
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.cs (4)
134if (!localSymbol.Type.Equals(asType)) 182asOperand.Equals(semanticModel.GetSymbolInfo(identifierName, cancellationToken).Symbol) && 219localSymbol.Equals(semanticModel.GetSymbolInfo(identifierName, cancellationToken).Symbol)) 239localSymbol.Equals(semanticModel.GetSymbolInfo(identifierName, cancellationToken).Symbol))
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpIsAndCastCheckDiagnosticAnalyzer.cs (1)
126if (!localSymbol.Type.Equals(isType))
src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
102if (!namedType.Equals(member.ContainingType))
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (1)
290=> iEquatable.Equals(semanticModel.GetTypeInfo(baseItem.Type, cancellationToken).Type));
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (17)
50&& param.Equals(methodSymbol.Parameters.First())) 170return left != null && right != null && !left.Equals(right); 245referencedParameter.Equals(parameter) ? referencedProperty.GetBackingFieldIfAny() : null, 251referencedParameter.Equals(parameter) ? referencedField : null, 510if (parameter.Type.Equals(type)) 592} && referencedParameter1.Equals(parameter)) 642return param != null && invokedOn != null && !invokedOn.Equals(param); 672op => otherObject.Equals(GetReferencedSymbolObject(op))); 691otherObject.Equals(GetReferencedSymbolObject(patternOp.Value)) && 924if (memberReference1.Member.Equals(memberReference2.Member) && 927!leftObject.Equals(rightObject) && 928AreConditionsSatisfiedEitherOrder(leftObject, rightObject, currentObject.Equals, otherObject.Equals)) 1017testType.Equals(type) && referencedParameter.Equals(parameter)) 1103equals.Equals(equals.ContainingType.FindImplementationForInterfaceMember(equatableEquals))) 1113if (curr.Equals(objectEquals))
src\Analyzers\CSharp\CodeFixes\Iterator\CSharpAddYieldCodeFixProvider.cs (6)
140if (!(methodReturnType.Equals(ienumerableGenericSymbol) || 141methodReturnType.Equals(ienumerableSymbol) || 142methodReturnType.Equals(ienumeratorGenericSymbol) || 143methodReturnType.Equals(ienumeratorSymbol))) 201if (!(methodReturnType.Equals(ienumerableSymbol) || 202methodReturnType.Equals(ienumeratorSymbol)))
src\Analyzers\CSharp\CodeFixes\MakeMethodAsynchronous\CSharpMakeMethodAsynchronousCodeFixProvider.cs (4)
171=> returnType.OriginalDefinition.Equals(knownTypes.IAsyncEnumerableOfTType) || 172returnType.OriginalDefinition.Equals(knownTypes.IAsyncEnumeratorOfTType); 175=> returnType.OriginalDefinition.Equals(knownTypes.IEnumerableOfTType); 178=> returnType.OriginalDefinition.Equals(knownTypes.IEnumeratorOfTType);
src\Analyzers\CSharp\CodeFixes\MakeMethodSynchronous\CSharpMakeMethodSynchronousCodeFixProvider.cs (4)
61if (returnType.OriginalDefinition.Equals(knownTypes.TaskType)) 66else if (returnType.OriginalDefinition.Equals(knownTypes.TaskOfTType)) 71else if (returnType.OriginalDefinition.Equals(knownTypes.IAsyncEnumerableOfTType) && 77else if (returnType.OriginalDefinition.Equals(knownTypes.IAsyncEnumeratorOfTType) &&
src\Analyzers\CSharp\CodeFixes\ReplaceDefaultLiteral\CSharpReplaceDefaultLiteralCodeFixProvider.cs (1)
92else if (type.Equals(semanticModel.Compilation.GetTypeByMetadataName(typeof(CancellationToken).FullName!)))
src\Analyzers\CSharp\CodeFixes\UseCoalesceExpression\CSharpUseCoalesceExpressionForIfNullStatementCheckCodeFixProvider.cs (1)
33if (leftPartTypeSymbol.Equals(rightPartTypeSymbol))
src\Analyzers\CSharp\CodeFixes\UseExplicitArrayInExpressionTree\CSharpUseExplicitArrayInExpressionTreeCodeFixProvider.cs (1)
86if (!originalParameter.Type.Equals(currentParameter.Type))
src\Analyzers\CSharp\CodeFixes\UseExpressionBodyForLambda\UseExpressionBodyForLambdaCodeActionHelpers.cs (1)
103if (returnType.Equals(taskType))
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (1)
IOperation\IOperationTests_IFieldReferenceExpression.cs (1)
714Assert.True(fieldSym.Equals(fieldReferenceOperation.Field));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\NativeIntegerTests.cs (2)
271Assert.False(underlyingType.Equals(nativeIntegerType)); 272Assert.False(((IEquatable<ISymbol>)underlyingType).Equals(nativeIntegerType));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (27)
Compilation\GetSemanticInfoTests.cs (2)
4957Assert.True(symbolInfo.Symbol.Equals(symbolInfo.Symbol)); 4958Assert.False(symbolInfo.Symbol.Equals(null));
Compilation\SemanticModelAPITests.cs (5)
3659Assert.True(newSymbol.Equals(oldSymbol)); 3956Assert.True(typeInfo1.Type != null && typeInfo1.Type.Equals(type1)); 3963Assert.True(typeInfo2.Type != null && typeInfo2.Type.Equals(type2)); 4637Assert.False(alias1.Equals(alias2)); 4663Assert.True(alias1.Equals(alias2));
Compilation\SemanticModelGetSemanticInfoTests.cs (2)
15054Assert.True(symbolComparer.Equals(symbolInfo2)); 15059Assert.True(typeComparer.Equals(typeInfo2));
Symbols\AccessorOverriddenOrHiddenMembersTests.cs (1)
1054var isDispose = methodSymbol.Equals(type.FindImplementationForInterfaceMember(disposeMethod));
Symbols\MethodEqualityTests.cs (1)
223Assert.True(invokedMethods.All(m => m.Equals(m)));
Symbols\Source\DeclaringSyntaxNodeTests.cs (4)
539if (meth.AssociatedSymbol != null && meth.AssociatedSymbol.OriginalDefinition.Equals(ev1)) 545if (fld.AssociatedSymbol != null && fld.AssociatedSymbol.OriginalDefinition.Equals(prop3)) 562if (meth.AssociatedSymbol != null && meth.AssociatedSymbol.OriginalDefinition.Equals(ev1)) 568if (fld.AssociatedSymbol != null && fld.AssociatedSymbol.OriginalDefinition.Equals(prop3))
Symbols\SymbolEqualityTests.cs (12)
419Assert.True(member1.Equals(member1)); 420Assert.True(member2.Equals(member2)); 421Assert.False(member1.Equals(member2)); 422Assert.False(member2.Equals(member1)); 427Assert.True(field1.Equals(field1)); 428Assert.True(field2.Equals(field2)); 429Assert.False(field1.Equals(field2)); 430Assert.False(field2.Equals(field1)); 974Assert.True(symbol1.Equals(symbol1)); 975Assert.True(symbol2.Equals(symbol2)); 976Assert.True(symbol1.Equals(symbol2)); 977Assert.True(symbol2.Equals(symbol1));
Microsoft.CodeAnalysis.CSharp.Workspaces (28)
Recommendations\CSharpRecommendationServiceRunner.cs (1)
847var useBaseReferenceAccessibility = symbol is IParameterSymbol { IsThis: true } p && !p.Type.Equals(containerType);
Rename\CSharpRenameRewriterLanguageService.cs (1)
1014.Where(sym => !sym.Equals(renamedSymbol));
Simplification\CSharpSimplificationService.Expander.cs (3)
83if (objectCreationType.Equals(type)) 558if (symbol.ContainingSymbol.Equals(symbol.OriginalDefinition.ContainingSymbol) && 1096if (newContainingType == null || !newContainingType.Equals(reducedExtensionMethod.ContainingType))
Simplification\Reducers\CSharpExtensionMethodReducer.cs (1)
122oldSymbol.Equals(newMethod.GetConstructedReducedFrom()))
Simplification\Simplifiers\AbstractCSharpSimplifier.cs (2)
290if (!symbol.Equals(typeInfo.Type)) 301if (boundSymbols[0] is IAliasSymbol && aliasReplacement.Target.Equals(symbol))
Simplification\Simplifiers\ExpressionSimplifier.CandidateSymbolEqualityComparer.cs (1)
31return x.OriginalDefinition.Equals(y.OriginalDefinition);
Simplification\Simplifiers\ExpressionSimplifier.cs (1)
424!containingType.Equals(leftSymbol))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\TypeStyle\TypeStyleHelper.cs (2)
147if (UnwrapTupleType(containingType).Equals(returnType)) 159containingType.ContainingNamespace.Equals(returnType.ContainingNamespace))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\DefaultExpressionSyntaxExtensions.cs (1)
55if (entityType != null && entityType.Equals(defaultType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (2)
799if (expressionType.Equals(typeInfo.ConvertedType?.OriginalDefinition)) 828expressionType.Equals(method.Parameters[0].Type?.OriginalDefinition))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (3)
529if (originalConvertedType.Equals(rewrittenConvertedType)) 922if (!otherSideType.Equals(thisSideRewrittenType)) 936return rewrittenConditionalConvertedType.Equals(conversionOperation.Type);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpUseImplicitTypeHelper.cs (3)
243return valueType.Equals(parameterType); 313return declaredType != null && declaredType.Equals(initializerType); 321return declaredType.Equals(initializerType) &&
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (2)
266var stringValue = negative && nonNegativeValue.Equals(value) 283if (constant.Key.Equals(value))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\FieldGenerator.cs (1)
114var canUseFieldReference = field.Type != null && !field.Type.Equals(field.ContainingType);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
125if (!targetType.Equals(type))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (2)
92while (arrayType != null && !arrayType.Equals(underlyingType)) 183if (symbol.IsTupleType && symbol.TupleUnderlyingType != null && !symbol.Equals(symbol.TupleUnderlyingType))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\InitializeParameter\CSharpInitializeParameterService.cs (1)
88if (tupleRight.Elements[i] is IParameterReferenceOperation parameterReference && sibling.Equals(parameterReference.Parameter) &&
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (2)
CodeGeneration\SyntaxGeneratorTests.cs (2)
1054m.Name == WellKnownMemberNames.ExplicitConversionName && m.Parameters[0].Type.Equals(gcHandleType)); 1062m.Name == WellKnownMemberNames.ImplicitConversionName && m.Parameters[0].Type.Equals(_emptyCompilation.GetSpecialType(SpecialType.System_Byte)));
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
SymbolFinder\SymbolFinderTests.cs (1)
452Assert.True(immediateDerived.All(d => d.BaseType.Equals(rootType)));
Microsoft.CodeAnalysis.Extensions.Package (23)
Symbols\IMethodSymbolExtensions.cs (3)
108methodSymbol.ReturnType.OriginalDefinition.Equals(taskType) || 109methodSymbol.ReturnType.OriginalDefinition.Equals(genericTaskType)); 123return method.ReturnType.Equals(compilation.TaskType()) ||
Symbols\INamedTypeSymbolExtensions.cs (3)
61if (current.Equals(outer)) 75.FirstOrDefault(s => symbol.Equals(s.GetOverriddenMember())); 459if (type.Equals(systemAttributeType))
Symbols\IPropertySymbolExtensions.cs (1)
17.FirstOrDefault(f => property.Equals(f.AssociatedSymbol));
Symbols\ISymbolExtensions.cs (2)
161if (symbol.Equals(impl)) 814return symbol.GetAttributes().Any(static (attribute, attributeClass) => attributeClass.Equals(attribute.AttributeClass), attributeClass);
Symbols\ISymbolExtensions_Accessibility.cs (1)
440if (current.Equals(originalContainingType))
Symbols\ITypeSymbolExtensions.AnonymousTypeRemover.cs (2)
26if (elementType != null && elementType.Equals(symbol.ElementType)) 57if (elementType != null && elementType.Equals(symbol.PointedAtType))
Symbols\ITypeSymbolExtensions.cs (2)
415if (typeSymbol.OriginalDefinition.Equals(expressionOfT)) 601if (baseType.Equals(compilation.ExceptionType()))
Symbols\ITypeSymbolExtensions.SubstituteTypesVisitor.cs (2)
105if (elementType != null && elementType.Equals(symbol.ElementType)) 122if (pointedAtType != null && pointedAtType.Equals(symbol.PointedAtType))
Symbols\ITypeSymbolExtensions.UnavailableTypeParameterRemover.cs (2)
29if (elementType != null && elementType.Equals(symbol.ElementType)) 57if (elementType != null && elementType.Equals(symbol.PointedAtType))
Symbols\ITypeSymbolExtensions.UnnamedErrorTypeRemover.cs (2)
28if (elementType != null && elementType.Equals(symbol.ElementType)) 61if (elementType != null && elementType.Equals(symbol.PointedAtType))
Symbols\SymbolEquivalenceComparer.cs (2)
192=> symbol.Equals(symbol.ConstructedFrom); 195=> symbol.Equals(symbol.ConstructedFrom);
Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
592if (x.Equals(y))
Microsoft.CodeAnalysis.Features (67)
ChangeSignature\AbstractChangeSignatureService.cs (1)
699var pos = originalParameters.IndexOf(p => p is ExistingParameter ep && ep.Symbol.Equals(existingParameter.Symbol));
ChangeSignature\SignatureChange.cs (1)
36var updatedIndex = updatedParameterList.IndexOf(p => p is ExistingParameter ep && ep.Symbol.Equals(existingParameter.Symbol));
CodeRefactorings\SyncNamespace\AbstractChangeNamespaceService.cs (1)
514.Where(refSymbol => refSymbol.Definition.Equals(symbol))
ConvertAnonymousType\AbstractConvertAnonymousTypeToClassCodeRefactoringProvider.cs (1)
208if (anonymousType.Equals(childType))
ConvertAutoPropertyToFullProperty\AbstractConvertAutoPropertyToFullPropertyCodeRefactoringProvider.cs (1)
72var field = fields.FirstOrDefault(f => propertySymbol.Equals(f.AssociatedSymbol));
ConvertForEachToFor\AbstractConvertForEachToForCodeRefactoringProvider.cs (1)
254if (collectionType.OriginalDefinition.Equals(model.Compilation.GetTypeByMetadataName(typeof(ImmutableArray<>).FullName!)))
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (1)
5224if (attribute.AttributeClass.Equals(layoutAttribute) && attribute.ConstructorArguments.Length == 1)
EmbeddedLanguages\DateAndTime\LanguageServices\DateAndTimeLanguageDetector.cs (2)
164return type.Equals(_dateTimeType) || type.Equals(_dateTimeOffsetType);
EmbeddedLanguages\RegularExpressions\LanguageServices\RegexLanguageDetector.cs (1)
154regexType.Equals(method.ContainingType))
ExtractMethod\MethodExtractor.Analyzer.cs (6)
186if (returnType.Equals(knownTaskTypes.TaskType) || returnType.Equals(knownTaskTypes.ValueTaskType)) 190if (returnType.OriginalDefinition.Equals(knownTaskTypes.TaskOfTType) || returnType.OriginalDefinition.Equals(knownTaskTypes.ValueTaskOfTType)) 670return type.Equals(SelectionResult.GetReturnType(this.CancellationToken)); 826if (type.OriginalDefinition.Equals(type))
GenerateComparisonOperators\GenerateComparisonOperatorsCodeRefactoringProvider.cs (1)
245comparedType.Equals(method.Parameters[1].Type))
GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndGetHashCodeFromMembersCodeRefactoringProvider.cs (2)
132containingType.Equals(m.Parameters[0].Type) && 133containingType.Equals(m.Parameters[1].Type));
GenerateEqualsAndGetHashCodeFromMembers\IGenerateEqualsAndGetHashCodeService.cs (2)
33/// <see cref="IEquatable{T}.Equals(T)"/>. 38/// Generates an implementation of <see cref="IEquatable{T}.Equals"/> that works by
InitializeParameter\AbstractAddParameterCheckCodeRefactoringProvider.cs (1)
509return parameter is null || parameter.Equals(parameterReference.Parameter);
InitializeParameter\AbstractInitializeMemberFromParameterCodeRefactoringProviderMemberCreation.cs (1)
676member.Equals(memberReference.Member))
InlineMethod\AbstractInlineMethodRefactoringProvider.MethodParametersInfo.cs (1)
492&& parameterOperation.Parameter.Equals(parametersWithVariableDeclarationArgument[0].parameterSymbol);
IntroduceParameter\AbstractIntroduceParameterCodeRefactoringProvider.cs (1)
79if (expressionSymbol is IParameterSymbol parameterSymbol && parameterSymbol.ContainingSymbol.Equals(containingSymbol))
IntroduceParameter\IntroduceParameterDocumentRewriter.cs (1)
605!parameter.Type.Equals(compilation.GetTypeByMetadataName(typeof(CancellationToken)?.FullName!));
LanguageServiceIndexFormat\SymbolMoniker.cs (1)
18if (!symbol.OriginalDefinition.Equals(symbol))
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (1)
724.Where(s => !s.Equals(symbolGroup.First().OriginalDefinition))
NameTupleElement\AbstractNameTupleElementCodeRefactoringProvider.cs (1)
73if (element.Equals(element.CorrespondingTupleField))
src\Analyzers\Core\Analyzers\Helpers\DeserializationConstructorCheck.cs (2)
19methodSymbol.Parameters[0].Type.Equals(_serializationInfoType) && 20methodSymbol.Parameters[1].Type.Equals(_streamingContextType) &&
src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.cs (1)
225=> Unwrap(value) is ILocalReferenceOperation localReference && accumulatorVariable.Equals(localReference.Local);
src\Analyzers\Core\Analyzers\MakeFieldReadonly\AbstractMakeFieldReadonlyDiagnosticAnalyzer.cs (1)
281if (!field.ContainingType.Equals(owningSymbol.ContainingType))
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
848if (suppressMessageAttributeType.Equals(attribute.AttributeClass) &&
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\SuppressMessageAttributeState.cs (1)
62_suppressMessageAttributeType.Equals(propertyReference.Property.ContainingType))
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
827methodSymbol.Parameters[0].Type.Equals(memberSymbol.ContainingType))
src\Analyzers\Core\Analyzers\SimplifyInterpolation\AbstractSimplifyInterpolationDiagnosticAnalyzer.cs (2)
55convertedType.Equals(formattableStringType)) 62invocation.TargetMethod.ContainingType.Equals(formattableStringType);
src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (3)
346if (!containingType.Equals(property.ContainingType)) 415if (!containingType.Equals(getterField.ContainingType)) 423if (!property.Type.Equals(getterField.Type))
src\Analyzers\Core\Analyzers\UseCoalesceExpression\AbstractUseCoalesceExpressionForNullableTernaryConditionalCheckDiagnosticAnalyzer.cs (1)
115if (!nullableType.Equals(type.Type?.OriginalDefinition))
src\Analyzers\Core\Analyzers\UseCollectionInitializer\UpdateExpressionState.cs (1)
252useSpread = parameter.Type.Equals(convertedType);
src\Analyzers\Core\Analyzers\UseExplicitTupleName\UseExplicitTupleNameDiagnosticAnalyzer.cs (2)
52if (field.CorrespondingTupleField?.Equals(field) == true) 84unnamedField.Equals(fieldSymbol.CorrespondingTupleField) &&
src\Analyzers\Core\Analyzers\UseIsNullCheck\AbstractUseIsNullForReferenceEqualsDiagnosticAnalyzer.cs (1)
102if (!referenceEqualsMethod.Equals(symbol))
src\Analyzers\Core\Analyzers\UseNullPropagation\AbstractUseNullPropagationDiagnosticAnalyzer.cs (1)
317return referenceEqualsMethod.Equals(symbol);
src\Analyzers\Core\Analyzers\ValidateFormatString\AbstractValidateFormatStringDiagnosticAnalyzer.cs (1)
139var hasIFormatProvider = parameters[0].Type.Equals(formatProviderType);
src\Analyzers\Core\CodeFixes\AddExplicitCast\InheritanceDistanceComparer.cs (1)
63if (derivedType.Equals(baseType))
src\Analyzers\Core\CodeFixes\AddParameter\AbstractAddParameterCodeFixProvider.cs (2)
540if (parameterType.Equals(argumentTypeInfo.Type) || parameterType.Equals(argumentTypeInfo.ConvertedType))
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.cs (3)
56if (currentConstructor.Equals(delegatedConstructor)) 60if (!delegatedConstructor.ContainingType.Equals(currentConstructor.ContainingType)) 73if (currentDelegatedConstructor.Equals(currentConstructor))
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (2)
220if (TypeToGenerateIn.Equals(constructor.ContainingType) && 428var isThis = _delegatedConstructor.ContainingType.OriginalDefinition.Equals(TypeToGenerateIn.OriginalDefinition);
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.State.cs (2)
380symbol.ContainingType.Equals(ContainingType)) 494if (!ContainingType.OriginalDefinition.Equals(TypeToGenerateIn.OriginalDefinition))
src\Analyzers\Core\CodeFixes\ImplementInterface\AbstractImplementInterfaceCodeFixProvider.cs (1)
186if (!typeA.Equals(typeB))
src\Analyzers\Core\CodeFixes\RemoveAsyncModifier\AbstractRemoveAsyncModifierCodeFixProvider.cs (6)
110|| returnType.OriginalDefinition.Equals(knownTypes.TaskOfTType) 111|| returnType.OriginalDefinition.Equals(knownTypes.ValueTaskOfTType); 114=> returnType.OriginalDefinition.Equals(knownTypes.TaskType) 115|| returnType.OriginalDefinition.Equals(knownTypes.ValueTaskType); 217if (returnType.OriginalDefinition.Equals(knownTypes.TaskType)) 233if (returnType.OriginalDefinition.Equals(knownTypes.TaskOfTType))
src\Compilers\Core\Portable\DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (2)
765if (boundReturnType != null && methodSymbol.ReturnType.Equals(boundReturnType)) 803return parameterType != null && symbol.Type.Equals(parameterType);
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Protocol\Internal\Text\ImageId.cs (1)
83return ((IEquatable<ImageId>)this).Equals(other2);
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (65)
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (1)
38if (generatedCodeAttribute.Equals(attribute.AttributeClass))
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (2)
394a.AttributeClass.Equals(wellKnownTypeProvider.GetOrCreateTypeByMetadataName(WellKnownTypeNames.SystemRuntimeCompilerServicesCompilerGeneratedAttribute)) || 395a.AttributeClass.Equals(wellKnownTypeProvider.GetOrCreateTypeByMetadataName(WellKnownTypeNames.SystemCodeDomCompilerGeneratedCodeAttribute))),
src\RoslynAnalyzers\Utilities\Compiler\Extensions\INamedTypeSymbolExtensions.cs (2)
54if (baseType.Equals(parentType)) 60if (type.OriginalDefinition.AllInterfaces.Any(baseInterface => baseInterface.OriginalDefinition.Equals(parentType)))
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (1)
335operation is ILocalFunctionOperation localFunction && localFunction.Symbol.OriginalDefinition.Equals(lambdaOrLocalFunction.OriginalDefinition));
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IPropertySymbolExtensions.cs (1)
20=> propertySymbol.ContainingType.GetMembers().OfType<IFieldSymbol>().Any(f => f.IsImplicitlyDeclared && propertySymbol.Equals(f.AssociatedSymbol));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
457notImplementedExceptionType.Equals(objectCreation.Type);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (1)
178return type.AllInterfaces.Any(static (i, enumerableType) => i.OriginalDefinition.Equals(enumerableType), enumerableType);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (1)
488Debug.Assert(localFunction.Equals(localFunction.OriginalDefinition));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyleRules.cs (1)
95if (symbol.Equals(containingType.FindImplementationForInterfaceMember(implementedInterfaceMember)))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFactsExtensions.cs (1)
38if (!innerTypeInfo.Type.Equals(innerTypeInfo.ConvertedType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BodyLevelSymbolKey.cs (1)
91if (possibleSymbol.symbol.Equals(symbol))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ErrorTypeSymbolKey.cs (1)
34var isConstructed = !symbol.Equals(symbol.ConstructedFrom);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.MethodSymbolKey.cs (3)
17Debug.Assert(symbol.Equals(symbol.ConstructedFrom)); 104if (!method.Equals(method.ConstructedFrom)) 129Debug.Assert(symbol.Equals(symbol.ConstructedFrom));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamedTypeSymbolKey.cs (1)
29symbol.Equals(symbol.ConstructedFrom) || symbol.IsUnboundGenericType ? [] : symbol.TypeArguments);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (3)
364if (!methodSymbol.Equals(methodSymbol.ConstructedFrom)) 500if (typeParameter.DeclaringMethod!.Equals(method)) 518Contract.ThrowIfFalse(method.Equals(_methodSymbolStack[^1]));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
923if (symbol.Equals(overriddenMember)) 1007if (!newSymbol.Equals(implementationMember))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (1)
140dictionary[key] = existingArray.IsEmpty && value.Equals(defaultArray[0]) ? defaultArray : existingArray.Add(value);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IMethodSymbolExtensions.cs (3)
108methodSymbol.ReturnType.OriginalDefinition.Equals(taskType) || 109methodSymbol.ReturnType.OriginalDefinition.Equals(genericTaskType)); 123return method.ReturnType.Equals(compilation.TaskType()) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (3)
61if (current.Equals(outer)) 75.FirstOrDefault(s => symbol.Equals(s.GetOverriddenMember())); 459if (type.Equals(systemAttributeType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IPropertySymbolExtensions.cs (1)
17.FirstOrDefault(f => property.Equals(f.AssociatedSymbol));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (2)
161if (symbol.Equals(impl)) 814return symbol.GetAttributes().Any(static (attribute, attributeClass) => attributeClass.Equals(attribute.AttributeClass), attributeClass);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions_Accessibility.cs (1)
440if (current.Equals(originalContainingType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.AnonymousTypeRemover.cs (2)
26if (elementType != null && elementType.Equals(symbol.ElementType)) 57if (elementType != null && elementType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (2)
415if (typeSymbol.OriginalDefinition.Equals(expressionOfT)) 601if (baseType.Equals(compilation.ExceptionType()))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.SubstituteTypesVisitor.cs (2)
105if (elementType != null && elementType.Equals(symbol.ElementType)) 122if (pointedAtType != null && pointedAtType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.UnavailableTypeParameterRemover.cs (2)
29if (elementType != null && elementType.Equals(symbol.ElementType)) 57if (elementType != null && elementType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.UnnamedErrorTypeRemover.cs (2)
28if (elementType != null && elementType.Equals(symbol.ElementType)) 61if (elementType != null && elementType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (2)
192=> symbol.Equals(symbol.ConstructedFrom); 195=> symbol.Equals(symbol.ConstructedFrom);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
592if (x.Equals(y))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (2)
163=> GetAttributes().WhereAsArray(a => a.AttributeClass.Equals(attributeType)); 166=> GetAttributes().WhereAsArray(a => a.AttributeConstructor.Equals(attributeConstructor));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (1)
263if (containedNamespace.Equals(symbol))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (1)
173=> arg.removeAttributeTypes.Any(attr => attr.Equals(a.AttributeClass)) ||
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IPropertySymbolExtensions.cs (1)
70=> arg.attributesToRemove.Any(attr => attr.Equals(a.AttributeClass)) ||
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\KnownTypes.cs (4)
22if (returnType.Equals(this.TaskType)) 25if (returnType.Equals(this.ValueTaskType)) 28if (returnType.OriginalDefinition.Equals(this.TaskOfTType)) 31if (returnType.OriginalDefinition.Equals(this.ValueTaskOfTType))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (1)
148if (!throughMemberType.Equals(interfaceBeingImplemented))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
75.Single(m => containingType.Equals(m.Parameters.FirstOrDefault()?.Type));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\InitializeParameterHelpersCore.cs (2)
40parameter.Equals(parameterReference.Parameter); 150memberReference.Member.ContainingType.Equals(containingType))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SymbolFinder\SymbolFinderInternal.cs (1)
65symbol.ContainingAssembly.Equals(compilation.Assembly))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NullableHelpers.cs (4)
145ILocalReferenceOperation localReference => localReference.Local.Equals(symbol), 146IParameterReferenceOperation parameterReference => parameterReference.Parameter.Equals(symbol), 149IForEachLoopOperation { LoopControlVariable: IVariableDeclaratorOperation variableDeclarator } => variableDeclarator.Symbol.Equals(symbol), 152IVariableDeclaratorOperation variableDeclarator when includeDeclaration => variableDeclarator.GetVariableInitializer() != null && variableDeclarator.Symbol.Equals(symbol),
Microsoft.CodeAnalysis.PublicApiAnalyzers (50)
DeclarePublicApiAnalyzer.Impl.cs (3)
196if (member.Equals(implicitConstructor)) 472var formatString = symbol.Equals(property.GetMethod) 655if (symbol.ContainingAssembly != null && !symbol.ContainingAssembly.Equals(compilation.Assembly))
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (1)
38if (generatedCodeAttribute.Equals(attribute.AttributeClass))
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (2)
394a.AttributeClass.Equals(wellKnownTypeProvider.GetOrCreateTypeByMetadataName(WellKnownTypeNames.SystemRuntimeCompilerServicesCompilerGeneratedAttribute)) || 395a.AttributeClass.Equals(wellKnownTypeProvider.GetOrCreateTypeByMetadataName(WellKnownTypeNames.SystemCodeDomCompilerGeneratedCodeAttribute))),
src\RoslynAnalyzers\Utilities\Compiler\Extensions\INamedTypeSymbolExtensions.cs (2)
54if (baseType.Equals(parentType)) 60if (type.OriginalDefinition.AllInterfaces.Any(baseInterface => baseInterface.OriginalDefinition.Equals(parentType)))
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (1)
335operation is ILocalFunctionOperation localFunction && localFunction.Symbol.OriginalDefinition.Equals(lambdaOrLocalFunction.OriginalDefinition));
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IPropertySymbolExtensions.cs (1)
20=> propertySymbol.ContainingType.GetMembers().OfType<IFieldSymbol>().Any(f => f.IsImplicitlyDeclared && propertySymbol.Equals(f.AssociatedSymbol));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
457notImplementedExceptionType.Equals(objectCreation.Type);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (1)
178return type.AllInterfaces.Any(static (i, enumerableType) => i.OriginalDefinition.Equals(enumerableType), enumerableType);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (1)
488Debug.Assert(localFunction.Equals(localFunction.OriginalDefinition));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyleRules.cs (1)
95if (symbol.Equals(containingType.FindImplementationForInterfaceMember(implementedInterfaceMember)))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFactsExtensions.cs (1)
38if (!innerTypeInfo.Type.Equals(innerTypeInfo.ConvertedType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BodyLevelSymbolKey.cs (1)
91if (possibleSymbol.symbol.Equals(symbol))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ErrorTypeSymbolKey.cs (1)
34var isConstructed = !symbol.Equals(symbol.ConstructedFrom);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.MethodSymbolKey.cs (3)
17Debug.Assert(symbol.Equals(symbol.ConstructedFrom)); 104if (!method.Equals(method.ConstructedFrom)) 129Debug.Assert(symbol.Equals(symbol.ConstructedFrom));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamedTypeSymbolKey.cs (1)
29symbol.Equals(symbol.ConstructedFrom) || symbol.IsUnboundGenericType ? [] : symbol.TypeArguments);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (3)
364if (!methodSymbol.Equals(methodSymbol.ConstructedFrom)) 500if (typeParameter.DeclaringMethod!.Equals(method)) 518Contract.ThrowIfFalse(method.Equals(_methodSymbolStack[^1]));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
923if (symbol.Equals(overriddenMember)) 1007if (!newSymbol.Equals(implementationMember))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (1)
140dictionary[key] = existingArray.IsEmpty && value.Equals(defaultArray[0]) ? defaultArray : existingArray.Add(value);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IMethodSymbolExtensions.cs (3)
108methodSymbol.ReturnType.OriginalDefinition.Equals(taskType) || 109methodSymbol.ReturnType.OriginalDefinition.Equals(genericTaskType)); 123return method.ReturnType.Equals(compilation.TaskType()) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (3)
61if (current.Equals(outer)) 75.FirstOrDefault(s => symbol.Equals(s.GetOverriddenMember())); 459if (type.Equals(systemAttributeType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IPropertySymbolExtensions.cs (1)
17.FirstOrDefault(f => property.Equals(f.AssociatedSymbol));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (2)
161if (symbol.Equals(impl)) 814return symbol.GetAttributes().Any(static (attribute, attributeClass) => attributeClass.Equals(attribute.AttributeClass), attributeClass);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions_Accessibility.cs (1)
440if (current.Equals(originalContainingType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.AnonymousTypeRemover.cs (2)
26if (elementType != null && elementType.Equals(symbol.ElementType)) 57if (elementType != null && elementType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (2)
415if (typeSymbol.OriginalDefinition.Equals(expressionOfT)) 601if (baseType.Equals(compilation.ExceptionType()))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.SubstituteTypesVisitor.cs (2)
105if (elementType != null && elementType.Equals(symbol.ElementType)) 122if (pointedAtType != null && pointedAtType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.UnavailableTypeParameterRemover.cs (2)
29if (elementType != null && elementType.Equals(symbol.ElementType)) 57if (elementType != null && elementType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.UnnamedErrorTypeRemover.cs (2)
28if (elementType != null && elementType.Equals(symbol.ElementType)) 61if (elementType != null && elementType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (2)
192=> symbol.Equals(symbol.ConstructedFrom); 195=> symbol.Equals(symbol.ConstructedFrom);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
592if (x.Equals(y))
Microsoft.CodeAnalysis.ResxSourceGenerator (47)
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (1)
38if (generatedCodeAttribute.Equals(attribute.AttributeClass))
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (2)
394a.AttributeClass.Equals(wellKnownTypeProvider.GetOrCreateTypeByMetadataName(WellKnownTypeNames.SystemRuntimeCompilerServicesCompilerGeneratedAttribute)) || 395a.AttributeClass.Equals(wellKnownTypeProvider.GetOrCreateTypeByMetadataName(WellKnownTypeNames.SystemCodeDomCompilerGeneratedCodeAttribute))),
src\RoslynAnalyzers\Utilities\Compiler\Extensions\INamedTypeSymbolExtensions.cs (2)
54if (baseType.Equals(parentType)) 60if (type.OriginalDefinition.AllInterfaces.Any(baseInterface => baseInterface.OriginalDefinition.Equals(parentType)))
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (1)
335operation is ILocalFunctionOperation localFunction && localFunction.Symbol.OriginalDefinition.Equals(lambdaOrLocalFunction.OriginalDefinition));
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IPropertySymbolExtensions.cs (1)
20=> propertySymbol.ContainingType.GetMembers().OfType<IFieldSymbol>().Any(f => f.IsImplicitlyDeclared && propertySymbol.Equals(f.AssociatedSymbol));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
457notImplementedExceptionType.Equals(objectCreation.Type);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (1)
178return type.AllInterfaces.Any(static (i, enumerableType) => i.OriginalDefinition.Equals(enumerableType), enumerableType);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (1)
488Debug.Assert(localFunction.Equals(localFunction.OriginalDefinition));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyleRules.cs (1)
95if (symbol.Equals(containingType.FindImplementationForInterfaceMember(implementedInterfaceMember)))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFactsExtensions.cs (1)
38if (!innerTypeInfo.Type.Equals(innerTypeInfo.ConvertedType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BodyLevelSymbolKey.cs (1)
91if (possibleSymbol.symbol.Equals(symbol))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ErrorTypeSymbolKey.cs (1)
34var isConstructed = !symbol.Equals(symbol.ConstructedFrom);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.MethodSymbolKey.cs (3)
17Debug.Assert(symbol.Equals(symbol.ConstructedFrom)); 104if (!method.Equals(method.ConstructedFrom)) 129Debug.Assert(symbol.Equals(symbol.ConstructedFrom));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamedTypeSymbolKey.cs (1)
29symbol.Equals(symbol.ConstructedFrom) || symbol.IsUnboundGenericType ? [] : symbol.TypeArguments);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (3)
364if (!methodSymbol.Equals(methodSymbol.ConstructedFrom)) 500if (typeParameter.DeclaringMethod!.Equals(method)) 518Contract.ThrowIfFalse(method.Equals(_methodSymbolStack[^1]));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
923if (symbol.Equals(overriddenMember)) 1007if (!newSymbol.Equals(implementationMember))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (1)
140dictionary[key] = existingArray.IsEmpty && value.Equals(defaultArray[0]) ? defaultArray : existingArray.Add(value);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IMethodSymbolExtensions.cs (3)
108methodSymbol.ReturnType.OriginalDefinition.Equals(taskType) || 109methodSymbol.ReturnType.OriginalDefinition.Equals(genericTaskType)); 123return method.ReturnType.Equals(compilation.TaskType()) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (3)
61if (current.Equals(outer)) 75.FirstOrDefault(s => symbol.Equals(s.GetOverriddenMember())); 459if (type.Equals(systemAttributeType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IPropertySymbolExtensions.cs (1)
17.FirstOrDefault(f => property.Equals(f.AssociatedSymbol));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (2)
161if (symbol.Equals(impl)) 814return symbol.GetAttributes().Any(static (attribute, attributeClass) => attributeClass.Equals(attribute.AttributeClass), attributeClass);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions_Accessibility.cs (1)
440if (current.Equals(originalContainingType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.AnonymousTypeRemover.cs (2)
26if (elementType != null && elementType.Equals(symbol.ElementType)) 57if (elementType != null && elementType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (2)
415if (typeSymbol.OriginalDefinition.Equals(expressionOfT)) 601if (baseType.Equals(compilation.ExceptionType()))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.SubstituteTypesVisitor.cs (2)
105if (elementType != null && elementType.Equals(symbol.ElementType)) 122if (pointedAtType != null && pointedAtType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.UnavailableTypeParameterRemover.cs (2)
29if (elementType != null && elementType.Equals(symbol.ElementType)) 57if (elementType != null && elementType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.UnnamedErrorTypeRemover.cs (2)
28if (elementType != null && elementType.Equals(symbol.ElementType)) 61if (elementType != null && elementType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (2)
192=> symbol.Equals(symbol.ConstructedFrom); 195=> symbol.Equals(symbol.ConstructedFrom);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
592if (x.Equals(y))
Microsoft.CodeAnalysis.Test.Utilities (6)
Assert\AssertEx.cs (1)
82return equatable.Equals(y);
Assert\EqualityUtil`1.cs (4)
198Assert.True(equatableUnit.Equals(value)); 200Assert.True(equatableValue.Equals(unit.Value)); 205Assert.False(equatableUnit.Equals(value)); 207Assert.False(equatableValue.Equals(unit.Value));
Diagnostics\CouldHaveMoreSpecificTypeAnalyzer.cs (1)
208return derivedBaseType != null && (derivedBaseType.Equals(baseType) || DerivesFrom(derivedBaseType, baseType));
Microsoft.CodeAnalysis.VisualBasic (3)
Analysis\FlowAnalysis\DataFlowPass.VariableIdentifier.vb (1)
43Public Overloads Function Equals(obj As VariableIdentifier) As Boolean Implements IEquatable(Of VariableIdentifier).Equals
BoundTree\BoundTypeOrValueExpression.vb (1)
77Private Overloads Function Equals(b As BoundTypeOrValueData) As Boolean Implements IEquatable(Of BoundTypeOrValueData).Equals
SymbolDisplay\SymbolDisplayVisitor_Minimal.vb (1)
138If boundAlias IsNot Nothing AndAlso boundAlias.Target.Equals(symbol) Then
Microsoft.CodeAnalysis.VisualBasic.Analyzers (2)
MetaAnalyzers\BasicRegisterActionAnalyzer.vb (2)
88Return (Me._basicSyntaxKind IsNot Nothing AndAlso type.Equals(Me._basicSyntaxKind)) OrElse 89(Me._csharpSyntaxKind IsNot Nothing AndAlso type.Equals(Me._csharpSyntaxKind))
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\SyntaxNodeExtensions.vb (2)
1075If expressionTypeOpt.Equals(typeInfo.ConvertedType?.OriginalDefinition) Then 1089expressionTypeOpt.Equals(method.Parameters(0).Type.OriginalDefinition) Then
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Utilities\CastAnalyzer.vb (2)
356Return conversion1.IsUserDefined AndAlso conversion2.IsUserDefined AndAlso conversion1.MethodSymbol.Equals(conversion2.MethodSymbol) 415If castType.Equals(outerType) OrElse outerType.SpecialType = SpecialType.System_Object Then
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (4)
src\Analyzers\VisualBasic\CodeFixes\Iterator\VisualBasicConvertToIteratorCodeFixProvider.vb (1)
80If Not method.ReturnType.Equals(ienumerableSymbol) Then
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\FieldGenerator.vb (1)
96Dim canUseFieldReference = field.Type IsNot Nothing AndAlso Not field.Type.Equals(field.ContainingType)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ExpressionSyntaxExtensions.vb (1)
146If Not targetType.Equals(type) Then
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\TypeSyntaxGeneratorVisitor.vb (1)
73Not symbol.Equals(symbol.TupleUnderlyingType) Then
Microsoft.CodeAnalysis.VisualBasic.Features (2)
ConvertForEachToFor\VisualBasicConvertForEachToForCodeRefactoringProvider.vb (1)
181If nextVariable Is Nothing OrElse nextVariable.Local?.Equals(foreachVariable) = False Then
src\Analyzers\VisualBasic\CodeFixes\Iterator\VisualBasicConvertToIteratorCodeFixProvider.vb (1)
80If Not method.ReturnType.Equals(ienumerableSymbol) Then
Microsoft.CodeAnalysis.VisualBasic.Workspaces (19)
CodeCleanup\AsyncOrIteratorFunctionReturnTypeFixer.vb (2)
100Not returnType.Equals(taskType) AndAlso Not returnType.OriginalDefinition.Equals(taskOfT) Then
Recommendations\VisualBasicRecommendationServiceRunner.vb (1)
257useBaseReferenceAccessibility = Not parameter.Type.Equals(container)
Simplification\Reducers\VisualBasicExtensionMethodReducer.vb (1)
62If newSymbol.Kind = SymbolKind.Method And oldSymbol.Equals(DirectCast(newSymbol, IMethodSymbol).GetConstructedReducedFrom()) Then
Simplification\Reducers\VisualBasicVariableDeclaratorReducer.vb (2)
98If Not declaredSymbolType.Equals(initializerType) Then 120If Not valueType.Equals(declaredSymbolType) Then
Simplification\Simplifiers\AbstractVisualBasicSimplifier.vb (1)
169If boundAlias IsNot Nothing And aliasReplacement.Target.Equals(symbol) Then
Simplification\Simplifiers\ExpressionSimplifier.vb (1)
250If containingType IsNot Nothing AndAlso Not containingType.Equals(leftSymbol) Then
Simplification\VisualBasicSimplificationService.Expander.vb (4)
425If Not symbolForQualifiedName.ContainingType.Equals(symbolForLeftPart) Then 455If Not symbolForMemberAccess.ContainingType.Equals(symbolForLeftPart) Then 732If Not symbolForQualification.Equals(newSymbol) Then 744symbol.Equals(_semanticModel.GetSpeculativeSymbolInfo(originalNode.SpanStart, result, SpeculativeBindingOption.BindAsExpression).Symbol))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\SyntaxNodeExtensions.vb (2)
1075If expressionTypeOpt.Equals(typeInfo.ConvertedType?.OriginalDefinition) Then 1089expressionTypeOpt.Equals(method.Parameters(0).Type.OriginalDefinition) Then
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Utilities\CastAnalyzer.vb (2)
356Return conversion1.IsUserDefined AndAlso conversion2.IsUserDefined AndAlso conversion1.MethodSymbol.Equals(conversion2.MethodSymbol) 415If castType.Equals(outerType) OrElse outerType.SpecialType = SpecialType.System_Object Then
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\FieldGenerator.vb (1)
96Dim canUseFieldReference = field.Type IsNot Nothing AndAlso Not field.Type.Equals(field.ContainingType)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ExpressionSyntaxExtensions.vb (1)
146If Not targetType.Equals(type) Then
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\TypeSyntaxGeneratorVisitor.vb (1)
73Not symbol.Equals(symbol.TupleUnderlyingType) Then
Microsoft.CodeAnalysis.Workspaces (92)
Editing\SymbolEditorExtensions.cs (1)
44var typeRef = gen.GetBaseAndInterfaceTypes(decl).FirstOrDefault(r => model.GetTypeInfo(r, cancellationToken).Type.Equals(baseOrInterfaceType));
FindSymbols\FindReferences\Finders\AbstractReferenceFinder.cs (1)
592Contract.ThrowIfFalse(notNullOriginalUnreducedSymbol2.GetOriginalUnreducedDefinition().Equals(notNullOriginalUnreducedSymbol2));
FindSymbols\FindReferences\Finders\AbstractReferenceFinder_GlobalSuppressions.cs (1)
198return suppressMessageAttribute.Equals(attributeSymbol);
FindSymbols\FindReferences\Finders\EventSymbolReferenceFinder.cs (2)
28.Where(f => symbol.Equals(f.AssociatedSymbol)) 32.WhereAsArray(n => symbol.Equals(n.AssociatedSymbol))
FindSymbols\FindReferences\Finders\ParameterSymbolReferenceFinder.cs (1)
151if (convertedType1.Equals(convertedType2))
FindSymbols\FindReferences\Finders\PropertySymbolReferenceFinder.cs (2)
57symbol.Equals(field.AssociatedSymbol)) 96property.Equals(parameter.GetAssociatedSynthesizedRecordProperty(cancellationToken)))
Options\OptionKey.cs (1)
53return thisOption2.Equals(otherOption2);
ReassignedVariable\AbstractReassignedVariableService.cs (1)
355if (localOrParameter.Equals(symbol))
Recommendations\AbstractRecommendationServiceRunner.cs (3)
206expressionSymbolNamedTypeCandidate.OriginalDefinition.Equals(expressionSymbol)) 301var aliases = semanticModel.LookupSymbols(_context.Position, container).OfType<IAliasSymbol>().Where(a => systemNamespace.Equals(a.Target)); 326var aliases = _context.SemanticModel.LookupSymbols(_context.Position, container).OfType<IAliasSymbol>().Where(a => specialTypeSymbol.Equals(a.Target));
Rename\ConflictEngine\ConflictResolver.cs (3)
242.Where(s => !s.Equals(renamedSymbol) && 267.Where(s => !s.Equals(renamedSymbol) && 277.Where(s => !s.Equals(renamedSymbol) &&
Rename\ConflictEngine\DeclarationConflictHelpers.cs (2)
20.Where(m => !m.Equals(renamedMethod) && m.Arity == renamedMethod.Arity); 31.Where(m => !m.Equals(renamedProperty) && m.Parameters.Length == renamedProperty.Parameters.Length);
Rename\RenameUtilities.cs (1)
201if (string.Equals(member.MetadataName, symbol.MetadataName, StringComparison.Ordinal) && member is IMethodSymbol && !member.Equals(symbol))
Rename\SymbolicRenameLocations.cs (1)
145var referencedSymbols = referenceSymbols.Select(r => r.Definition).Where(r => !r.Equals(symbol)).ToImmutableArray();
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (7)
38if (referencedSymbol.Equals(originalSymbol)) 51if (referencedSymbol.Kind == SymbolKind.Field && originalSymbol.Equals(((IFieldSymbol)referencedSymbol).AssociatedSymbol)) 82return nt.ConstructedFrom.Equals(referencedSymbol) 86return s.Equals(referencedSymbol); 108!originalSymbol.ExplicitInterfaceImplementations().Any(static (s, referencedSymbol) => s.Equals(referencedSymbol), referencedSymbol)) 133=> parameterSymbol is IParameterSymbol parameter && propertySymbol.Equals(parameter.GetAssociatedSynthesizedRecordProperty(cancellationToken)); 266if (originalSymbol.Equals(location.Alias))
Shared\Extensions\ISymbolExtensions.cs (2)
521if (!left.ReturnType.Equals(right.ReturnType)) 528if (!left.Parameters[i].Type.Equals(right.Parameters[i].Type))
Shared\Extensions\SemanticModelExtensions.cs (1)
127.WhereAsArray(s => s != null && !s.Equals(declaredSymbol))
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (1)
38if (generatedCodeAttribute.Equals(attribute.AttributeClass))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
457notImplementedExceptionType.Equals(objectCreation.Type);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (1)
178return type.AllInterfaces.Any(static (i, enumerableType) => i.OriginalDefinition.Equals(enumerableType), enumerableType);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (1)
488Debug.Assert(localFunction.Equals(localFunction.OriginalDefinition));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyleRules.cs (1)
95if (symbol.Equals(containingType.FindImplementationForInterfaceMember(implementedInterfaceMember)))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFactsExtensions.cs (1)
38if (!innerTypeInfo.Type.Equals(innerTypeInfo.ConvertedType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BodyLevelSymbolKey.cs (1)
91if (possibleSymbol.symbol.Equals(symbol))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ErrorTypeSymbolKey.cs (1)
34var isConstructed = !symbol.Equals(symbol.ConstructedFrom);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.MethodSymbolKey.cs (3)
17Debug.Assert(symbol.Equals(symbol.ConstructedFrom)); 104if (!method.Equals(method.ConstructedFrom)) 129Debug.Assert(symbol.Equals(symbol.ConstructedFrom));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamedTypeSymbolKey.cs (1)
29symbol.Equals(symbol.ConstructedFrom) || symbol.IsUnboundGenericType ? [] : symbol.TypeArguments);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (3)
364if (!methodSymbol.Equals(methodSymbol.ConstructedFrom)) 500if (typeParameter.DeclaringMethod!.Equals(method)) 518Contract.ThrowIfFalse(method.Equals(_methodSymbolStack[^1]));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
923if (symbol.Equals(overriddenMember)) 1007if (!newSymbol.Equals(implementationMember))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (1)
140dictionary[key] = existingArray.IsEmpty && value.Equals(defaultArray[0]) ? defaultArray : existingArray.Add(value);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IMethodSymbolExtensions.cs (3)
108methodSymbol.ReturnType.OriginalDefinition.Equals(taskType) || 109methodSymbol.ReturnType.OriginalDefinition.Equals(genericTaskType)); 123return method.ReturnType.Equals(compilation.TaskType()) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (3)
61if (current.Equals(outer)) 75.FirstOrDefault(s => symbol.Equals(s.GetOverriddenMember())); 459if (type.Equals(systemAttributeType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IPropertySymbolExtensions.cs (1)
17.FirstOrDefault(f => property.Equals(f.AssociatedSymbol));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (2)
161if (symbol.Equals(impl)) 814return symbol.GetAttributes().Any(static (attribute, attributeClass) => attributeClass.Equals(attribute.AttributeClass), attributeClass);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions_Accessibility.cs (1)
440if (current.Equals(originalContainingType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.AnonymousTypeRemover.cs (2)
26if (elementType != null && elementType.Equals(symbol.ElementType)) 57if (elementType != null && elementType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (2)
415if (typeSymbol.OriginalDefinition.Equals(expressionOfT)) 601if (baseType.Equals(compilation.ExceptionType()))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.SubstituteTypesVisitor.cs (2)
105if (elementType != null && elementType.Equals(symbol.ElementType)) 122if (pointedAtType != null && pointedAtType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.UnavailableTypeParameterRemover.cs (2)
29if (elementType != null && elementType.Equals(symbol.ElementType)) 57if (elementType != null && elementType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.UnnamedErrorTypeRemover.cs (2)
28if (elementType != null && elementType.Equals(symbol.ElementType)) 61if (elementType != null && elementType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (2)
192=> symbol.Equals(symbol.ConstructedFrom); 195=> symbol.Equals(symbol.ConstructedFrom);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
592if (x.Equals(y))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (2)
163=> GetAttributes().WhereAsArray(a => a.AttributeClass.Equals(attributeType)); 166=> GetAttributes().WhereAsArray(a => a.AttributeConstructor.Equals(attributeConstructor));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (1)
263if (containedNamespace.Equals(symbol))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (1)
173=> arg.removeAttributeTypes.Any(attr => attr.Equals(a.AttributeClass)) ||
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IPropertySymbolExtensions.cs (1)
70=> arg.attributesToRemove.Any(attr => attr.Equals(a.AttributeClass)) ||
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\KnownTypes.cs (4)
22if (returnType.Equals(this.TaskType)) 25if (returnType.Equals(this.ValueTaskType)) 28if (returnType.OriginalDefinition.Equals(this.TaskOfTType)) 31if (returnType.OriginalDefinition.Equals(this.ValueTaskOfTType))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (1)
148if (!throughMemberType.Equals(interfaceBeingImplemented))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
75.Single(m => containingType.Equals(m.Parameters.FirstOrDefault()?.Type));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\InitializeParameterHelpersCore.cs (2)
40parameter.Equals(parameterReference.Parameter); 150memberReference.Member.ContainingType.Equals(containingType))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SymbolFinder\SymbolFinderInternal.cs (1)
65symbol.ContainingAssembly.Equals(compilation.Assembly))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NullableHelpers.cs (4)
145ILocalReferenceOperation localReference => localReference.Local.Equals(symbol), 146IParameterReferenceOperation parameterReference => parameterReference.Parameter.Equals(symbol), 149IForEachLoopOperation { LoopControlVariable: IVariableDeclaratorOperation variableDeclarator } => variableDeclarator.Symbol.Equals(symbol), 152IVariableDeclaratorOperation variableDeclarator when includeDeclaration => variableDeclarator.GetVariableInitializer() != null && variableDeclarator.Symbol.Equals(symbol),
Workspace\Solution\SolutionCompilationState.RootedSymbolSet.cs (3)
100if (this.Compilation.Assembly.Equals(symbol)) 108this.Compilation.DynamicType.Equals(symbol)) 135if (cached.symbol.Equals(symbol))
Microsoft.DotNet.NuGetRepack.Tests (1)
TestHelpers\AssertEx.cs (1)
72return equatable.Equals(y);
Microsoft.Extensions.Identity.Stores (1)
RoleStoreBase.cs (1)
140if (id.Equals(default(TKey)))
Microsoft.Maui.Controls.BindingSourceGen (1)
PathPart.cs (1)
52 return other is ConditionalAccess conditionalAccess && Part.Equals(conditionalAccess.Part);
Microsoft.Maui.Essentials (4)
Accelerometer\Accelerometer.shared.cs (1)
153 /// <inheritdoc cref="IEquatable{T}.Equals(T)"/>
Types\DeviceIdiom.shared.cs (1)
72 /// <inheritdoc cref="IEquatable{T}.Equals(T)"/>
Types\DevicePlatform.shared.cs (1)
95 /// <inheritdoc cref="IEquatable{T}.Equals(T)"/>
Types\DisplayInfo.shared.cs (1)
101 /// <inheritdoc cref="IEquatable{T}.Equals(T)"/>
Microsoft.ML.AutoML (3)
Sweepers\ISweeper.cs (1)
130parameterValue.Equals(value);
Sweepers\SmacSweeper.cs (1)
283if (parameterDiscrete[j].Equals(pset))
Sweepers\SweeperProbabilityUtils.cs (1)
86if (parameterDiscrete[j].Equals(pset))
Microsoft.ML.Core (1)
Utilities\HashArray.cs (1)
105if (_entries[it].Value.Equals(val))
Microsoft.ML.Ensemble (1)
PipelineEnsemble.cs (1)
684return v1.DenseValues().Zip(v2.DenseValues(), (x1, x2) => x1.Equals(x2)).All(b => b);
Microsoft.ML.Sweeper (4)
Algorithms\SmacSweeper.cs (2)
292if (parameterDiscrete[j].Equals(pset)) 452if (parameterDiscrete[j].Equals(pset))
Algorithms\SweeperProbabilityUtils.cs (1)
181if (parameterDiscrete[j].Equals(pset))
ISweeper.cs (1)
159parameterValue.Equals(value);
Microsoft.ML.Tokenizers (2)
Model\Pair.cs (2)
24public bool Equals(Pair<T> other) => First.Equals(other.First) && Second.Equals(other.Second);
Microsoft.ML.Transforms (1)
MutualInformationFeatureSelection.cs (1)
886Contracts.Assert(tmpDst.Equals(default(TDst)));
Microsoft.VisualStudio.LanguageServices (1)
Venus\ContainedLanguageCodeSupport.cs (1)
387if (!method.Parameters[0].Type.Equals(compilation.ObjectType))
Microsoft.VisualStudio.LanguageServices.CSharp (2)
CodeModel\CSharpCodeModelService.cs (2)
3780typeInfo.Type.Equals(typeSymbol)) 3868typeInfo.Type.Equals(typeSymbol))
Microsoft.VisualStudio.LanguageServices.VisualBasic (2)
CodeModel\VisualBasicCodeModelService.vb (2)
4297typeInfo.Type.Equals(typeSymbol) Then 4369typeInfo.Type.Equals(typeSymbol) Then
Roslyn.Diagnostics.Analyzers (69)
AbstractExposeMemberForTesting`1.cs (1)
112var accessorField = testAccessorType.GetMembers().OfType<IFieldSymbol>().FirstOrDefault(field => field.Type.Equals(containingType));
ImportingConstructorShouldBeObsolete.cs (1)
114if (!attributeData.AttributeClass.Equals(obsoleteAttribute))
PartsExportedWithMEFv2MustBeMarkedAsShared.cs (1)
63ad.AttributeClass.ContainingNamespace.Equals(exportAttribute.ContainingNamespace)))
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (1)
38if (generatedCodeAttribute.Equals(attribute.AttributeClass))
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (2)
394a.AttributeClass.Equals(wellKnownTypeProvider.GetOrCreateTypeByMetadataName(WellKnownTypeNames.SystemRuntimeCompilerServicesCompilerGeneratedAttribute)) || 395a.AttributeClass.Equals(wellKnownTypeProvider.GetOrCreateTypeByMetadataName(WellKnownTypeNames.SystemCodeDomCompilerGeneratedCodeAttribute))),
src\RoslynAnalyzers\Utilities\Compiler\Extensions\INamedTypeSymbolExtensions.cs (2)
54if (baseType.Equals(parentType)) 60if (type.OriginalDefinition.AllInterfaces.Any(baseInterface => baseInterface.OriginalDefinition.Equals(parentType)))
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (1)
335operation is ILocalFunctionOperation localFunction && localFunction.Symbol.OriginalDefinition.Equals(lambdaOrLocalFunction.OriginalDefinition));
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IPropertySymbolExtensions.cs (1)
20=> propertySymbol.ContainingType.GetMembers().OfType<IFieldSymbol>().Any(f => f.IsImplicitlyDeclared && propertySymbol.Equals(f.AssociatedSymbol));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
457notImplementedExceptionType.Equals(objectCreation.Type);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (1)
178return type.AllInterfaces.Any(static (i, enumerableType) => i.OriginalDefinition.Equals(enumerableType), enumerableType);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (1)
488Debug.Assert(localFunction.Equals(localFunction.OriginalDefinition));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyleRules.cs (1)
95if (symbol.Equals(containingType.FindImplementationForInterfaceMember(implementedInterfaceMember)))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFactsExtensions.cs (1)
38if (!innerTypeInfo.Type.Equals(innerTypeInfo.ConvertedType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BodyLevelSymbolKey.cs (1)
91if (possibleSymbol.symbol.Equals(symbol))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ErrorTypeSymbolKey.cs (1)
34var isConstructed = !symbol.Equals(symbol.ConstructedFrom);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.MethodSymbolKey.cs (3)
17Debug.Assert(symbol.Equals(symbol.ConstructedFrom)); 104if (!method.Equals(method.ConstructedFrom)) 129Debug.Assert(symbol.Equals(symbol.ConstructedFrom));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamedTypeSymbolKey.cs (1)
29symbol.Equals(symbol.ConstructedFrom) || symbol.IsUnboundGenericType ? [] : symbol.TypeArguments);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (3)
364if (!methodSymbol.Equals(methodSymbol.ConstructedFrom)) 500if (typeParameter.DeclaringMethod!.Equals(method)) 518Contract.ThrowIfFalse(method.Equals(_methodSymbolStack[^1]));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
923if (symbol.Equals(overriddenMember)) 1007if (!newSymbol.Equals(implementationMember))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (1)
140dictionary[key] = existingArray.IsEmpty && value.Equals(defaultArray[0]) ? defaultArray : existingArray.Add(value);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IMethodSymbolExtensions.cs (3)
108methodSymbol.ReturnType.OriginalDefinition.Equals(taskType) || 109methodSymbol.ReturnType.OriginalDefinition.Equals(genericTaskType)); 123return method.ReturnType.Equals(compilation.TaskType()) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (3)
61if (current.Equals(outer)) 75.FirstOrDefault(s => symbol.Equals(s.GetOverriddenMember())); 459if (type.Equals(systemAttributeType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IPropertySymbolExtensions.cs (1)
17.FirstOrDefault(f => property.Equals(f.AssociatedSymbol));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (2)
161if (symbol.Equals(impl)) 814return symbol.GetAttributes().Any(static (attribute, attributeClass) => attributeClass.Equals(attribute.AttributeClass), attributeClass);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions_Accessibility.cs (1)
440if (current.Equals(originalContainingType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.AnonymousTypeRemover.cs (2)
26if (elementType != null && elementType.Equals(symbol.ElementType)) 57if (elementType != null && elementType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (2)
415if (typeSymbol.OriginalDefinition.Equals(expressionOfT)) 601if (baseType.Equals(compilation.ExceptionType()))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.SubstituteTypesVisitor.cs (2)
105if (elementType != null && elementType.Equals(symbol.ElementType)) 122if (pointedAtType != null && pointedAtType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.UnavailableTypeParameterRemover.cs (2)
29if (elementType != null && elementType.Equals(symbol.ElementType)) 57if (elementType != null && elementType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.UnnamedErrorTypeRemover.cs (2)
28if (elementType != null && elementType.Equals(symbol.ElementType)) 61if (elementType != null && elementType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (2)
192=> symbol.Equals(symbol.ConstructedFrom); 195=> symbol.Equals(symbol.ConstructedFrom);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
592if (x.Equals(y))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (2)
163=> GetAttributes().WhereAsArray(a => a.AttributeClass.Equals(attributeType)); 166=> GetAttributes().WhereAsArray(a => a.AttributeConstructor.Equals(attributeConstructor));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (1)
263if (containedNamespace.Equals(symbol))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (1)
173=> arg.removeAttributeTypes.Any(attr => attr.Equals(a.AttributeClass)) ||
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IPropertySymbolExtensions.cs (1)
70=> arg.attributesToRemove.Any(attr => attr.Equals(a.AttributeClass)) ||
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\KnownTypes.cs (4)
22if (returnType.Equals(this.TaskType)) 25if (returnType.Equals(this.ValueTaskType)) 28if (returnType.OriginalDefinition.Equals(this.TaskOfTType)) 31if (returnType.OriginalDefinition.Equals(this.ValueTaskOfTType))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (1)
148if (!throughMemberType.Equals(interfaceBeingImplemented))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
75.Single(m => containingType.Equals(m.Parameters.FirstOrDefault()?.Type));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\InitializeParameterHelpersCore.cs (2)
40parameter.Equals(parameterReference.Parameter); 150memberReference.Member.ContainingType.Equals(containingType))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SymbolFinder\SymbolFinderInternal.cs (1)
65symbol.ContainingAssembly.Equals(compilation.Assembly))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NullableHelpers.cs (4)
145ILocalReferenceOperation localReference => localReference.Local.Equals(symbol), 146IParameterReferenceOperation parameterReference => parameterReference.Parameter.Equals(symbol), 149IForEachLoopOperation { LoopControlVariable: IVariableDeclaratorOperation variableDeclarator } => variableDeclarator.Symbol.Equals(symbol), 152IVariableDeclaratorOperation variableDeclarator when includeDeclaration => variableDeclarator.GetVariableInitializer() != null && variableDeclarator.Symbol.Equals(symbol),
SymbolDeclaredEventMustBeGeneratedForSourceSymbols.cs (1)
117_compilationType.Equals(invocationSymbol.ContainingType))
Roslyn.Diagnostics.CSharp.Analyzers (19)
CSharpDoNotUseDebugAssertForInterpolatedStrings.cs (1)
67if (invocation.TargetMethod.Equals(assertMethod) &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\TypeStyle\TypeStyleHelper.cs (2)
147if (UnwrapTupleType(containingType).Equals(returnType)) 159containingType.ContainingNamespace.Equals(returnType.ContainingNamespace))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\DefaultExpressionSyntaxExtensions.cs (1)
55if (entityType != null && entityType.Equals(defaultType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (2)
799if (expressionType.Equals(typeInfo.ConvertedType?.OriginalDefinition)) 828expressionType.Equals(method.Parameters[0].Type?.OriginalDefinition))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (3)
529if (originalConvertedType.Equals(rewrittenConvertedType)) 922if (!otherSideType.Equals(thisSideRewrittenType)) 936return rewrittenConditionalConvertedType.Equals(conversionOperation.Type);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpUseImplicitTypeHelper.cs (3)
243return valueType.Equals(parameterType); 313return declaredType != null && declaredType.Equals(initializerType); 321return declaredType.Equals(initializerType) &&
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (2)
266var stringValue = negative && nonNegativeValue.Equals(value) 283if (constant.Key.Equals(value))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\FieldGenerator.cs (1)
114var canUseFieldReference = field.Type != null && !field.Type.Equals(field.ContainingType);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
125if (!targetType.Equals(type))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (2)
92while (arrayType != null && !arrayType.Equals(underlyingType)) 183if (symbol.IsTupleType && symbol.TupleUnderlyingType != null && !symbol.Equals(symbol.TupleUnderlyingType))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\InitializeParameter\CSharpInitializeParameterService.cs (1)
88if (tupleRight.Elements[i] is IParameterReferenceOperation parameterReference && sibling.Equals(parameterReference.Parameter) &&
Roslyn.Diagnostics.VisualBasic.Analyzers (8)
BasicSpecializedEnumerableCreationAnalyzer.vb (1)
73typeInfo.ConvertedType.OriginalDefinition.Equals(Me.GenericEnumerableSymbol)
BasicSymbolDeclaredEventMustBeGeneratedForSourceSymbols.vb (1)
73_sourceModuleType.Equals(invocationSymbol.ContainingType) Then
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\SyntaxNodeExtensions.vb (2)
1075If expressionTypeOpt.Equals(typeInfo.ConvertedType?.OriginalDefinition) Then 1089expressionTypeOpt.Equals(method.Parameters(0).Type.OriginalDefinition) Then
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Utilities\CastAnalyzer.vb (1)
415If castType.Equals(outerType) OrElse outerType.SpecialType = SpecialType.System_Object Then
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\FieldGenerator.vb (1)
96Dim canUseFieldReference = field.Type IsNot Nothing AndAlso Not field.Type.Equals(field.ContainingType)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ExpressionSyntaxExtensions.vb (1)
146If Not targetType.Equals(type) Then
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\TypeSyntaxGeneratorVisitor.vb (1)
73Not symbol.Equals(symbol.TupleUnderlyingType) Then
System.Data.Common (1)
System\Data\DataRowComparer.cs (1)
103if (!a[i]?.Equals(b[i]) ?? b[i] != null)
System.Memory (18)
System\Buffers\SequenceReader.Search.cs (18)
59if ((index > 0 && !remaining[index - 1].Equals(delimiterEscape)) || index == 0) 102else if (index > 0 && remaining[index - 1].Equals(delimiterEscape)) 111if (!remaining[i].Equals(delimiterEscape)) 151if (!remaining[i].Equals(delimiterEscape)) 259else if (index > 0 && remaining[index - 1].Equals(delimiterEscape)) 265for (int i = index; i > 0 && remaining[i - 1].Equals(delimiterEscape); i--, escapeCount++) 300for (int i = remaining.Length; i > 0 && remaining[i - 1].Equals(delimiterEscape); i--, escapeCount++) 581for (i = CurrentSpanIndex; i < CurrentSpan.Length && CurrentSpan[i].Equals(value); i++) 648if (!value.Equals(value0) && !value.Equals(value1) && !value.Equals(value2) && !value.Equals(value3)) 685if (!value.Equals(value0) && !value.Equals(value1) && !value.Equals(value2)) 722if (!value.Equals(value0) && !value.Equals(value1)) 771if (CurrentSpan[CurrentSpanIndex].Equals(next))
System.Private.CoreLib (219)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\EqualityComparer.cs (1)
124if (y != null) return x.Equals(y);
src\libraries\System.Private.CoreLib\src\System\Globalization\Ordinal.cs (4)
105if (!notEquals.Equals(TVector.Zero)) 111if (TVector.GreaterThanAny((vec1 - vecA) & notEquals, vecZMinusA) || !vec1.Equals(vec2)) 132if (!notEquals.Equals(TVector.Zero)) 138if (TVector.GreaterThanAny((vec1 - vecA) & notEquals, vecZMinusA) || !vec1.Equals(vec2))
src\libraries\System.Private.CoreLib\src\System\Int128.cs (1)
88/// <inheritdoc cref="IEquatable{T}.Equals(T)" />
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (2)
3641span.Length != 0 && (span[0]?.Equals(value) ?? (object?)value is null); 3665span.Length != 0 && (span[^1]?.Equals(value) ?? (object?)value is null);
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.Trim.cs (2)
138if (!trimElement.Equals(span[start])) 175if (!trimElement.Equals(span[end]))
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\GenericCache.cs (2)
161if (key.Equals(pEntry._key)) 307if (key.Equals(pEntry._key))
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\GCHandle.T.cs (1)
104/// <inheritdoc cref="IEquatable{T}.Equals(T)"/>
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\PinnedGCHandle.T.cs (1)
138/// <inheritdoc cref="IEquatable{T}.Equals(T)"/>
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\WeakGCHandle.T.cs (1)
112/// <inheritdoc cref="IEquatable{T}.Equals(T)"/>
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.T.cs (199)
241if (value.Equals(Unsafe.Add(ref searchSpace, index + 0)) || 242value.Equals(Unsafe.Add(ref searchSpace, index + 1)) || 243value.Equals(Unsafe.Add(ref searchSpace, index + 2)) || 244value.Equals(Unsafe.Add(ref searchSpace, index + 3)) || 245value.Equals(Unsafe.Add(ref searchSpace, index + 4)) || 246value.Equals(Unsafe.Add(ref searchSpace, index + 5)) || 247value.Equals(Unsafe.Add(ref searchSpace, index + 6)) || 248value.Equals(Unsafe.Add(ref searchSpace, index + 7))) 260if (value.Equals(Unsafe.Add(ref searchSpace, index + 0)) || 261value.Equals(Unsafe.Add(ref searchSpace, index + 1)) || 262value.Equals(Unsafe.Add(ref searchSpace, index + 2)) || 263value.Equals(Unsafe.Add(ref searchSpace, index + 3))) 275if (value.Equals(Unsafe.Add(ref searchSpace, index))) 312if (value.Equals(Unsafe.Add(ref searchSpace, index))) 314if (value.Equals(Unsafe.Add(ref searchSpace, index + 1))) 316if (value.Equals(Unsafe.Add(ref searchSpace, index + 2))) 318if (value.Equals(Unsafe.Add(ref searchSpace, index + 3))) 320if (value.Equals(Unsafe.Add(ref searchSpace, index + 4))) 322if (value.Equals(Unsafe.Add(ref searchSpace, index + 5))) 324if (value.Equals(Unsafe.Add(ref searchSpace, index + 6))) 326if (value.Equals(Unsafe.Add(ref searchSpace, index + 7))) 336if (value.Equals(Unsafe.Add(ref searchSpace, index))) 338if (value.Equals(Unsafe.Add(ref searchSpace, index + 1))) 340if (value.Equals(Unsafe.Add(ref searchSpace, index + 2))) 342if (value.Equals(Unsafe.Add(ref searchSpace, index + 3))) 350if (value.Equals(Unsafe.Add(ref searchSpace, index))) 401if (value0.Equals(lookUp) || value1.Equals(lookUp)) 404if (value0.Equals(lookUp) || value1.Equals(lookUp)) 407if (value0.Equals(lookUp) || value1.Equals(lookUp)) 410if (value0.Equals(lookUp) || value1.Equals(lookUp)) 413if (value0.Equals(lookUp) || value1.Equals(lookUp)) 416if (value0.Equals(lookUp) || value1.Equals(lookUp)) 419if (value0.Equals(lookUp) || value1.Equals(lookUp)) 422if (value0.Equals(lookUp) || value1.Equals(lookUp)) 431if (value0.Equals(lookUp) || value1.Equals(lookUp)) 434if (value0.Equals(lookUp) || value1.Equals(lookUp)) 437if (value0.Equals(lookUp) || value1.Equals(lookUp)) 440if (value0.Equals(lookUp) || value1.Equals(lookUp)) 449if (value0.Equals(lookUp) || value1.Equals(lookUp)) 467else if (lookUp.Equals(value0) || lookUp.Equals(value1)) 507if (value0.Equals(lookUp) || value1.Equals(lookUp) || value2.Equals(lookUp)) 510if (value0.Equals(lookUp) || value1.Equals(lookUp) || value2.Equals(lookUp)) 513if (value0.Equals(lookUp) || value1.Equals(lookUp) || value2.Equals(lookUp)) 516if (value0.Equals(lookUp) || value1.Equals(lookUp) || value2.Equals(lookUp)) 519if (value0.Equals(lookUp) || value1.Equals(lookUp) || value2.Equals(lookUp)) 522if (value0.Equals(lookUp) || value1.Equals(lookUp) || value2.Equals(lookUp)) 525if (value0.Equals(lookUp) || value1.Equals(lookUp) || value2.Equals(lookUp)) 528if (value0.Equals(lookUp) || value1.Equals(lookUp) || value2.Equals(lookUp)) 537if (value0.Equals(lookUp) || value1.Equals(lookUp) || value2.Equals(lookUp)) 540if (value0.Equals(lookUp) || value1.Equals(lookUp) || value2.Equals(lookUp)) 543if (value0.Equals(lookUp) || value1.Equals(lookUp) || value2.Equals(lookUp)) 546if (value0.Equals(lookUp) || value1.Equals(lookUp) || value2.Equals(lookUp)) 555if (value0.Equals(lookUp) || value1.Equals(lookUp) || value2.Equals(lookUp)) 573else if (lookUp.Equals(value0) || lookUp.Equals(value1) || lookUp.Equals(value2)) 629if (Unsafe.Add(ref value, j)!.Equals(candidate)) 648if (candidate.Equals(Unsafe.Add(ref value, j))) 722if (value.Equals(Unsafe.Add(ref searchSpace, length + 7))) 724if (value.Equals(Unsafe.Add(ref searchSpace, length + 6))) 726if (value.Equals(Unsafe.Add(ref searchSpace, length + 5))) 728if (value.Equals(Unsafe.Add(ref searchSpace, length + 4))) 730if (value.Equals(Unsafe.Add(ref searchSpace, length + 3))) 732if (value.Equals(Unsafe.Add(ref searchSpace, length + 2))) 734if (value.Equals(Unsafe.Add(ref searchSpace, length + 1))) 736if (value.Equals(Unsafe.Add(ref searchSpace, length))) 744if (value.Equals(Unsafe.Add(ref searchSpace, length + 3))) 746if (value.Equals(Unsafe.Add(ref searchSpace, length + 2))) 748if (value.Equals(Unsafe.Add(ref searchSpace, length + 1))) 750if (value.Equals(Unsafe.Add(ref searchSpace, length))) 758if (value.Equals(Unsafe.Add(ref searchSpace, length))) 807if (value0.Equals(lookUp) || value1.Equals(lookUp)) 810if (value0.Equals(lookUp) || value1.Equals(lookUp)) 813if (value0.Equals(lookUp) || value1.Equals(lookUp)) 816if (value0.Equals(lookUp) || value1.Equals(lookUp)) 819if (value0.Equals(lookUp) || value1.Equals(lookUp)) 822if (value0.Equals(lookUp) || value1.Equals(lookUp)) 825if (value0.Equals(lookUp) || value1.Equals(lookUp)) 828if (value0.Equals(lookUp) || value1.Equals(lookUp)) 837if (value0.Equals(lookUp) || value1.Equals(lookUp)) 840if (value0.Equals(lookUp) || value1.Equals(lookUp)) 843if (value0.Equals(lookUp) || value1.Equals(lookUp)) 846if (value0.Equals(lookUp) || value1.Equals(lookUp)) 855if (value0.Equals(lookUp) || value1.Equals(lookUp)) 871else if (lookUp.Equals(value0) || lookUp.Equals(value1)) 912if (value0.Equals(lookUp) || value1.Equals(lookUp) || value2.Equals(lookUp)) 915if (value0.Equals(lookUp) || value1.Equals(lookUp) || value2.Equals(lookUp)) 918if (value0.Equals(lookUp) || value1.Equals(lookUp) || value2.Equals(lookUp)) 921if (value0.Equals(lookUp) || value1.Equals(lookUp) || value2.Equals(lookUp)) 924if (value0.Equals(lookUp) || value1.Equals(lookUp) || value2.Equals(lookUp)) 927if (value0.Equals(lookUp) || value1.Equals(lookUp) || value2.Equals(lookUp)) 930if (value0.Equals(lookUp) || value1.Equals(lookUp) || value2.Equals(lookUp)) 933if (value0.Equals(lookUp) || value1.Equals(lookUp) || value2.Equals(lookUp)) 942if (value0.Equals(lookUp) || value1.Equals(lookUp) || value2.Equals(lookUp)) 945if (value0.Equals(lookUp) || value1.Equals(lookUp) || value2.Equals(lookUp)) 948if (value0.Equals(lookUp) || value1.Equals(lookUp) || value2.Equals(lookUp)) 951if (value0.Equals(lookUp) || value1.Equals(lookUp) || value2.Equals(lookUp)) 960if (value0.Equals(lookUp) || value1.Equals(lookUp) || value2.Equals(lookUp)) 976else if (lookUp.Equals(value0) || lookUp.Equals(value1) || lookUp.Equals(value2)) 1021if (Unsafe.Add(ref value, j)!.Equals(candidate)) 1037if (candidate.Equals(Unsafe.Add(ref value, j))) 1211if (!(lookUp0?.Equals(lookUp1) ?? (object?)lookUp1 is null)) 1215if (!(lookUp0?.Equals(lookUp1) ?? (object?)lookUp1 is null)) 1219if (!(lookUp0?.Equals(lookUp1) ?? (object?)lookUp1 is null)) 1223if (!(lookUp0?.Equals(lookUp1) ?? (object?)lookUp1 is null)) 1227if (!(lookUp0?.Equals(lookUp1) ?? (object?)lookUp1 is null)) 1231if (!(lookUp0?.Equals(lookUp1) ?? (object?)lookUp1 is null)) 1235if (!(lookUp0?.Equals(lookUp1) ?? (object?)lookUp1 is null)) 1239if (!(lookUp0?.Equals(lookUp1) ?? (object?)lookUp1 is null)) 1251if (!(lookUp0?.Equals(lookUp1) ?? (object?)lookUp1 is null)) 1255if (!(lookUp0?.Equals(lookUp1) ?? (object?)lookUp1 is null)) 1259if (!(lookUp0?.Equals(lookUp1) ?? (object?)lookUp1 is null)) 1263if (!(lookUp0?.Equals(lookUp1) ?? (object?)lookUp1 is null)) 1273if (!(lookUp0?.Equals(lookUp1) ?? (object?)lookUp1 is null)) 3069Unsafe.Add(ref dst, idx) = oldValue.Equals(original) ? newValue : original; 3754if (value.Equals(current)) 3835if (current.Equals(value))
src\libraries\System.Private.CoreLib\src\System\Text\Ascii.Utility.cs (1)
2240return !(vector & TVectorByte.Create((byte)0x80)).Equals(TVectorByte.Zero);
src\libraries\System.Private.CoreLib\src\System\Text\Unicode\Utf16Utility.cs (1)
290return (vec & TVector.Create(unchecked((ushort)~0x007F))).Equals(TVector.Zero);
src\libraries\System.Private.CoreLib\src\System\UInt128.cs (1)
90/// <inheritdoc cref="IEquatable{T}.Equals(T)" />
src\System\Collections\Generic\EqualityComparer.CoreCLR.cs (2)
32if (array[i] != null && array[i]!.Equals(value)) return i; 52if (array[i] != null && array[i]!.Equals(value)) return i;
System.Private.Windows.Core (2)
Windows\Win32\Foundation\HandleRef.cs (2)
43=> other.Handle.Equals(Handle) && Equals(other.Wrapper, Wrapper); 74public bool IsNull => Handle.Equals(default);
System.Text.Json (2)
System\Text\Json\Serialization\Converters\FSharp\FSharpValueOptionConverter.cs (2)
55if (value.Equals(default)) 73if (value.Equals(default))
System.Text.RegularExpressions (2)
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.cs (1)
288if (_builder._newLineSet.Equals(minterm))
System\Text\RegularExpressions\Symbolic\SymbolicRegexNode.cs (1)
343return !IsLazy && solver.Full.Equals(_left._set);
System.Windows.Forms.Primitives.TestUtilities (1)
Extensions\AssertExtensions.cs (1)
493if (!expected[i].Equals(actual[i]))
Test.Utilities (45)
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (1)
38if (generatedCodeAttribute.Equals(attribute.AttributeClass))
src\RoslynAnalyzers\Utilities\Compiler\Extensions\INamedTypeSymbolExtensions.cs (2)
54if (baseType.Equals(parentType)) 60if (type.OriginalDefinition.AllInterfaces.Any(baseInterface => baseInterface.OriginalDefinition.Equals(parentType)))
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (1)
335operation is ILocalFunctionOperation localFunction && localFunction.Symbol.OriginalDefinition.Equals(lambdaOrLocalFunction.OriginalDefinition));
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IPropertySymbolExtensions.cs (1)
20=> propertySymbol.ContainingType.GetMembers().OfType<IFieldSymbol>().Any(f => f.IsImplicitlyDeclared && propertySymbol.Equals(f.AssociatedSymbol));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
457notImplementedExceptionType.Equals(objectCreation.Type);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (1)
178return type.AllInterfaces.Any(static (i, enumerableType) => i.OriginalDefinition.Equals(enumerableType), enumerableType);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (1)
488Debug.Assert(localFunction.Equals(localFunction.OriginalDefinition));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyleRules.cs (1)
95if (symbol.Equals(containingType.FindImplementationForInterfaceMember(implementedInterfaceMember)))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFactsExtensions.cs (1)
38if (!innerTypeInfo.Type.Equals(innerTypeInfo.ConvertedType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BodyLevelSymbolKey.cs (1)
91if (possibleSymbol.symbol.Equals(symbol))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ErrorTypeSymbolKey.cs (1)
34var isConstructed = !symbol.Equals(symbol.ConstructedFrom);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.MethodSymbolKey.cs (3)
17Debug.Assert(symbol.Equals(symbol.ConstructedFrom)); 104if (!method.Equals(method.ConstructedFrom)) 129Debug.Assert(symbol.Equals(symbol.ConstructedFrom));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamedTypeSymbolKey.cs (1)
29symbol.Equals(symbol.ConstructedFrom) || symbol.IsUnboundGenericType ? [] : symbol.TypeArguments);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (3)
364if (!methodSymbol.Equals(methodSymbol.ConstructedFrom)) 500if (typeParameter.DeclaringMethod!.Equals(method)) 518Contract.ThrowIfFalse(method.Equals(_methodSymbolStack[^1]));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
923if (symbol.Equals(overriddenMember)) 1007if (!newSymbol.Equals(implementationMember))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (1)
140dictionary[key] = existingArray.IsEmpty && value.Equals(defaultArray[0]) ? defaultArray : existingArray.Add(value);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IMethodSymbolExtensions.cs (3)
108methodSymbol.ReturnType.OriginalDefinition.Equals(taskType) || 109methodSymbol.ReturnType.OriginalDefinition.Equals(genericTaskType)); 123return method.ReturnType.Equals(compilation.TaskType()) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (3)
61if (current.Equals(outer)) 75.FirstOrDefault(s => symbol.Equals(s.GetOverriddenMember())); 459if (type.Equals(systemAttributeType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IPropertySymbolExtensions.cs (1)
17.FirstOrDefault(f => property.Equals(f.AssociatedSymbol));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (2)
161if (symbol.Equals(impl)) 814return symbol.GetAttributes().Any(static (attribute, attributeClass) => attributeClass.Equals(attribute.AttributeClass), attributeClass);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions_Accessibility.cs (1)
440if (current.Equals(originalContainingType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.AnonymousTypeRemover.cs (2)
26if (elementType != null && elementType.Equals(symbol.ElementType)) 57if (elementType != null && elementType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (2)
415if (typeSymbol.OriginalDefinition.Equals(expressionOfT)) 601if (baseType.Equals(compilation.ExceptionType()))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.SubstituteTypesVisitor.cs (2)
105if (elementType != null && elementType.Equals(symbol.ElementType)) 122if (pointedAtType != null && pointedAtType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.UnavailableTypeParameterRemover.cs (2)
29if (elementType != null && elementType.Equals(symbol.ElementType)) 57if (elementType != null && elementType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.UnnamedErrorTypeRemover.cs (2)
28if (elementType != null && elementType.Equals(symbol.ElementType)) 61if (elementType != null && elementType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (2)
192=> symbol.Equals(symbol.ConstructedFrom); 195=> symbol.Equals(symbol.ConstructedFrom);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
592if (x.Equals(y))
Text.Analyzers (65)
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (1)
38if (generatedCodeAttribute.Equals(attribute.AttributeClass))
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (2)
394a.AttributeClass.Equals(wellKnownTypeProvider.GetOrCreateTypeByMetadataName(WellKnownTypeNames.SystemRuntimeCompilerServicesCompilerGeneratedAttribute)) || 395a.AttributeClass.Equals(wellKnownTypeProvider.GetOrCreateTypeByMetadataName(WellKnownTypeNames.SystemCodeDomCompilerGeneratedCodeAttribute))),
src\RoslynAnalyzers\Utilities\Compiler\Extensions\INamedTypeSymbolExtensions.cs (2)
54if (baseType.Equals(parentType)) 60if (type.OriginalDefinition.AllInterfaces.Any(baseInterface => baseInterface.OriginalDefinition.Equals(parentType)))
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (1)
335operation is ILocalFunctionOperation localFunction && localFunction.Symbol.OriginalDefinition.Equals(lambdaOrLocalFunction.OriginalDefinition));
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IPropertySymbolExtensions.cs (1)
20=> propertySymbol.ContainingType.GetMembers().OfType<IFieldSymbol>().Any(f => f.IsImplicitlyDeclared && propertySymbol.Equals(f.AssociatedSymbol));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
457notImplementedExceptionType.Equals(objectCreation.Type);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (1)
178return type.AllInterfaces.Any(static (i, enumerableType) => i.OriginalDefinition.Equals(enumerableType), enumerableType);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (1)
488Debug.Assert(localFunction.Equals(localFunction.OriginalDefinition));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyleRules.cs (1)
95if (symbol.Equals(containingType.FindImplementationForInterfaceMember(implementedInterfaceMember)))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFactsExtensions.cs (1)
38if (!innerTypeInfo.Type.Equals(innerTypeInfo.ConvertedType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BodyLevelSymbolKey.cs (1)
91if (possibleSymbol.symbol.Equals(symbol))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ErrorTypeSymbolKey.cs (1)
34var isConstructed = !symbol.Equals(symbol.ConstructedFrom);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.MethodSymbolKey.cs (3)
17Debug.Assert(symbol.Equals(symbol.ConstructedFrom)); 104if (!method.Equals(method.ConstructedFrom)) 129Debug.Assert(symbol.Equals(symbol.ConstructedFrom));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamedTypeSymbolKey.cs (1)
29symbol.Equals(symbol.ConstructedFrom) || symbol.IsUnboundGenericType ? [] : symbol.TypeArguments);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (3)
364if (!methodSymbol.Equals(methodSymbol.ConstructedFrom)) 500if (typeParameter.DeclaringMethod!.Equals(method)) 518Contract.ThrowIfFalse(method.Equals(_methodSymbolStack[^1]));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
923if (symbol.Equals(overriddenMember)) 1007if (!newSymbol.Equals(implementationMember))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (1)
140dictionary[key] = existingArray.IsEmpty && value.Equals(defaultArray[0]) ? defaultArray : existingArray.Add(value);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IMethodSymbolExtensions.cs (3)
108methodSymbol.ReturnType.OriginalDefinition.Equals(taskType) || 109methodSymbol.ReturnType.OriginalDefinition.Equals(genericTaskType)); 123return method.ReturnType.Equals(compilation.TaskType()) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (3)
61if (current.Equals(outer)) 75.FirstOrDefault(s => symbol.Equals(s.GetOverriddenMember())); 459if (type.Equals(systemAttributeType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IPropertySymbolExtensions.cs (1)
17.FirstOrDefault(f => property.Equals(f.AssociatedSymbol));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (2)
161if (symbol.Equals(impl)) 814return symbol.GetAttributes().Any(static (attribute, attributeClass) => attributeClass.Equals(attribute.AttributeClass), attributeClass);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions_Accessibility.cs (1)
440if (current.Equals(originalContainingType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.AnonymousTypeRemover.cs (2)
26if (elementType != null && elementType.Equals(symbol.ElementType)) 57if (elementType != null && elementType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (2)
415if (typeSymbol.OriginalDefinition.Equals(expressionOfT)) 601if (baseType.Equals(compilation.ExceptionType()))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.SubstituteTypesVisitor.cs (2)
105if (elementType != null && elementType.Equals(symbol.ElementType)) 122if (pointedAtType != null && pointedAtType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.UnavailableTypeParameterRemover.cs (2)
29if (elementType != null && elementType.Equals(symbol.ElementType)) 57if (elementType != null && elementType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.UnnamedErrorTypeRemover.cs (2)
28if (elementType != null && elementType.Equals(symbol.ElementType)) 61if (elementType != null && elementType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (2)
192=> symbol.Equals(symbol.ConstructedFrom); 195=> symbol.Equals(symbol.ConstructedFrom);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
592if (x.Equals(y))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (2)
163=> GetAttributes().WhereAsArray(a => a.AttributeClass.Equals(attributeType)); 166=> GetAttributes().WhereAsArray(a => a.AttributeConstructor.Equals(attributeConstructor));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (1)
263if (containedNamespace.Equals(symbol))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (1)
173=> arg.removeAttributeTypes.Any(attr => attr.Equals(a.AttributeClass)) ||
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IPropertySymbolExtensions.cs (1)
70=> arg.attributesToRemove.Any(attr => attr.Equals(a.AttributeClass)) ||
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\KnownTypes.cs (4)
22if (returnType.Equals(this.TaskType)) 25if (returnType.Equals(this.ValueTaskType)) 28if (returnType.OriginalDefinition.Equals(this.TaskOfTType)) 31if (returnType.OriginalDefinition.Equals(this.ValueTaskOfTType))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (1)
148if (!throughMemberType.Equals(interfaceBeingImplemented))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
75.Single(m => containingType.Equals(m.Parameters.FirstOrDefault()?.Type));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\InitializeParameterHelpersCore.cs (2)
40parameter.Equals(parameterReference.Parameter); 150memberReference.Member.ContainingType.Equals(containingType))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SymbolFinder\SymbolFinderInternal.cs (1)
65symbol.ContainingAssembly.Equals(compilation.Assembly))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NullableHelpers.cs (4)
145ILocalReferenceOperation localReference => localReference.Local.Equals(symbol), 146IParameterReferenceOperation parameterReference => parameterReference.Parameter.Equals(symbol), 149IForEachLoopOperation { LoopControlVariable: IVariableDeclaratorOperation variableDeclarator } => variableDeclarator.Symbol.Equals(symbol), 152IVariableDeclaratorOperation variableDeclarator when includeDeclaration => variableDeclarator.GetVariableInitializer() != null && variableDeclarator.Symbol.Equals(symbol),
xunit.assert (1)
Sdk\AssertEqualityComparer.cs (1)
220 return equatable.Equals(y);