1632 implementations of Equals
aspire (1)
Commands\DescribeCommand.cs (1)
407public bool Equals(ResourceDisplayState? other) =>
Aspire.Dashboard (80)
artifacts\obj\Aspire.Dashboard\Debug\net8.0\DashboardService.cs (34)
352public bool Equals(ApplicationInformationRequest other) { 544public bool Equals(ApplicationInformationResponse other) { 986public bool Equals(ResourceCommand other) { 1493public bool Equals(ResourceCommandRequest other) { 1880public bool Equals(ResourceCommandResponse other) { 2185public bool Equals(ResourceCommandResult other) { 2487public bool Equals(ResourceType other) { 2763public bool Equals(EnvironmentVariable other) { 3092public bool Equals(Url other) { 3414public bool Equals(UrlDisplayProperties other) { 3690public bool Equals(Volume other) { 4044public bool Equals(HealthReport other) { 4366public bool Equals(ResourceRelationship other) { 4721public bool Equals(ResourceProperty other) { 5394public bool Equals(Resource other) { 6019public bool Equals(InitialResourceData other) { 6234public bool Equals(ResourceDeletion other) { 6497public bool Equals(WatchResourcesChange other) { 6749public bool Equals(WatchResourcesChanges other) { 6960public bool Equals(WatchResourcesRequest other) { 7209public bool Equals(WatchResourcesUpdate other) { 7508public bool Equals(ConsoleLogLine other) { 7777public bool Equals(WatchResourceConsoleLogsRequest other) { 8002public bool Equals(WatchResourceConsoleLogsUpdate other) { 8332public bool Equals(WatchInteractionsRequestUpdate other) { 8943public bool Equals(WatchInteractionsResponseUpdate other) { 9489public bool Equals(InteractionComplete other) { 9696public bool Equals(InteractionMessageBox other) { 9977public bool Equals(InteractionNotification other) { 10267public bool Equals(InteractionPromptProgress other) { 10467public bool Equals(InteractionInputsDialog other) { 10877public bool Equals(InteractionInput other) { 11511public bool Equals(UploadFileChunk other) { 11784public bool Equals(UploadFileResponse 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 (6)
324public bool Equals(AnyValue other) { 703public bool Equals(ArrayValue other) { 905public bool Equals(KeyValueList other) { 1116public bool Equals(KeyValue other) { 1408public bool Equals(InstrumentationScope other) { 1739public bool Equals(EntityRef other) {
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\logs\v1\Logs.cs (4)
220public bool Equals(LogsData other) { 451public bool Equals(ResourceLogs other) { 740public bool Equals(ScopeLogs other) { 1205public bool Equals(LogRecord other) {
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\metrics\v1\Metrics.cs (16)
341public bool Equals(MetricsData other) { 572public bool Equals(ResourceMetrics other) { 861public bool Equals(ScopeMetrics other) { 1352public bool Equals(Metric other) { 1816public bool Equals(Gauge other) { 2044public bool Equals(Sum other) { 2304public bool Equals(Histogram other) { 2540public bool Equals(ExponentialHistogram other) { 2766public bool Equals(Summary other) { 3118public bool Equals(NumberDataPoint other) { 3708public bool Equals(HistogramDataPoint other) { 4420public bool Equals(ExponentialHistogramDataPoint other) { 4963public bool Equals(Buckets other) { 5304public bool Equals(SummaryDataPoint other) { 5661public bool Equals(ValueAtQuantile other) { 6035public bool Equals(Exemplar other) {
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\resource\v1\Resource.cs (1)
156public bool Equals(Resource other) {
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\trace\v1\Trace.cs (7)
209public bool Equals(TracesData other) { 440public bool Equals(ResourceSpans other) { 729public bool Equals(ScopeSpans other) { 1290public bool Equals(Span other) { 1928public bool Equals(Event other) { 2297public bool Equals(Link other) { 2633public bool Equals(Status other) {
Model\Otlp\TelemetryFilter.cs (1)
21public abstract bool Equals(TelemetryFilter? other);
Model\ResourceTypeDetails.cs (1)
58public bool Equals(ResourceTypeDetails? other)
Model\SelectViewModel.cs (1)
14public bool Equals(SelectViewModel<T>? other)
Aspire.Hosting (37)
artifacts\obj\Aspire.Hosting\Debug\net8.0\Dashboard\proto\DashboardService.cs (34)
352public bool Equals(ApplicationInformationRequest other) { 544public bool Equals(ApplicationInformationResponse other) { 986public bool Equals(ResourceCommand other) { 1493public bool Equals(ResourceCommandRequest other) { 1880public bool Equals(ResourceCommandResponse other) { 2185public bool Equals(ResourceCommandResult other) { 2487public bool Equals(ResourceType other) { 2763public bool Equals(EnvironmentVariable other) { 3092public bool Equals(Url other) { 3414public bool Equals(UrlDisplayProperties other) { 3690public bool Equals(Volume other) { 4044public bool Equals(HealthReport other) { 4366public bool Equals(ResourceRelationship other) { 4721public bool Equals(ResourceProperty other) { 5394public bool Equals(Resource other) { 6019public bool Equals(InitialResourceData other) { 6234public bool Equals(ResourceDeletion other) { 6497public bool Equals(WatchResourcesChange other) { 6749public bool Equals(WatchResourcesChanges other) { 6960public bool Equals(WatchResourcesRequest other) { 7209public bool Equals(WatchResourcesUpdate other) { 7508public bool Equals(ConsoleLogLine other) { 7777public bool Equals(WatchResourceConsoleLogsRequest other) { 8002public bool Equals(WatchResourceConsoleLogsUpdate other) { 8332public bool Equals(WatchInteractionsRequestUpdate other) { 8943public bool Equals(WatchInteractionsResponseUpdate other) { 9489public bool Equals(InteractionComplete other) { 9696public bool Equals(InteractionMessageBox other) { 9977public bool Equals(InteractionNotification other) { 10267public bool Equals(InteractionPromptProgress other) { 10467public bool Equals(InteractionInputsDialog other) { 10877public bool Equals(InteractionInput other) { 11511public bool Equals(UploadFileChunk other) { 11784public bool Equals(UploadFileResponse other) {
Dcp\AppResource.cs (1)
44public bool Equals(AppResource<TDcpResource>? other)
Dcp\Model\Container.cs (2)
360public bool Equals(ContainerCreateFileSystem? other) 459public bool Equals(ContainerFileSystemEntry? other)
Aspire.Hosting.Azure (1)
AzureBicepResource.cs (1)
630bool IEquatable<BicepOutputReference>.Equals(BicepOutputReference? other) =>
Aspire.Hosting.Browsers (1)
IBrowserHost.cs (1)
149public bool Equals(BrowserHostIdentity other) =>
Aspire.Hosting.Browsers.Tests (1)
src\Aspire.Hosting.Browsers\IBrowserHost.cs (1)
149public bool Equals(BrowserHostIdentity other) =>
Aspire.Hosting.Integration.Analyzers (2)
AspireExportAnalyzer.cs (2)
44public bool Equals(CapabilityExport other) 75public bool Equals(GeneratedMethodNameExport 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) {
cdac-build-tool (1)
DataDescriptorModel.cs (1)
382public bool Equals(GlobalValue other) => other.Kind == Kind && other.NumericValue == NumericValue && other.StringValue == StringValue;
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)
21public bool Equals(Kind? other)
dotnet (3)
ToolManifest\ToolManifestPackage.cs (1)
37public bool Equals(ToolManifestPackage other)
ToolPackage\PackageId.cs (1)
12public bool Equals(PackageId other)
ToolPackage\RestoredCommandIdentifier.cs (1)
28public bool Equals(RestoredCommandIdentifier other)
dotnet-aot (3)
src\sdk\src\Cli\dotnet\ToolManifest\ToolManifestPackage.cs (1)
37public bool Equals(ToolManifestPackage other)
src\sdk\src\Cli\dotnet\ToolPackage\PackageId.cs (1)
12public bool Equals(PackageId other)
src\sdk\src\Cli\dotnet\ToolPackage\RestoredCommandIdentifier.cs (1)
28public bool Equals(RestoredCommandIdentifier other)
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 (24)
src\roslyn\src\Compilers\Core\Portable\Collections\BitVector.cs (1)
41public bool Equals(BitVector other)
src\roslyn\src\Compilers\Core\Portable\FileSystem\RelativePathResolver.cs (1)
60public bool Equals(RelativePathResolver? other) =>
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
309public bool Equals(ImmutableSegmentedDictionary<TKey, TValue> other)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
322public bool Equals(ImmutableSegmentedHashSet<T> other)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
596public bool Equals(ImmutableSegmentedList<T> other)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
186public bool Equals(SegmentedArray<T> other)
src\roslyn\src\Dependencies\Threading\VoidResult.cs (1)
22public bool Equals(VoidResult other)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\OptionKey.cs (1)
54public bool Equals(OptionKey other)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
255public bool Equals(SymbolNamesWithValueOption<TValue>? other)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\Unit.cs (1)
28public readonly bool Equals(Unit other) => true;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeGeneration\ParameterName.cs (1)
66public bool Equals(ParameterName other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (1)
229public bool Equals(CodeStyleOption2<T>? other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenData.cs (1)
44public bool Equals(TokenData other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingRule.cs (1)
21public bool Equals(NamingRule other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
363public bool Equals(NamingStylePreferences? other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (2)
191public bool Equals(SymbolSpecification other) 550public bool Equals(ModifierKind other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\Option2.cs (1)
95public bool Equals(IOption2? other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (1)
74public bool Equals(OptionDefinition? other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\PerLanguageOption2.cs (1)
83public bool Equals(IOption2? other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
356public readonly bool Equals(SymbolKey other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\InterceptsLocationUtilities.cs (1)
22public readonly bool Equals(InterceptsLocationData other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
157public bool Equals(SyntaxPath? other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (1)
222public bool Equals(ISymbol other)
ILCompiler.Compiler (37)
Compiler\AnalysisBasedMetadataManager.cs (2)
316public bool Equals(ReflectableCustomAttribute other) 331public bool Equals(ReflectableParameter other)
Compiler\Dataflow\ArrayValue.cs (1)
66public bool Equals(ArrayValue? otherArr)
Compiler\Dataflow\HoistedLocalKey.cs (1)
26public bool Equals(HoistedLocalKey other) => Field.Equals(other.Field);
Compiler\Dataflow\InterproceduralState.cs (2)
25bool IEquatable<MethodBodyValue>.Equals(ILCompiler.Dataflow.MethodBodyValue other) 45public bool Equals(InterproceduralState other)
Compiler\Dataflow\ValueNode.cs (1)
65public bool Equals(ValueBasicBlockPair other) => Value.Equals(other.Value) && BasicBlockIndex.Equals(other.BasicBlockIndex);
Compiler\DependencyAnalysis\ExternalReferencesTableNode.cs (1)
125public bool Equals(SymbolAndDelta other)
Compiler\DependencyAnalysis\GenericVarianceNode.cs (1)
98public bool Equals(GenericVarianceDetails other)
Compiler\DependencyAnalysis\NodeFactory.cs (7)
1721public bool Equals(MethodKey other) => Method == other.Method && IsUnboxingStub == other.IsUnboxingStub; 1737public bool Equals(ReadyToRunHelperKey other) => HelperId == other.HelperId && Target.Equals(other.Target); 1760public bool Equals(ReadyToRunGenericHelperKey other) 1783public bool Equals(DispatchCellKey other) => Target == other.Target && CallsiteId == other.CallsiteId; 1810public bool Equals(ReadOnlyDataBlobKey other) => Name.Equals(other.Name); 1830public bool Equals(SerializedFrozenObjectKey other) => OwnerType == other.OwnerType && AllocationSiteId == other.AllocationSiteId; 1840public bool Equals(MethodILKey other) => other.MethodIL.OwningMethod == this.MethodIL.OwningMethod;
Compiler\DependencyAnalysis\NodeFactory.GenericLookups.cs (1)
242public bool Equals(ConstrainedMethodUseKey other)
Compiler\DependencyAnalysis\NodeFactory.NativeLayout.cs (2)
250public bool Equals(VertexSequenceKey other) 423public bool Equals(MethodEntrypointSlotKey other)
Compiler\DependencyAnalysis\PInvokeMethodFixupNode.cs (1)
195public bool Equals(PInvokeMethodData other)
Compiler\DependencyAnalysis\PInvokeModuleFixupNode.cs (1)
92public bool Equals(PInvokeModuleData other)
Compiler\Logging\MessageOrigin.cs (1)
121public bool Equals(MessageOrigin other) =>
Compiler\TypePreinit.cs (1)
3217public bool Equals(AllocationSite other) =>
src\runtime\src\coreclr\tools\Common\Compiler\CompilerTypeSystemContext.Async.cs (1)
289public bool Equals(AsyncResumptionStubKey other)
src\runtime\src\coreclr\tools\Common\Compiler\Dataflow\MethodProxy.cs (1)
79public bool Equals(MethodProxy other) => Method.Equals(other.Method);
src\runtime\src\coreclr\tools\Common\Compiler\DependencyAnalysis\INodeWithCodeInfo.cs (1)
34public bool Equals(FrameInfo other)
src\runtime\src\coreclr\tools\Common\Compiler\DependencyAnalysis\Target_Wasm\WasmTypes.cs (3)
78public bool Equals(WasmResultType other) => Types.SequenceEqual(other.Types); 159public bool Equals(WasmSignature other) 253public bool Equals(WasmFuncType other)
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\ModuleCycleInfo.cs (1)
101public bool Equals(EntityPair other) => Owner == other.Owner && Referent == other.Referent;
src\runtime\src\coreclr\tools\Common\Internal\Text\Utf8String.cs (1)
76public bool Equals(Utf8String other)
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoTypes.cs (1)
1648public bool Equals(CORINFO_SWIFT_LOWERING other)
src\runtime\src\tools\illink\src\ILLink.Shared\DataFlow\DefaultValueDictionary.cs (1)
47public bool Equals(DefaultValueDictionary<TKey, TValue> other)
src\runtime\src\tools\illink\src\ILLink.Shared\DataFlow\IControlFlowGraph.cs (1)
78public bool Equals(ControlFlowBranch other)
src\runtime\src\tools\illink\src\ILLink.Shared\DataFlow\MaybeLattice.cs (1)
18public bool Equals(Maybe<T> other) => MaybeValue?.Equals(other.MaybeValue) ?? other.MaybeValue == null;
src\runtime\src\tools\illink\src\ILLink.Shared\DataFlow\ValueSet.cs (1)
171public bool Equals(ValueSet<TValue> other)
src\runtime\src\tools\illink\src\ILLink.Shared\ParameterIndex.cs (1)
46public bool Equals(ParameterIndex other)
ILCompiler.DependencyAnalysisFramework (2)
DependencyNodeCore.cs (1)
96public bool Equals(CombinedDependencyListEntry other)
FullGraphLogStrategy.cs (1)
64public bool Equals(MarkData other)
ILCompiler.Diagnostics (1)
PdbWriter.cs (1)
59public bool Equals(SymDocument other)
ILCompiler.MetadataTransform (2)
ILCompiler\Metadata\Transform.Namespace.cs (1)
140public bool Equals(NamespaceKey other)
ILCompiler\Metadata\Transform.TypeForwarders.cs (1)
106public bool Equals(ForwarderKey other) => Module == other.Module && ExportedType == other.ExportedType;
ILCompiler.ReadyToRun (32)
Compiler\DependencyAnalysis\ReadyToRun\ILBodyFixupSignature.cs (1)
137public bool Equals(ILBodyFixupSignature other) => object.ReferenceEquals(other, this);
Compiler\DependencyAnalysis\ReadyToRun\MethodGCInfoNode.cs (1)
163public bool Equals(GCInfoComponent other)
Compiler\DependencyAnalysis\ReadyToRun\ModuleToken.cs (1)
62public bool Equals(ModuleToken moduleToken)
Compiler\DependencyAnalysis\ReadyToRun\VirtualResolutionFixupSignature.cs (1)
102public bool Equals(VirtualResolutionFixupSignature other) => object.ReferenceEquals(other, this);
Compiler\DependencyAnalysis\ReadyToRunCodegenNodeFactory.cs (10)
235public bool Equals(ReadyToRunGenericHelperKey other) 258public bool Equals(ModuleAndIntValueKey other) => IntValue == other.IntValue && Module == other.Module; 678public bool Equals(MethodFixupKey other) 716public bool Equals(TypeFixupKey other) 755public bool Equals(VirtualResolutionFixupSignatureFixupKey other) 795public bool Equals(ILBodyFixupSignatureFixupKey other) => FixupKind == other.FixupKind && Method.Equals(other.Method); 824public bool Equals(ImportThunkKey other) 867public bool Equals(WasmImportThunkKey other) 908public bool Equals(WasmImportThunkPortableEntrypointKey other) 1246public bool Equals(DynamicHelperCellKey other)
Compiler\DependencyAnalysis\ReadyToRunSymbolNodeFactory.cs (3)
550public bool Equals(MethodAndCallSite other) 592public bool Equals(GenericLookupKey other) 730public bool Equals(PInvokeTargetKey other)
Compiler\DependencyAnalysis\TypeAndMethod.cs (1)
30public bool Equals(TypeAndMethod other)
IBC\IBCProfileParser.cs (1)
186public bool Equals(IBCBlobKey other)
JitInterface\CorInfoImpl.ReadyToRun.cs (2)
99public bool Equals(FieldWithToken fieldWithToken) 449public bool Equals(GenericContext other) => Context == other.Context;
src\runtime\src\coreclr\tools\Common\Compiler\CompilerTypeSystemContext.Async.cs (1)
289public bool Equals(AsyncResumptionStubKey other)
src\runtime\src\coreclr\tools\Common\Compiler\Dataflow\MethodProxy.cs (1)
79public bool Equals(MethodProxy other) => Method.Equals(other.Method);
src\runtime\src\coreclr\tools\Common\Compiler\DependencyAnalysis\INodeWithCodeInfo.cs (1)
34public bool Equals(FrameInfo other)
src\runtime\src\coreclr\tools\Common\Compiler\DependencyAnalysis\Target_Wasm\WasmTypes.cs (3)
78public bool Equals(WasmResultType other) => Types.SequenceEqual(other.Types); 159public bool Equals(WasmSignature other) 253public bool Equals(WasmFuncType other)
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\ModuleCycleInfo.cs (1)
101public bool Equals(EntityPair other) => Owner == other.Owner && Referent == other.Referent;
src\runtime\src\coreclr\tools\Common\Internal\Text\Utf8String.cs (1)
76public bool Equals(Utf8String other)
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoTypes.cs (1)
1648public bool Equals(CORINFO_SWIFT_LOWERING other)
src\runtime\src\coreclr\tools\Common\Pgo\TypeSystemEntityOrUnknown.cs (1)
34public bool Equals(TypeSystemEntityOrUnknown other)
src\runtime\src\tools\illink\src\ILLink.Shared\ParameterIndex.cs (1)
46public bool Equals(ParameterIndex other)
ILCompiler.RyuJit (1)
src\runtime\src\coreclr\tools\Common\Pgo\TypeSystemEntityOrUnknown.cs (1)
34public bool Equals(TypeSystemEntityOrUnknown other)
ILCompiler.TypeSystem (6)
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\Instantiation.cs (1)
108public bool Equals(Instantiation other)
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\MethodDesc.cs (1)
255public bool Equals(MethodSignature otherSignature)
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\TypeDesc.TypeEquivalence.cs (1)
24public bool Equals(TypeIdentifierData other)
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\Utilities\GCPointerMap.cs (1)
105public bool Equals(GCPointerMap other)
src\runtime\src\coreclr\tools\Common\TypeSystem\Interop\MarshalAsDescriptor.cs (1)
86public bool Equals(MarshalAsDescriptor other)
src\runtime\src\coreclr\tools\Common\TypeSystem\Interop\MethodDesc.Interop.cs (1)
311public bool Equals(PInvokeFlags other)
illink (14)
ILLink.RoslynAnalyzer (16)
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)
23public bool Equals(LocalStateAndContext<TValue, TContext> other) =>
DataFlow\LocalStateLattice.cs (4)
22public bool Equals(LocalKey other) => SymbolEqualityComparer.Default.Equals(Local, other.Local) && 45public bool Equals(CapturedTargetKey other) => Operation == other.Operation; 62public bool Equals(CapturedTargetValue<TValue> other) => 129public bool Equals(LocalState<TValue> other) =>
DataFlow\MethodBodyValue.cs (1)
28public bool Equals(MethodBodyValue other)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Index.cs (1)
129public bool Equals(Index other) => _value == other._value;
src\runtime\src\tools\illink\src\ILLink.Shared\DataFlow\DefaultValueDictionary.cs (1)
47public bool Equals(DefaultValueDictionary<TKey, TValue> other)
src\runtime\src\tools\illink\src\ILLink.Shared\DataFlow\IControlFlowGraph.cs (1)
78public bool Equals(ControlFlowBranch other)
src\runtime\src\tools\illink\src\ILLink.Shared\DataFlow\MaybeLattice.cs (1)
18public bool Equals(Maybe<T> other) => MaybeValue?.Equals(other.MaybeValue) ?? other.MaybeValue == null;
src\runtime\src\tools\illink\src\ILLink.Shared\DataFlow\ValueSet.cs (1)
171public bool Equals(ValueSet<TValue> other)
src\runtime\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)
Microsoft.Analyzers.Local (1)
JsonValue.cs (1)
565public bool Equals(JsonValue other)
Microsoft.AspNetCore.Antiforgery (1)
Internal\BinaryBlob.cs (1)
55public 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 (3)
ComponentSubscriptionKey.cs (1)
16public bool Equals(ComponentSubscriptionKey other)
Routing\RouteKey.cs (1)
24public bool Equals(RouteKey other)
src\aspnetcore\src\Components\Shared\src\RootTypeCache.cs (1)
100public bool Equals(Key other) => string.Equals(Assembly, other.Assembly, StringComparison.Ordinal) &&
Microsoft.AspNetCore.Components.AI.SourceGenerators (6)
ToolBlockCandidate.cs (6)
48public bool Equals(ToolBlockCandidate? other) 100public bool Equals(ToolResultPropertyInfo? other) 137public bool Equals(ToolParameterInfo? other) 184public bool Equals(ToolBlockParseResult? other) 218public bool Equals(DiagnosticInfo? other) 256public bool Equals(LocationInfo? other)
Microsoft.AspNetCore.Components.Endpoints (5)
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\aspnetcore\src\Components\Shared\src\ComponentParametersTypeCache.cs (1)
76public bool Equals(Key other) => string.Equals(Assembly, other.Assembly, StringComparison.Ordinal) &&
src\aspnetcore\src\Shared\Components\ComponentMarker.cs (1)
141public readonly bool Equals(ComponentMarkerKey other)
Microsoft.AspNetCore.Components.Forms (1)
FieldIdentifier.cs (1)
103public bool Equals(FieldIdentifier otherIdentifier)
Microsoft.AspNetCore.Components.Server (6)
Circuits\CircuitId.cs (1)
30public bool Equals(CircuitId other)
src\aspnetcore\src\Components\Shared\src\ComponentParametersTypeCache.cs (1)
76public bool Equals(Key other) => string.Equals(Assembly, other.Assembly, StringComparison.Ordinal) &&
src\aspnetcore\src\Components\Shared\src\RootTypeCache.cs (1)
100public bool Equals(Key other) => string.Equals(Assembly, other.Assembly, StringComparison.Ordinal) &&
src\aspnetcore\src\Shared\Components\ComponentMarker.cs (1)
141public readonly bool Equals(ComponentMarkerKey other)
src\aspnetcore\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\aspnetcore\src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\Nil.cs (1)
28public bool Equals(Nil other)
Microsoft.AspNetCore.Components.Testing.Generators (1)
ServiceOverrideCallsite.cs (1)
30public bool Equals(ServiceOverrideCallsite? other)
Microsoft.AspNetCore.Components.WebAssembly (3)
src\aspnetcore\src\Components\Shared\src\ComponentParametersTypeCache.cs (1)
76public bool Equals(Key other) => string.Equals(Assembly, other.Assembly, StringComparison.Ordinal) &&
src\aspnetcore\src\Components\Shared\src\RootTypeCache.cs (1)
100public bool Equals(Key other) => string.Equals(Assembly, other.Assembly, StringComparison.Ordinal) &&
src\aspnetcore\src\Shared\Components\ComponentMarker.cs (1)
141public readonly bool Equals(ComponentMarkerKey other)
Microsoft.AspNetCore.HeaderParsing (1)
HostHeaderValue.cs (1)
93public bool Equals(HostHeaderValue other) => Host.Equals(other.Host, StringComparison.Ordinal) && Port == other.Port;
Microsoft.AspNetCore.Http.Abstractions (6)
FragmentString.cs (1)
111public bool Equals(FragmentString other)
HostString.cs (1)
290public 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)
415public bool Equals(PathString other)
QueryString.cs (1)
214public bool Equals(QueryString other)
Microsoft.AspNetCore.Http.Extensions (1)
src\aspnetcore\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.JsonPatch.SystemTextJson (1)
Operations\Operation.cs (1)
31public bool Equals(ValueHolder other)
Microsoft.AspNetCore.Mvc.Abstractions (5)
ModelBinding\BindingSource.cs (1)
206public bool Equals(BindingSource? other)
ModelBinding\Metadata\ModelMetadataIdentity.cs (1)
160public 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\aspnetcore\src\Shared\MediaType\ReadOnlyMediaTypeHeaderValue.cs (1)
614public bool Equals(MediaTypeParameter 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)
351public bool Equals(GlobbingUrlKey other)
Microsoft.AspNetCore.Razor.Utilities.Shared (1)
Utilities\Checksum.cs (1)
78public bool Equals(Checksum other)
Microsoft.AspNetCore.ResponseCompression (1)
ResponseCompressionProvider.cs (1)
279public bool Equals(ProviderCandidate other)
Microsoft.AspNetCore.Routing (4)
Matching\HostMatcherPolicy.cs (1)
449public bool Equals(EdgeKey other)
Matching\HttpMethodMatcherPolicy.cs (1)
472public bool Equals(EdgeKey other)
Matching\PathSegment.cs (1)
22public bool Equals(PathSegment other)
src\aspnetcore\src\Shared\MediaType\ReadOnlyMediaTypeHeaderValue.cs (1)
614public bool Equals(MediaTypeParameter other)
Microsoft.AspNetCore.Server.HttpSys (13)
_generated\10\Windows.Win32.HRESULT.g.cs (1)
43 public bool Equals(HRESULT other) => this.Value == other.Value;
_generated\2\Windows.Win32.BOOL.g.cs (1)
39 public bool Equals(BOOL other) => this.Value == other.Value;
_generated\3\Windows.Win32.BOOLEAN.g.cs (1)
39 public bool Equals(BOOLEAN other) => this.Value == other.Value;
_generated\46\Windows.Win32.HTTP_REQUEST_QUEUE_HANDLE.g.cs (1)
47 public bool Equals(HTTP_REQUEST_QUEUE_HANDLE other) => this.Value == other.Value;
_generated\5\Windows.Win32.CHAR.g.cs (1)
39 public bool Equals(CHAR other) => this.Value == other.Value;
_generated\74\Windows.Win32.PCSTR.g.cs (1)
41 public bool Equals(PCSTR other) => this.Value == other.Value;
_generated\75\Windows.Win32.PCWSTR.g.cs (1)
41 public bool Equals(PCWSTR other) => this.Value == other.Value;
_generated\8\Windows.Win32.HANDLE.g.cs (1)
47 public bool Equals(HANDLE other) => this.Value == other.Value;
_generated\80\Windows.Win32.PSECURITY_DESCRIPTOR.g.cs (1)
47 public bool Equals(PSECURITY_DESCRIPTOR other) => this.Value == other.Value;
_generated\81\Windows.Win32.PSID.g.cs (1)
47 public bool Equals(PSID other) => this.Value == other.Value;
_generated\82\Windows.Win32.PSTR.g.cs (1)
43 public bool Equals(PSTR other) => this.Value == other.Value;
_generated\83\Windows.Win32.PWSTR.g.cs (1)
43 public bool Equals(PWSTR other) => this.Value == other.Value;
_generated\9\Windows.Win32.HLOCAL.g.cs (1)
47 public bool Equals(HLOCAL other) => this.Value == other.Value;
Microsoft.AspNetCore.Server.IIS (9)
_generated\1\Windows.Win32.BOOL.g.cs (1)
39 public bool Equals(BOOL other) => this.Value == other.Value;
_generated\2\Windows.Win32.BOOLEAN.g.cs (1)
39 public bool Equals(BOOLEAN other) => this.Value == other.Value;
_generated\39\Windows.Win32.PCSTR.g.cs (1)
41 public bool Equals(PCSTR other) => this.Value == other.Value;
_generated\4\Windows.Win32.CHAR.g.cs (1)
39 public bool Equals(CHAR other) => this.Value == other.Value;
_generated\40\Windows.Win32.PCWSTR.g.cs (1)
41 public bool Equals(PCWSTR other) => this.Value == other.Value;
_generated\43\Windows.Win32.PSTR.g.cs (1)
43 public bool Equals(PSTR other) => this.Value == other.Value;
_generated\44\Windows.Win32.PWSTR.g.cs (1)
43 public bool Equals(PWSTR other) => this.Value == other.Value;
_generated\7\Windows.Win32.HANDLE.g.cs (1)
47 public bool Equals(HANDLE other) => this.Value == other.Value;
_generated\8\Windows.Win32.HRESULT.g.cs (1)
43 public bool Equals(HRESULT other) => this.Value == other.Value;
Microsoft.Build (20)
BackEnd\Components\RequestBuilder\TargetEntry.cs (1)
321public bool Equals(TargetEntry other)
BackEnd\Shared\BuildRequestConfiguration.cs (1)
978public bool Equals(BuildRequestConfiguration other)
BackEnd\Shared\ConfigurationMetadata.cs (1)
145public bool Equals(ConfigurationMetadata other)
BuildCheck\Checks\NoEnvironmentVariablePropertyCheck.cs (1)
110public bool Equals(EnvironmentVariableIdentityKey? other) =>
Collections\CopyOnWritePropertyDictionary.cs (2)
161public bool Equals(CopyOnWritePropertyDictionary<T> other) 207public bool Equals(ICopyOnWritePropertyDictionary<T> other)
Collections\PropertyDictionary.cs (1)
279public 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)
1009public readonly bool Equals(ProjectGraphBuildRequest other)
Instance\HostServices.cs (1)
511public bool Equals(TargetTaskKey other)
Instance\ProjectItemInstance.cs (1)
1737public bool Equals(TaskItem other)
Instance\ProjectMetadataInstance.cs (1)
196bool IEquatable<ProjectMetadataInstance>.Equals(ProjectMetadataInstance other)
Instance\ProjectPropertyInstance.cs (1)
149bool IEquatable<ProjectPropertyInstance>.Equals(ProjectPropertyInstance other)
Logging\BinaryLogger\BuildEventArgsWriter.cs (1)
1462public bool Equals(HashKey other)
src\5057ed6cf5d6323b\ImmutableSegmentedDictionary`2.cs (1)
309public bool Equals(ImmutableSegmentedDictionary<TKey, TValue> other)
src\5057ed6cf5d6323b\ImmutableSegmentedHashSet`1.cs (1)
322public bool Equals(ImmutableSegmentedHashSet<T> other)
src\5057ed6cf5d6323b\ImmutableSegmentedList`1.cs (1)
596public bool Equals(ImmutableSegmentedList<T> other)
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Segmented\SegmentedArray`1.cs (1)
186public bool Equals(SegmentedArray<T> other)
Utilities\SimpleVersion.cs (1)
77public bool Equals(SimpleVersion other)
Microsoft.Build.Framework (7)
PathHelpers\AbsolutePath.cs (1)
222public bool Equals(AbsolutePath other) => s_pathComparer.Equals(Value, other.Value);
Sdk\SdkReference.cs (1)
54public bool Equals(SdkReference other)
TaskHostParameters.cs (1)
78public bool Equals(TaskHostParameters other) =>
TaskItem_T.cs (1)
164public bool Equals(TaskItem<T> other) =>
Telemetry\TaskOrTargetTelemetryKey.cs (1)
93public bool Equals(TaskOrTargetTelemetryKey other)
Utilities\AssemblyLoadInfo.cs (1)
85public bool Equals(AssemblyLoadInfo other)
Utilities\AssemblyNameExtension.cs (1)
660bool IEquatable<AssemblyNameExtension>.Equals(AssemblyNameExtension other)
Microsoft.Build.Tasks.Core (5)
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.Tasks.Git (1)
GitDataReader\GitVariableName.cs (1)
28public bool Equals(GitVariableName other)
Microsoft.Build.Utilities.Core (1)
TargetPlatformSDK.cs (1)
170public bool Equals(TargetPlatformSDK other)
Microsoft.CodeAnalysis (82)
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\CompilationCache.cs (1)
197public bool Equals(PreCompCacheKey other) =>
SourceGeneration\GlobalAliases.cs (1)
79public bool Equals(GlobalAliases? aliases)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
309public bool Equals(ImmutableSegmentedDictionary<TKey, TValue> other)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
322public bool Equals(ImmutableSegmentedHashSet<T> other)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
596public bool Equals(ImmutableSegmentedList<T> other)
src\roslyn\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)
66public bool Equals(TypeLayout other)
Syntax\ChildSyntaxList.cs (1)
448public 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)
47public 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)
270public 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)
195public bool Equals(TextLine other)
Text\TextSpan.cs (1)
219public bool Equals(TextSpan other)
Microsoft.CodeAnalysis.Analyzers (26)
src\roslyn\src\Compilers\Core\Portable\Collections\BitVector.cs (1)
41public bool Equals(BitVector other)
src\roslyn\src\Compilers\Core\Portable\FileSystem\RelativePathResolver.cs (1)
60public bool Equals(RelativePathResolver? other) =>
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
309public bool Equals(ImmutableSegmentedDictionary<TKey, TValue> other)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
322public bool Equals(ImmutableSegmentedHashSet<T> other)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
596public bool Equals(ImmutableSegmentedList<T> other)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
186public bool Equals(SegmentedArray<T> other)
src\roslyn\src\Dependencies\Contracts\Index.cs (1)
133public bool Equals(Index other) => _value == other._value;
src\roslyn\src\Dependencies\Contracts\Range.cs (1)
54public bool Equals(Range other) => other.Start.Equals(Start) && other.End.Equals(End);
src\roslyn\src\Dependencies\Threading\VoidResult.cs (1)
22public bool Equals(VoidResult other)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\OptionKey.cs (1)
54public bool Equals(OptionKey other)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
255public bool Equals(SymbolNamesWithValueOption<TValue>? other)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\Unit.cs (1)
28public readonly bool Equals(Unit other) => true;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeGeneration\ParameterName.cs (1)
66public bool Equals(ParameterName other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (1)
229public bool Equals(CodeStyleOption2<T>? other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenData.cs (1)
44public bool Equals(TokenData other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingRule.cs (1)
21public bool Equals(NamingRule other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
363public bool Equals(NamingStylePreferences? other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (2)
191public bool Equals(SymbolSpecification other) 550public bool Equals(ModifierKind other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\Option2.cs (1)
95public bool Equals(IOption2? other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (1)
74public bool Equals(OptionDefinition? other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\PerLanguageOption2.cs (1)
83public bool Equals(IOption2? other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
356public readonly bool Equals(SymbolKey other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\InterceptsLocationUtilities.cs (1)
22public readonly bool Equals(InterceptsLocationData other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
157public bool Equals(SyntaxPath? other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (1)
222public bool Equals(ISymbol other)
Microsoft.CodeAnalysis.AnalyzerUtilities (34)
src\roslyn\src\Compilers\Core\Portable\Collections\BitVector.cs (1)
41public bool Equals(BitVector other)
src\roslyn\src\Compilers\Core\Portable\FileSystem\RelativePathResolver.cs (1)
60public bool Equals(RelativePathResolver? other) =>
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
309public bool Equals(ImmutableSegmentedDictionary<TKey, TValue> other)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
322public bool Equals(ImmutableSegmentedHashSet<T> other)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
596public bool Equals(ImmutableSegmentedList<T> other)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
186public bool Equals(SegmentedArray<T> other)
src\roslyn\src\Dependencies\Contracts\Index.cs (1)
133public bool Equals(Index other) => _value == other._value;
src\roslyn\src\Dependencies\Contracts\Range.cs (1)
54public bool Equals(Range other) => other.Start.Equals(Start) && other.End.Equals(End);
src\roslyn\src\Dependencies\Threading\VoidResult.cs (1)
22public bool Equals(VoidResult other)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\OptionKey.cs (1)
54public bool Equals(OptionKey other)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
255public bool Equals(SymbolNamesWithValueOption<TValue>? other)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\Unit.cs (1)
28public readonly bool Equals(Unit other) => true;
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\SanitizerInfo.cs (1)
100public bool Equals(SanitizerInfo other)
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\SinkInfo.cs (1)
90public bool Equals(SinkInfo other)
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\SourceInfo.cs (1)
215public bool Equals(SourceInfo other)
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\TaintedDataSymbolMap.cs (1)
151public bool Equals(TaintedDataSymbolMap<TInfo>? other)
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\CacheBasedEquatable.cs (1)
45public bool Equals(T? other)
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\ConversionInference.cs (1)
58public readonly bool Equals(ConversionInference other)
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\InterproceduralAnalysisConfiguration.cs (1)
129public readonly bool Equals(InterproceduralAnalysisConfiguration other)
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\InterproceduralCaptureId.cs (1)
28public bool Equals(InterproceduralCaptureId other)
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\ThrownExceptionInfo.cs (1)
94public bool Equals(ThrownExceptionInfo? other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeGeneration\ParameterName.cs (1)
66public bool Equals(ParameterName other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (1)
229public bool Equals(CodeStyleOption2<T>? other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenData.cs (1)
44public bool Equals(TokenData other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingRule.cs (1)
21public bool Equals(NamingRule other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
363public bool Equals(NamingStylePreferences? other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (2)
191public bool Equals(SymbolSpecification other) 550public bool Equals(ModifierKind other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\Option2.cs (1)
95public bool Equals(IOption2? other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (1)
74public bool Equals(OptionDefinition? other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\PerLanguageOption2.cs (1)
83public bool Equals(IOption2? other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
356public readonly bool Equals(SymbolKey other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\InterceptsLocationUtilities.cs (1)
22public readonly bool Equals(InterceptsLocationData other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
157public bool Equals(SyntaxPath? other)
Microsoft.CodeAnalysis.CodeStyle (22)
src\roslyn\src\Compilers\Core\Portable\Collections\BitVector.cs (1)
41public bool Equals(BitVector other)
src\roslyn\src\Compilers\Core\Portable\FileSystem\RelativePathResolver.cs (1)
60public bool Equals(RelativePathResolver? other) =>
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
309public bool Equals(ImmutableSegmentedDictionary<TKey, TValue> other)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
322public bool Equals(ImmutableSegmentedHashSet<T> other)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
596public bool Equals(ImmutableSegmentedList<T> other)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
186public bool Equals(SegmentedArray<T> other)
src\roslyn\src\Dependencies\Contracts\Index.cs (1)
133public bool Equals(Index other) => _value == other._value;
src\roslyn\src\Dependencies\Contracts\Range.cs (1)
54public bool Equals(Range other) => other.Start.Equals(Start) && other.End.Equals(End);
src\roslyn\src\Dependencies\Threading\VoidResult.cs (1)
22public bool Equals(VoidResult other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeGeneration\ParameterName.cs (1)
66public bool Equals(ParameterName other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (1)
229public bool Equals(CodeStyleOption2<T>? other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenData.cs (1)
44public bool Equals(TokenData other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingRule.cs (1)
21public bool Equals(NamingRule other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
363public bool Equals(NamingStylePreferences? other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (2)
191public bool Equals(SymbolSpecification other) 550public bool Equals(ModifierKind other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\Option2.cs (1)
95public bool Equals(IOption2? other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (1)
74public bool Equals(OptionDefinition? other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\PerLanguageOption2.cs (1)
83public bool Equals(IOption2? other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
356public readonly bool Equals(SymbolKey other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\InterceptsLocationUtilities.cs (1)
22public readonly bool Equals(InterceptsLocationData other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
157public bool Equals(SyntaxPath? other)
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (1)
222public bool Equals(ISymbol other)
Microsoft.CodeAnalysis.CSharp (21)
Binder\BinderFactory.cs (1)
31bool IEquatable<BinderCacheKey>.Equals(BinderCacheKey other)
Binder\Semantics\Conversions\Conversion.cs (1)
1244public bool Equals(Conversion other)
Binder\Semantics\Operators\BinaryOperatorSignature.cs (1)
59public bool Equals(BinaryOperatorSignature other)
Compilation\AwaitExpressionInfo.cs (1)
55public bool Equals(AwaitExpressionInfo other)
Compilation\CSharpCompilation.cs (1)
2907public bool Equals(ImportInfo other)
Compilation\ForEachStatementInfo.cs (1)
103public 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)
762public bool Equals(CSharpCompilationOptions? other)
CSharpParseOptions.cs (1)
290public bool Equals(CSharpParseOptions? other)
Declarations\SingleTypeDeclaration.cs (1)
249public bool Equals(TypeDeclarationIdentity other)
FlowAnalysis\DefiniteAssignment.VariableIdentifier.cs (1)
61public bool Equals(VariableIdentifier other)
FlowAnalysis\NullableWalker_Patterns.cs (1)
1050public bool Equals(DecisionDagReachabilityInfo other)
Symbols\AnonymousTypes\AnonymousTypeDescriptor.cs (1)
62public bool Equals(AnonymousTypeDescriptor desc)
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (1)
63public 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)
90bool IEquatable<ISymbol>.Equals(ISymbol other)
Symbols\Source\SourceLocalSymbol.cs (1)
55public bool Equals(LocalTypeInferenceInProgressKey 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.Extensions.Package (6)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
309public bool Equals(ImmutableSegmentedDictionary<TKey, TValue> other)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
322public bool Equals(ImmutableSegmentedHashSet<T> other)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
596public bool Equals(ImmutableSegmentedList<T> other)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
186public bool Equals(SegmentedArray<T> other)
src\roslyn\src\Dependencies\Contracts\Index.cs (1)
133public bool Equals(Index other) => _value == other._value;
src\roslyn\src\Dependencies\Contracts\Range.cs (1)
54public bool Equals(Range other) => other.Start.Equals(Start) && other.End.Equals(End);
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)
109public bool Equals(ISymbol other)
MetadataAsSource\DecompilationMetadataAsSourceFileProvider.cs (1)
451public 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.ExternalAccess (1)
AspNetCore\EmbeddedLanguages\AspNetCoreVirtualChar.cs (1)
46public bool Equals(AspNetCoreVirtualChar other) => VirtualChar.Equals(other.VirtualChar);
Microsoft.CodeAnalysis.NetAnalyzers (15)
Microsoft.NetCore.Analyzers\InteropServices\PlatformCompatibilityAnalyzer.Value.cs (2)
162public bool Equals(PlatformMethodValue other) 178bool IEquatable<IAbstractAnalysisValue>.Equals(IAbstractAnalysisValue other)
Microsoft.NetCore.Analyzers\Performance\PreferDictionaryTryMethodsOverContainsKeyGuardAnalyzer.cs (1)
66public readonly bool Equals(DictionaryUsageContext other)
src\9382845807600969\InterproceduralAnalysisConfiguration.cs (1)
128public readonly bool Equals(InterproceduralAnalysisConfiguration other)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\Options\OptionKey.cs (1)
53public bool Equals(OptionKey other)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
253public bool Equals(SymbolNamesWithValueOption<TValue>? other)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\Options\Unit.cs (1)
27public readonly bool Equals(Unit other) => true;
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\SanitizerInfo.cs (1)
99public bool Equals(SanitizerInfo other)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\SinkInfo.cs (1)
89public bool Equals(SinkInfo other)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\SourceInfo.cs (1)
214public bool Equals(SourceInfo other)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\TaintedDataSymbolMap.cs (1)
149public bool Equals(TaintedDataSymbolMap<TInfo>? other)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\CacheBasedEquatable.cs (1)
44public bool Equals(T? other)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\ConversionInference.cs (1)
57public readonly bool Equals(ConversionInference other)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\InterproceduralCaptureId.cs (1)
27public bool Equals(InterproceduralCaptureId other)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\ThrownExceptionInfo.cs (1)
92public bool Equals(ThrownExceptionInfo? other)
Microsoft.CodeAnalysis.Razor.Compiler (24)
CSharp\DefaultUtf8WriteLiteralFeature.cs (1)
253public bool Equals(Utf8SupportMap? other)
Language\Components\ComponentBindLoweringPass.BindEntryKey.cs (1)
23public bool Equals(BindEntryKey other)
Language\DefaultRazorIntermediateNodeLoweringPhase.cs (1)
285public bool Equals(UsingReference other)
Language\DocumentationDescriptor.cs (1)
94public abstract bool Equals(DocumentationDescriptor? other);
Language\DocumentationObject.cs (1)
90public bool Equals(DocumentationObject other)
Language\RazorConfiguration.cs (1)
39public bool Equals(RazorConfiguration? other)
Language\RazorDiagnostic.cs (1)
98public bool Equals(RazorDiagnostic? other)
Language\RazorParserOptions.cs (1)
188public bool Equals(RazorParserOptions? other)
Language\SourceChange.cs (1)
114public bool Equals(SourceChange other)
Language\SourceLocation.cs (1)
126public bool Equals(SourceLocation other)
Language\SourceMapping.cs (1)
30public bool Equals(SourceMapping other)
Language\SourceSpan.cs (1)
61public bool Equals(SourceSpan other)
Language\Syntax\ChildSyntaxList.cs (1)
434public bool Equals(ChildSyntaxList other)
Language\Syntax\ChildSyntaxList.Reversed.cs (1)
55public bool Equals(Reversed other)
Language\Syntax\InternalSyntax\SyntaxListOfT.cs (1)
133public bool Equals(SyntaxList<TNode> other)
Language\Syntax\SyntaxList`1.cs (1)
498public bool Equals(SyntaxList<TNode> other)
Language\Syntax\SyntaxNodeOrToken.cs (1)
277public bool Equals(SyntaxNodeOrToken other)
Language\Syntax\SyntaxToken.cs (1)
100public bool Equals(SyntaxToken other)
Language\Syntax\SyntaxTokenList.cs (1)
398public bool Equals(SyntaxTokenList other)
Language\Syntax\SyntaxTokenList.Reversed.cs (1)
32public bool Equals(Reversed other)
Language\TagHelperCollection.cs (1)
123public bool Equals(TagHelperCollection? other)
Language\TagHelperObject`1.cs (1)
51public bool Equals(T? other)
SourceGenerators\SourceGeneratorProjectItem.cs (1)
61public bool Equals(SourceGeneratorProjectItem? other)
SourceGenerators\SourceGeneratorText.cs (1)
10public bool Equals(SourceGeneratorText other)
Microsoft.CodeAnalysis.ResxSourceGenerator (25)
src\roslyn\src\Compilers\Core\Portable\Collections\BitVector.cs (1)
41public bool Equals(BitVector other)
src\roslyn\src\Compilers\Core\Portable\FileSystem\RelativePathResolver.cs (1)
60public bool Equals(RelativePathResolver? other) =>
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
309public bool Equals(ImmutableSegmentedDictionary<TKey, TValue> other)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
322public bool Equals(ImmutableSegmentedHashSet<T> other)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
596public bool Equals(ImmutableSegmentedList<T> other)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
186public bool Equals(SegmentedArray<T> other)
src\roslyn\src\Dependencies\Contracts\Index.cs (1)
133public bool Equals(Index other) => _value == other._value;
src\roslyn\src\Dependencies\Contracts\Range.cs (1)
54public bool Equals(Range other) => other.Start.Equals(Start) && other.End.Equals(End);
src\roslyn\src\Dependencies\Threading\VoidResult.cs (1)
22public bool Equals(VoidResult other)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\OptionKey.cs (1)
54public bool Equals(OptionKey other)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
255public bool Equals(SymbolNamesWithValueOption<TValue>? other)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\Unit.cs (1)
28public readonly bool Equals(Unit other) => true;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeGeneration\ParameterName.cs (1)
66public bool Equals(ParameterName other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (1)
229public bool Equals(CodeStyleOption2<T>? other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenData.cs (1)
44public bool Equals(TokenData other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingRule.cs (1)
21public bool Equals(NamingRule other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
363public bool Equals(NamingStylePreferences? other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (2)
191public bool Equals(SymbolSpecification other) 550public bool Equals(ModifierKind other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\Option2.cs (1)
95public bool Equals(IOption2? other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (1)
74public bool Equals(OptionDefinition? other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\PerLanguageOption2.cs (1)
83public bool Equals(IOption2? other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
356public readonly bool Equals(SymbolKey other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\InterceptsLocationUtilities.cs (1)
22public readonly bool Equals(InterceptsLocationData other)
src\roslyn\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\roslyn\src\Compilers\Core\Portable\FileSystem\RelativePathResolver.cs (1)
60public bool Equals(RelativePathResolver? other) =>
src\roslyn\src\Compilers\Shared\GlobalAssemblyCacheHelpers\GacFileResolver.cs (1)
85public bool Equals(GacFileResolver 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 (49)
Classification\ClassifiedSpan.cs (1)
31public bool Equals(ClassifiedSpan other)
CodeStyle\CodeStyleOption.cs (1)
66public bool Equals(CodeStyleOption<T>? other)
Diagnostics\DiagnosticData.cs (1)
116public 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)
251public 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\roslyn\src\Compilers\Core\Portable\Collections\BitVector.cs (1)
41public bool Equals(BitVector other)
src\roslyn\src\Compilers\Core\Portable\FileSystem\RelativePathResolver.cs (1)
60public bool Equals(RelativePathResolver? other) =>
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
309public bool Equals(ImmutableSegmentedDictionary<TKey, TValue> other)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
322public bool Equals(ImmutableSegmentedHashSet<T> other)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
596public bool Equals(ImmutableSegmentedList<T> other)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
186public bool Equals(SegmentedArray<T> other)
src\roslyn\src\Dependencies\Threading\VoidResult.cs (1)
22public bool Equals(VoidResult other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeGeneration\ParameterName.cs (1)
66public bool Equals(ParameterName other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (1)
229public bool Equals(CodeStyleOption2<T>? other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenData.cs (1)
44public bool Equals(TokenData other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingRule.cs (1)
21public bool Equals(NamingRule other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
363public bool Equals(NamingStylePreferences? other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (2)
191public bool Equals(SymbolSpecification other) 550public bool Equals(ModifierKind other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\Option2.cs (1)
95public bool Equals(IOption2? other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (1)
74public bool Equals(OptionDefinition? other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\PerLanguageOption2.cs (1)
83public bool Equals(IOption2? other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
356public readonly bool Equals(SymbolKey other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\InterceptsLocationUtilities.cs (1)
22public readonly bool Equals(InterceptsLocationData other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
157public bool Equals(SyntaxPath? other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (1)
222public 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)
69public bool Equals(DocumentId? other)
Workspace\Solution\ProjectCone.cs (1)
32public bool Equals(ProjectCone? other)
Workspace\Solution\ProjectId.cs (1)
78public bool Equals(ProjectId? other)
Workspace\Solution\ProjectReference.cs (1)
43public bool Equals(ProjectReference reference)
Workspace\Solution\SolutionId.cs (1)
61public bool Equals(SolutionId other)
Workspace\Solution\StateChecksums.cs (1)
370public bool Equals(ProjectStateChecksums? obj)
Workspace\Solution\VersionStamp.cs (1)
155public bool Equals(VersionStamp version)
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.Deployment.DotNet.Releases (3)
Cve.cs (1)
58public bool Equals(Cve other)
ReleaseFile.cs (1)
153public bool Equals(ReleaseFile other)
ReleaseVersion.cs (1)
267public bool Equals(ReleaseVersion other)
Microsoft.Diagnostics.DataContractReader.Abstractions (4)
TargetCodePointer.cs (1)
20public bool Equals(TargetCodePointer other) => Value == other.Value;
TargetNInt.cs (1)
19public bool Equals(TargetNInt t) => Value == t.Value;
TargetNUInt.cs (1)
19public bool Equals(TargetNUInt t) => Value == t.Value;
TargetPointer.cs (1)
26public bool Equals(TargetPointer other) => Value == other.Value;
Microsoft.Diagnostics.DataContractReader.Contracts (3)
Contracts\RuntimeTypeSystem_1.cs (1)
106public bool Equals(TypeKey other)
Contracts\StackWalk\Context\ContextHolder.cs (1)
62public bool Equals(ContextHolder<T>? other)
Contracts\StackWalk\Context\M128.cs (1)
27public bool Equals(M128A other) => Low == other.Low && High == other.High;
Microsoft.Diagnostics.DataContractReader.DataGenerator (1)
EquatableArray.cs (1)
30public bool Equals(EquatableArray<T> other)
Microsoft.Diagnostics.DataContractReader.Legacy (1)
Marshalling\ClrDataAddress.cs (1)
25public readonly bool Equals(ClrDataAddress other) => Value == other.Value;
Microsoft.DiaSymReader (1)
Extensions\SymUnmanagedAsyncStepInfo.cs (1)
26public bool Equals(SymUnmanagedAsyncStepInfo other)
Microsoft.DotNet.ApiCompatibility (4)
CompatDifference.cs (1)
76public bool Equals(CompatDifference other) =>
Logging\Suppression.cs (1)
75public bool Equals(Suppression? other)
MetadataInformation.cs (1)
59public bool Equals(MetadataInformation other) =>
Runner\ApiCompatRunnerWorkItem.cs (1)
44public bool Equals(ApiCompatRunnerWorkItem other) => other.Left.SequenceEqual(Left) && other.Options.Equals(Options);
Microsoft.DotNet.Cli.Definitions (1)
Help\TwoColumnHelpRow.cs (1)
30public bool Equals(TwoColumnHelpRow? other)
Microsoft.DotNet.Cli.Utils (1)
ToolCommandName.cs (1)
27public bool Equals(ToolCommandName other)
Microsoft.DotNet.HotReload.Watch (1)
Build\ProjectRepresentation.cs (1)
42public bool Equals(ProjectRepresentation other)
Microsoft.DotNet.SdkResolver (1)
NETCoreSdkResolver.cs (1)
46public bool Equals(CompatibleSdkKey? other)
Microsoft.DotNet.SourceBuild.Tasks (1)
src\UsageReport\Usage.cs (1)
89public bool Equals(Usage other)
Microsoft.DotNet.TemplateLocator (7)
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\ManifestId.cs (1)
15public bool Equals(ManifestId other)
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\ManifestVersion.cs (1)
21public bool Equals(ManifestVersion? other)
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\ManifestVersionUpdate.cs (1)
37public bool Equals(ManifestVersionUpdate? other)
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\SdkFeatureBand.cs (1)
74public bool Equals(SdkFeatureBand other)
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadId.cs (1)
26public bool Equals(WorkloadId other) => string.Equals(_id, other._id, StringComparison.OrdinalIgnoreCase);
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadPackId.cs (1)
32public bool Equals(WorkloadPackId other) => string.Equals(_id, other._id, StringComparison.OrdinalIgnoreCase);
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadSuggestionFinder.cs (1)
218public bool Equals(WorkloadSuggestionCandidate? other) => other != null && Workloads.SetEquals(other.Workloads);
Microsoft.Extensions.AI.Abstractions (7)
ChatCompletion\ChatFinishReason.cs (1)
34public bool Equals(ChatFinishReason other) => StringComparer.OrdinalIgnoreCase.Equals(Value, other.Value);
ChatCompletion\ChatRole.cs (1)
80public bool Equals(ChatRole other)
parent\parent\parent\eng\MSBuild\parent\parent\src\LegacySupport\SystemIndex\Index.cs (1)
126public bool Equals(Index other) => _value == other._value;
Realtime\RealtimeServerMessageType.cs (1)
141public bool Equals(RealtimeServerMessageType other)
Realtime\RealtimeSessionKind.cs (1)
78public bool Equals(RealtimeSessionKind other)
SpeechToText\SpeechToTextResponseUpdateKind.cs (1)
83public bool Equals(SpeechToTextResponseUpdateKind other)
TextToSpeech\TextToSpeechResponseUpdateKind.cs (1)
83public bool Equals(TextToSpeechResponseUpdateKind 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)
16public 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.Configuration.Binder.SourceGeneration (2)
src\runtime\src\libraries\Common\src\SourceGenerators\ImmutableEquatableArray.cs (1)
27public bool Equals(ImmutableEquatableArray<T>? other)
src\runtime\src\libraries\Common\src\SourceGenerators\TypeRef.cs (1)
38public bool Equals(TypeRef? other) => other != null && FullyQualifiedName == other.FullyQualifiedName;
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)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\StringSplit\StringRange.cs (1)
84public bool Equals(StringRange other) => other.Index == Index && other.Count == Count;
Microsoft.Extensions.FileProviders.Embedded.Manifest.Task (2)
EmbeddedItem.cs (1)
14public bool Equals(EmbeddedItem other) =>
Entry.cs (1)
71public bool Equals(Entry other)
Microsoft.Extensions.FileSystemGlobbing (1)
FilePatternMatch.cs (1)
52public bool Equals(FilePatternMatch other)
Microsoft.Extensions.Http.Resilience.Tests (2)
Greet.cs (2)
111public bool Equals(HelloRequest other) { 304public bool Equals(HelloReply other) {
Microsoft.Extensions.Logging.Abstractions (1)
EventId.cs (1)
77public bool Equals(EventId other)
Microsoft.Extensions.Logging.Generators (6)
LoggerMessageGenerator.Parser.cs (5)
987public bool Equals(LoggerClassSpec? other) 1071public bool Equals(LoggerMethodSpec? other) 1161public bool Equals(LoggerParameterSpec? other) 1196public bool Equals(KeyValuePairEquatable<TKey, TValue> other) 1230public bool Equals(LoggerMethodTypeParameterSpec? other)
src\runtime\src\libraries\Common\src\SourceGenerators\ImmutableEquatableArray.cs (1)
27public bool Equals(ImmutableEquatableArray<T>? 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)
572public bool Equals(StringValues other) => Equals(this, other); 595public bool Equals(string? other) => Equals(this, new StringValues(other)); 618public 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)
parent\parent\parent\eng\MSBuild\parent\parent\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)
50public bool Equals(ComClassInfo? other)
ComInterfaceInfo.cs (1)
406public bool Equals(ComInterfaceInfo other)
ComMethodContext.cs (1)
56public bool Equals(ComMethodContext other) => _state.Equals(other);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Index.cs (1)
129public bool Equals(Index other) => _value == other._value;
Microsoft.Interop.JavaScript.JSImportGenerator (1)
src\runtime\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)
28public bool Equals(ContainingSyntax other) 86public bool Equals(ContainingSyntaxContext other)
ManagedTypeInfo.cs (2)
18public virtual bool Equals(ManagedTypeInfo? other) 93public bool Equals(SpecialTypeInfo? other)
ManualTypeMarshallingHelper.cs (1)
28public bool Equals(CustomTypeMarshallers other)
MethodSignatureDiagnosticLocations.cs (1)
61public bool Equals(MethodSignatureDiagnosticLocations other)
SequenceEqualImmutableArray.cs (1)
38public bool Equals(SequenceEqualImmutableArray<T> other)
SignatureContext.cs (1)
220public 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 (7)
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;
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.NET.Build.Tasks (7)
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\ManifestId.cs (1)
15public bool Equals(ManifestId other)
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\ManifestVersion.cs (1)
21public bool Equals(ManifestVersion? other)
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\ManifestVersionUpdate.cs (1)
37public bool Equals(ManifestVersionUpdate? other)
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\SdkFeatureBand.cs (1)
74public bool Equals(SdkFeatureBand other)
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadId.cs (1)
26public bool Equals(WorkloadId other) => string.Equals(_id, other._id, StringComparison.OrdinalIgnoreCase);
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadPackId.cs (1)
32public bool Equals(WorkloadPackId other) => string.Equals(_id, other._id, StringComparison.OrdinalIgnoreCase);
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadSuggestionFinder.cs (1)
218public bool Equals(WorkloadSuggestionCandidate? other) => other != null && Workloads.SetEquals(other.Workloads);
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (4)
src\sdk\src\StaticWebAssetsSdk\Tasks\Data\StaticWebAsset.cs (1)
1440public bool Equals(StaticWebAsset other) =>
src\sdk\src\StaticWebAssetsSdk\Tasks\Data\StaticWebAssetPathPattern.cs (1)
537public bool Equals(StaticWebAssetPathPattern other) =>
src\sdk\src\StaticWebAssetsSdk\Tasks\Data\StaticWebAssetPathSegment.cs (1)
23public bool Equals(StaticWebAssetPathSegment other) => other is not null && Parts.SequenceEqual(other.Parts);
src\sdk\src\StaticWebAssetsSdk\Tasks\Data\StaticWebAssetSegmentPart.cs (1)
21public bool Equals(StaticWebAssetSegmentPart other) => other is not null &&
Microsoft.NET.Sdk.StaticWebAssets.Tasks (9)
Data\StaticAssetsManifest.cs (1)
125public bool Equals(StaticWebAssetsManifest other) =>
Data\StaticWebAsset.cs (1)
1440public bool Equals(StaticWebAsset other) =>
Data\StaticWebAssetEndpoint.cs (1)
259public bool Equals(StaticWebAssetEndpoint other) => other is not null && Route == other.Route &&
Data\StaticWebAssetEndpointProperty.cs (1)
38public bool Equals(StaticWebAssetEndpointProperty other) =>
Data\StaticWebAssetEndpointResponseHeader.cs (1)
34public bool Equals(StaticWebAssetEndpointResponseHeader other) => string.Equals(Name, other.Name, StringComparison.Ordinal) &&
Data\StaticWebAssetEndpointSelector.cs (1)
51public bool Equals(StaticWebAssetEndpointSelector other) =>
Data\StaticWebAssetPathPattern.cs (1)
537public bool Equals(StaticWebAssetPathPattern other) =>
Data\StaticWebAssetPathSegment.cs (1)
23public bool Equals(StaticWebAssetPathSegment other) => other is not null && Parts.SequenceEqual(other.Parts);
Data\StaticWebAssetSegmentPart.cs (1)
21public bool Equals(StaticWebAssetSegmentPart other) => other is not null &&
Microsoft.NET.Sdk.WorkloadManifestReader (7)
ManifestId.cs (1)
15public bool Equals(ManifestId other)
ManifestVersion.cs (1)
21public bool Equals(ManifestVersion? other)
ManifestVersionUpdate.cs (1)
37public bool Equals(ManifestVersionUpdate? other)
SdkFeatureBand.cs (1)
74public bool Equals(SdkFeatureBand other)
WorkloadId.cs (1)
26public bool Equals(WorkloadId other) => string.Equals(_id, other._id, StringComparison.OrdinalIgnoreCase);
WorkloadPackId.cs (1)
32public bool Equals(WorkloadPackId other) => string.Equals(_id, other._id, StringComparison.OrdinalIgnoreCase);
WorkloadSuggestionFinder.cs (1)
218public bool Equals(WorkloadSuggestionCandidate? other) => other != null && Workloads.SetEquals(other.Workloads);
Microsoft.Private.Windows.Core (43)
_generated\10\Windows.Win32.BSTR.g.cs (1)
43 public bool Equals(BSTR other) => this.Value == other.Value;
_generated\100\Windows.Win32.HBRUSH.g.cs (1)
47 public bool Equals(HBRUSH other) => this.Value == other.Value;
_generated\101\Windows.Win32.HCURSOR.g.cs (1)
47 public bool Equals(HCURSOR other) => this.Value == other.Value;
_generated\102\Windows.Win32.HDC.g.cs (1)
47 public bool Equals(HDC other) => this.Value == other.Value;
_generated\104\Windows.Win32.HDROP.g.cs (1)
47 public bool Equals(HDROP other) => this.Value == other.Value;
_generated\105\Windows.Win32.HENHMETAFILE.g.cs (1)
47 public bool Equals(HENHMETAFILE other) => this.Value == other.Value;
_generated\106\Windows.Win32.HFONT.g.cs (1)
47 public bool Equals(HFONT other) => this.Value == other.Value;
_generated\107\Windows.Win32.HGDIOBJ.g.cs (1)
47 public bool Equals(HGDIOBJ other) => this.Value == other.Value;
_generated\108\Windows.Win32.HGLOBAL.g.cs (1)
47 public bool Equals(HGLOBAL other) => this.Value == other.Value;
_generated\109\Windows.Win32.HICON.g.cs (1)
47 public bool Equals(HICON other) => this.Value == other.Value;
_generated\112\Windows.Win32.HINSTANCE.g.cs (1)
47 public bool Equals(HINSTANCE other) => this.Value == other.Value;
_generated\113\Windows.Win32.HMETAFILE.g.cs (1)
47 public bool Equals(HMETAFILE other) => this.Value == other.Value;
_generated\114\Windows.Win32.HMODULE.g.cs (1)
47 public bool Equals(HMODULE other) => this.Value == other.Value;
_generated\115\Windows.Win32.HMONITOR.g.cs (1)
47 public bool Equals(HMONITOR other) => this.Value == other.Value;
_generated\116\Windows.Win32.HPALETTE.g.cs (1)
47 public bool Equals(HPALETTE other) => this.Value == other.Value;
_generated\117\Windows.Win32.HPEN.g.cs (1)
47 public bool Equals(HPEN other) => this.Value == other.Value;
_generated\118\Windows.Win32.HPROPSHEETPAGE.g.cs (1)
47 public bool Equals(HPROPSHEETPAGE other) => this.Value == other.Value;
_generated\119\Windows.Win32.HRESULT.g.cs (1)
43 public bool Equals(HRESULT other) => this.Value == other.Value;
_generated\120\Windows.Win32.HRGN.g.cs (1)
47 public bool Equals(HRGN other) => this.Value == other.Value;
_generated\121\Windows.Win32.HSTRING.g.cs (1)
54 public bool Equals(HSTRING other) => this.Value == other.Value;
_generated\122\Windows.Win32.HWND.g.cs (1)
47 public bool Equals(HWND other) => this.Value == other.Value;
_generated\169\Windows.Win32.LPARAM.g.cs (1)
39 public bool Equals(LPARAM other) => this.Value == other.Value;
_generated\170\Windows.Win32.LRESULT.g.cs (1)
39 public bool Equals(LRESULT other) => this.Value == other.Value;
_generated\179\Windows.Win32.NTSTATUS.g.cs (1)
39 public bool Equals(NTSTATUS other) => this.Value == other.Value;
_generated\182\Windows.Win32.OLE_HANDLE.g.cs (1)
39 public bool Equals(OLE_HANDLE other) => this.Value == other.Value;
_generated\189\Windows.Win32.PCSTR.g.cs (1)
41 public bool Equals(PCSTR other) => this.Value == other.Value;
_generated\190\Windows.Win32.PCWSTR.g.cs (1)
41 public bool Equals(PCWSTR other) => this.Value == other.Value;
_generated\210\Windows.Win32.PSTR.g.cs (1)
43 public bool Equals(PSTR other) => this.Value == other.Value;
_generated\211\Windows.Win32.PWSTR.g.cs (1)
43 public bool Equals(PWSTR other) => this.Value == other.Value;
_generated\282\Windows.Win32.VARIANT_BOOL.g.cs (1)
39 public bool Equals(VARIANT_BOOL other) => this.Value == other.Value;
_generated\288\Windows.Win32.WPARAM.g.cs (1)
39 public bool Equals(WPARAM other) => this.Value == other.Value;
_generated\305\System.Index.g.cs (1)
125public bool Equals(global::System.Index other) => _value == other._value;
_generated\306\System.Range.g.cs (1)
46public bool Equals(global::System.Range other) => other.Start.Equals(Start) && other.End.Equals(End);
_generated\36\Windows.Win32.CHAR.g.cs (1)
39 public bool Equals(CHAR other) => this.Value == other.Value;
_generated\41\Windows.Win32.COLORREF.g.cs (1)
44 public bool Equals(COLORREF other) => this.Value == other.Value;
_generated\9\Windows.Win32.BOOL.g.cs (1)
39 public bool Equals(BOOL other) => this.Value == other.Value;
_generated\97\Windows.Win32.HANDLE.g.cs (1)
47 public bool Equals(HANDLE other) => this.Value == other.Value;
_generated\99\Windows.Win32.HBITMAP.g.cs (1)
47 public bool Equals(HBITMAP other) => this.Value == other.Value;
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)
39public bool Equals(HandleRef<THandle> other)
Windows\Win32\System\Com\CY.cs (1)
8public readonly bool Equals(CY other) => int64 == other.int64;
Microsoft.TemplateEngine.Cli (2)
Commands\create\InvalidTemplateOptionResult.cs (1)
79public bool Equals(InvalidTemplateOptionResult? other)
Commands\create\TemplateOption.cs (1)
27public bool Equals(TemplateOption? other)
Microsoft.TemplateEngine.Core (1)
TokenConfig.cs (1)
81public bool Equals(ITokenConfig other)
Microsoft.TemplateEngine.Edge (1)
Settings\TemplateInfoReader.cs (1)
249public bool Equals(ITemplateParameter other) => _parameter.Equals(other);
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (1)
Parameter.cs (1)
85public bool Equals(ITemplateParameter other) => !string.IsNullOrEmpty(Name) && !string.IsNullOrEmpty(other.Name) && Name == other.Name;
Microsoft.TemplateEngine.Utils (1)
TemplateParameter.cs (1)
104public bool Equals(ITemplateParameter other) => !string.IsNullOrEmpty(Name) && !string.IsNullOrEmpty(other.Name) && Name == other.Name;
Microsoft.TemplateSearch.Common (1)
TemplateDiscoveryMetadata\BlobStorageTemplateInfo.cs (1)
439public bool Equals(ITemplateParameter other) => !string.IsNullOrEmpty(Name) && !string.IsNullOrEmpty(other.Name) && Name == other.Name;
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (1)
ObjectModel\TestId.cs (1)
109public bool Equals(TestId? other)
Microsoft.VisualStudio.TestPlatform.ObjectModel (9)
Client\TestSessionInfo.cs (1)
64public bool Equals(TestSessionInfo? other)
DataCollector\Common\RequestId.cs (1)
92public bool Equals(RequestId? other)
InvokedDataCollector.cs (1)
63public bool Equals(InvokedDataCollector? other)
Nuget.Frameworks\CompatibilityCacheKey.cs (1)
48public bool Equals(CompatibilityCacheKey other)
Nuget.Frameworks\FallbackFramework.cs (1)
66public bool Equals(FallbackFramework? other)
Nuget.Frameworks\FrameworkRange.cs (1)
97public bool Equals(FrameworkRange? other)
Nuget.Frameworks\NuGetFramework.cs (1)
422public bool Equals(NuGetFramework? other)
Nuget.Frameworks\OneWayCompatibilityMappingEntry.cs (1)
47public bool Equals(OneWayCompatibilityMappingEntry? other)
TestProperty\TestProperty.cs (1)
142public bool Equals(TestProperty? other)
Mono.Cecil (2)
Mono.Cecil.Cil\OpCode.cs (1)
178 public bool Equals (OpCode opcode)
Mono.Cecil.Metadata\MetadataToken.cs (1)
64 public bool Equals (MetadataToken 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) {
NuGet.CommandLine.XPlat (4)
Commands\Why\DependencyNode.cs (3)
18public abstract bool Equals(DependencyNode? other); 29public virtual bool Equals(ProjectNode? other) 56public virtual bool Equals(PackageNode? other)
Utility\FormattedCell.cs (1)
24public bool Equals(FormattedCell other) => Value == other?.Value && ForegroundColor == other?.ForegroundColor;
NuGet.Commands (7)
RestoreCommand\CompatibilityIssue.cs (1)
280public bool Equals(CompatibilityIssue other)
RestoreCommand\LockFileBuilderCache.cs (1)
146public bool Equals(CriteriaKey other)
RestoreCommand\Logging\PackageSpecificWarningProperties.cs (1)
152public bool Equals(PackageSpecificWarningProperties other)
RestoreCommand\Logging\TransitiveNoWarnUtils.cs (2)
663public bool Equals(DependencyNode other) 739public bool Equals(NodeWarningProperties other)
RestoreCommand\Logging\WarningPropertiesCollection.cs (1)
200public bool Equals(WarningPropertiesCollection other)
RestoreCommand\ResolvedDependencyKey.cs (1)
44public bool Equals(ResolvedDependencyKey other)
NuGet.Configuration (2)
PackageSource\PackageSource.cs (1)
226public bool Equals(PackageSource? other)
PackageSource\PackageSourceCredential.cs (1)
210public bool Equals(PackageSourceCredential? other)
NuGet.DependencyResolver.Core (4)
GraphModel\GraphItem.cs (1)
34public bool Equals(GraphItem<TItem> other)
LibraryRangeCacheKey.cs (1)
51public bool Equals(LibraryRangeCacheKey other)
LockFileCacheKey.cs (1)
39public bool Equals(LockFileCacheKey? other)
Remote\RemoteMatch.cs (1)
22public bool Equals(RemoteMatch other)
NuGet.Frameworks (7)
AssetTargetFallbackFramework.cs (1)
100public bool Equals(AssetTargetFallbackFramework? other)
CompatibilityCacheKey.cs (1)
48public bool Equals(CompatibilityCacheKey other)
FallbackFramework.cs (1)
66public bool Equals(FallbackFramework? other)
FrameworkRange.cs (1)
97public bool Equals(FrameworkRange? other)
FrameworkRuntimePair.cs (1)
28public bool Equals(FrameworkRuntimePair? other)
NuGetFramework.cs (1)
423public bool Equals(NuGetFramework? other)
OneWayCompatibilityMappingEntry.cs (1)
47public bool Equals(OneWayCompatibilityMappingEntry? other)
NuGet.LibraryModel (8)
CentralPackageVersion.cs (1)
49public bool Equals(CentralPackageVersion? other)
DownloadDependency.cs (1)
91public bool Equals(DownloadDependency? other)
FrameworkDependency.cs (1)
43public bool Equals(FrameworkDependency? other)
LibraryDependency.cs (1)
147public bool Equals(LibraryDependency? other)
LibraryIdentity.cs (1)
36public bool Equals(LibraryIdentity? other)
LibraryRange.cs (1)
139public bool Equals(LibraryRange? other)
LibraryType.cs (1)
73public bool Equals(LibraryType other)
PrunePackageReference.cs (1)
69public bool Equals(PrunePackageReference? other)
NuGet.PackageManagement (3)
FileModifiers\FileTransformExtensions.cs (1)
32public bool Equals(FileTransformExtensions other)
Resolution\GatherCache.cs (2)
139public bool Equals(GatherSingleCacheKey other) 192public bool Equals(GatherAllCacheKey other)
NuGet.Packaging (19)
Core\FrameworkReference.cs (1)
40public bool Equals(FrameworkReference? other)
Core\FrameworkReferenceGroup.cs (1)
37public bool Equals(FrameworkReferenceGroup? other)
Core\FrameworkSpecificGroup.cs (1)
67public bool Equals(FrameworkSpecificGroup? other)
Core\PackageDependency.cs (1)
76public bool Equals(PackageDependency? other)
Core\PackageDependencyGroup.cs (1)
81public bool Equals(PackageDependencyGroup? other)
Core\PackageDependencyInfo.cs (1)
48public bool Equals(PackageDependencyInfo? other)
Core\PackageIdentity.cs (1)
63public bool Equals(PackageIdentity? other)
Core\PackageType.cs (1)
65public bool Equals(PackageType? other)
Core\RepositoryMetadata.cs (1)
56public bool Equals(RepositoryMetadata? other)
NupkgMetadata\NupkgMetadataFile.cs (1)
17public bool Equals(NupkgMetadataFile? other)
PackageCreation\Authoring\LicenseMetadata.cs (1)
57public bool Equals(LicenseMetadata? other)
RuntimeModel\CompatibilityProfile.cs (1)
47public bool Equals(CompatibilityProfile? other)
RuntimeModel\RuntimeDependencySet.cs (1)
44public bool Equals(RuntimeDependencySet? other)
RuntimeModel\RuntimeDescription.cs (1)
57public bool Equals(RuntimeDescription? other)
RuntimeModel\RuntimeGraph.cs (3)
298public bool Equals(RuntimeGraph? other) 396public bool Equals(RuntimeDependencyKey other) 428public bool Equals(RuntimeCompatKey other)
RuntimeModel\RuntimePackageDependency.cs (1)
54public bool Equals(RuntimePackageDependency? other)
Signing\SignatureLog.cs (1)
74public bool Equals(SignatureLog? other)
NuGet.ProjectModel (22)
CacheFile.cs (1)
51public bool Equals(CacheFile other)
CentralTransitiveDependencyGroup.cs (1)
33public bool Equals(CentralTransitiveDependencyGroup? other)
ExternalProjectReference.cs (1)
142public bool Equals(ExternalProjectReference other)
LockFile\AssetsLogMessage.cs (1)
128public bool Equals(IAssetsLogMessage other)
LockFile\BuildAction.cs (1)
55public bool Equals(BuildAction other)
LockFile\LockFile.cs (1)
56public bool Equals(LockFile other)
LockFile\LockFileItem.cs (1)
44public bool Equals(LockFileItem other)
LockFile\LockFileLibrary.cs (1)
42public bool Equals(LockFileLibrary other)
LockFile\LockFileTarget.cs (1)
37public bool Equals(LockFileTarget other)
LockFile\LockFileTargetLibrary.cs (1)
168public bool Equals(LockFileTargetLibrary? other)
ProjectFileDependencyGroup.cs (1)
22public bool Equals(ProjectFileDependencyGroup? other)
ProjectLockFile\LockFileDependency.cs (1)
29public bool Equals(LockFileDependency other)
ProjectLockFile\PackagesLockFile.cs (1)
30public bool Equals(PackagesLockFile other)
ProjectLockFile\PackagesLockFileTarget.cs (1)
44public bool Equals(PackagesLockFileTarget other)
ProjectRestoreMetadata.cs (1)
209public bool Equals(ProjectRestoreMetadata other)
ProjectRestoreMetadataFile.cs (1)
39public bool Equals(ProjectRestoreMetadataFile? other)
ProjectRestoreMetadataFrameworkInfo.cs (1)
59public bool Equals(ProjectRestoreMetadataFrameworkInfo other)
ProjectRestoreReference.cs (1)
53public bool Equals(ProjectRestoreReference other)
RestoreAuditProperties.cs (1)
91public bool Equals(RestoreAuditProperties? other)
RestoreLockProperties.cs (1)
57public bool Equals(RestoreLockProperties? other)
TargetFrameworkInformation.cs (1)
179public bool Equals(TargetFrameworkInformation other)
WarningProperties.cs (1)
70public bool Equals(WarningProperties? other)
NuGet.Protocol (3)
Model\PackageVulnerabilityInfo.cs (1)
40public bool Equals(PackageVulnerabilityInfo? other)
Plugins\PluginManager.cs (1)
479public bool Equals(PluginRequestKey? other)
RemoteSourceDependencyInfo.cs (1)
74public bool Equals(RemoteSourceDependencyInfo? other)
NuGet.Resolver (1)
ResolverPackage.cs (1)
105public bool Equals(ResolverPackage other)
NuGet.Versioning (3)
FloatRange.cs (1)
443public bool Equals(FloatRange? other)
SemanticVersionBase.cs (1)
111public virtual bool Equals(SemanticVersion? other)
VersionRangeBase.cs (1)
198public bool Equals(VersionRangeBase? 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)
662public 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)
Roslyn.Diagnostics.Analyzers (26)
src\roslyn\src\Compilers\Core\Portable\Collections\BitVector.cs (1)
41public bool Equals(BitVector other)
src\roslyn\src\Compilers\Core\Portable\FileSystem\RelativePathResolver.cs (1)
60public bool Equals(RelativePathResolver? other) =>
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
309public bool Equals(ImmutableSegmentedDictionary<TKey, TValue> other)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
322public bool Equals(ImmutableSegmentedHashSet<T> other)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
596public bool Equals(ImmutableSegmentedList<T> other)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
186public bool Equals(SegmentedArray<T> other)
src\roslyn\src\Dependencies\Contracts\Index.cs (1)
133public bool Equals(Index other) => _value == other._value;
src\roslyn\src\Dependencies\Contracts\Range.cs (1)
54public bool Equals(Range other) => other.Start.Equals(Start) && other.End.Equals(End);
src\roslyn\src\Dependencies\Threading\VoidResult.cs (1)
22public bool Equals(VoidResult other)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\OptionKey.cs (1)
54public bool Equals(OptionKey other)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
255public bool Equals(SymbolNamesWithValueOption<TValue>? other)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\Unit.cs (1)
28public readonly bool Equals(Unit other) => true;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeGeneration\ParameterName.cs (1)
66public bool Equals(ParameterName other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (1)
229public bool Equals(CodeStyleOption2<T>? other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenData.cs (1)
44public bool Equals(TokenData other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingRule.cs (1)
21public bool Equals(NamingRule other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
363public bool Equals(NamingStylePreferences? other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (2)
191public bool Equals(SymbolSpecification other) 550public bool Equals(ModifierKind other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\Option2.cs (1)
95public bool Equals(IOption2? other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (1)
74public bool Equals(OptionDefinition? other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\PerLanguageOption2.cs (1)
83public bool Equals(IOption2? other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
356public readonly bool Equals(SymbolKey other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\InterceptsLocationUtilities.cs (1)
22public readonly bool Equals(InterceptsLocationData other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
157public bool Equals(SyntaxPath? other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (1)
222public bool Equals(ISymbol other)
ScenarioTests.Common.Tests (2)
ScenarioTestTypes.cs (2)
520public bool Equals(ComplexCompositeType other) 665public bool Equals(ComplexCompositeTypeDuplexCallbackOnly other)
sdk-tasks (1)
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\SdkFeatureBand.cs (1)
74public bool Equals(SdkFeatureBand other)
Shared (2)
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) =>
Stress.ApiService (42)
artifacts\obj\Stress.ApiService\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.ApiService\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.ApiService\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.ApiService\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.ApiService\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.ApiService\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.ApiService\Debug\net8.0\opentelemetry\proto\resource\v1\Resource.cs (1)
135public bool Equals(Resource other) {
artifacts\obj\Stress.ApiService\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) {
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)
319public 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.CommandLine (4)
ArgumentArity.cs (1)
64public bool Equals(ArgumentArity other) =>
Completions\CompletionItem.cs (1)
73public bool Equals(CompletionItem? other)
Help\TwoColumnHelpRow.cs (1)
38public bool Equals(TwoColumnHelpRow? other)
Parsing\Token.cs (1)
55public bool Equals(Token? other) => other is not null && Value == other.Value && Type == other.Type && ReferenceEquals(Symbol, other.Symbol);
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)
635public bool Equals(SqlDateTime other) =>
System\Data\SQLTypes\SQLDecimal.cs (1)
3314public 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)
561public 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)
2053public bool Equals(ActivityTraceId traceId) 2221public bool Equals(ActivitySpanId spanId)
System\Diagnostics\ActivityContext.cs (1)
110public 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)
46public 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)
System\Diagnostics\CounterSample.cs (1)
163public bool Equals(CounterSample sample)
System.Diagnostics.StackTrace (1)
System\Diagnostics\SymbolStore\SymbolToken.cs (1)
29public bool Equals(SymbolToken obj) => obj._token == _token;
System.Drawing.Common (3)
_generated\22\Windows.Win32.PRINTER_HANDLE.g.cs (1)
47 public bool Equals(PRINTER_HANDLE other) => this.Value == other.Value;
System\Drawing\CharacterRange.cs (1)
41public readonly bool Equals(CharacterRange other) => First == other.First && Length == other.Length;
System\Drawing\Printing\TriState.cs (1)
34public bool Equals(TriState other) => _value == other._value;
System.Drawing.Primitives (7)
System\Drawing\Color.cs (1)
596public 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)
650bool 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 (7)
src\runtime\src\libraries\Common\src\System\Net\CredentialCacheKey.cs (1)
88public bool Equals([NotNullWhen(true)] CredentialCacheKey? other)
System\Net\Http\Headers\HeaderDescriptor.cs (1)
44public bool Equals(HeaderDescriptor other)
System\Net\Http\HttpMethod.cs (1)
55public bool Equals([NotNullWhen(true)] HttpMethod? other) =>
System\Net\Http\Metrics\MetricsHandler.cs (1)
34public bool Equals(ActiveRequestsTagKey other) =>
System\Net\Http\SocketsHttpHandler\HttpAuthority.cs (1)
52public bool Equals([NotNullWhen(true)] HttpAuthority? other)
System\Net\Http\SocketsHttpHandler\HttpConnectionPoolManager.cs (1)
596public bool Equals(HttpConnectionKey other) =>
System\Net\Http\SocketsHttpHandler\Metrics\SocketsHttpHandlerMetrics.cs (1)
35public bool Equals(OpenConnectionsTagKey other) =>
System.Net.Http.WinHttpHandler (1)
System\Net\Http\CachedCertificateValue.cs (1)
34public bool Equals(CachedCertificateKey other) =>
System.Net.NameResolution (1)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.IPAddress.cs (1)
45public bool Equals(IPAddress other)
System.Net.Primitives (5)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.IPAddress.cs (1)
45public bool Equals(IPAddress other)
src\runtime\src\libraries\Common\src\System\Net\CredentialCacheKey.cs (1)
88public bool Equals([NotNullWhen(true)] CredentialCacheKey? other)
src\runtime\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)
310public bool Equals(IPNetwork other) =>
System.Net.Quic (3)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.X509.cs (1)
404public bool Equals(X509VerifyStatusCode other) => Code == other.Code;
System\Net\Quic\Internal\MsQuicConfiguration.Cache.cs (1)
72public 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\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (1)
87public bool Equals(SslContextCacheKey other) =>
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.X509.cs (1)
404public 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\runtime\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)
149public bool Equals(NIndex other) => _value == other._value;
System\Buffers\NRange.cs (1)
54public bool Equals(NRange other) => other.Start.Equals(Start) && other.End.Equals(End);
System\Numerics\Tensors\netcore\TensorShape.cs (1)
975public bool Equals(TensorShape other) => (this == other);
System.Private.CoreLib (115)
Internal\Runtime\CompilerHelpers\InteropHelpers.cs (1)
682public bool Equals(CustomMarshallerKey other)
Internal\Runtime\CompilerServices\FunctionPointerOps.cs (1)
30public bool Equals(GenericMethodDescriptorInfo other)
Internal\Runtime\CompilerServices\OpenMethodResolver.cs (1)
198public bool Equals(OpenMethodResolver other)
src\runtime\src\coreclr\nativeaot\Common\src\Internal\Runtime\TypeManagerHandle.Equality.cs (1)
33public bool Equals(TypeManagerHandle other)
src\runtime\src\coreclr\nativeaot\Runtime.Base\src\System\Runtime\CachedInterfaceDispatch.cs (1)
45public bool Equals(Key other)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Boolean.cs (1)
131public bool Equals(bool obj)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\StandardFormat.cs (1)
145public bool Equals(StandardFormat other) => _format == other._format && _precision == other._precision;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
85public bool Equals(byte obj)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
127public bool Equals(char obj)
src\runtime\src\libraries\System.Private.CoreLib\src\System\DateOnly.cs (1)
262public bool Equals(DateOnly value) => _dayNumber == value._dayNumber;
src\runtime\src\libraries\System.Private.CoreLib\src\System\DateTime.cs (1)
1192public bool Equals(DateTime value)
src\runtime\src\libraries\System.Private.CoreLib\src\System\DateTimeOffset.cs (1)
568public bool Equals(DateTimeOffset other) => UtcTicks == other.UtcTicks;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Decimal.cs (1)
451public bool Equals(decimal value) =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventDescriptor.cs (1)
100public bool Equals(EventDescriptor other) =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
334public bool Equals(double obj)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\SortVersion.cs (1)
47public bool Equals([NotNullWhen(true)] SortVersion? other)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Guid.cs (1)
1086public bool Equals(Guid g) => EqualsCore(this, g);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Half.cs (1)
498public bool Equals(Half other)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Index.cs (1)
129public bool Equals(Index other) => _value == other._value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int128.cs (1)
89public bool Equals(Int128 other)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
86public bool Equals(short obj)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
103public bool Equals(int obj)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
100public bool Equals(long obj)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (1)
226public bool Equals(nint other) => _value == other;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Memory.cs (1)
467public bool Equals(Memory<T> other)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\BFloat16.cs (1)
373public bool Equals(BFloat16 other) => ((float)this).Equals((float)other);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Colors\Argb.T.cs (1)
103public bool Equals(Argb<T> other)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Colors\Rgba.T.cs (1)
103public bool Equals(Rgba<T> other)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal128.cs (1)
249public bool Equals(Decimal128 other)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal32.cs (1)
245public bool Equals(Decimal32 other)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal64.cs (1)
248public bool Equals(Decimal64 other)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Matrix3x2.cs (1)
953public readonly bool Equals(Matrix3x2 other)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Matrix4x4.cs (1)
2385public readonly bool Equals(Matrix4x4 other)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Plane.cs (1)
201public readonly bool Equals(Plane other) => this.AsVector128().Equals(other.AsVector128());
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Quaternion.cs (1)
472public readonly bool Equals(Quaternion other) => this.AsVector128().Equals(other.AsVector128());
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\TotalOrderIeee754Comparer.cs (1)
414public bool Equals(TotalOrderIeee754Comparer<T> other) => true;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Vector_1.cs (1)
691public bool Equals(Vector<T> other)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Vector2.cs (1)
1096public readonly bool Equals(Vector2 other) => this.AsVector128().Equals(other.AsVector128());
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Vector3.cs (1)
1106public readonly bool Equals(Vector3 other) => this.AsVector128().Equals(other.AsVector128());
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Vector4.cs (1)
1170public readonly bool Equals(Vector4 other) => this.AsVector128().Equals(other.AsVector128());
src\runtime\src\libraries\System.Private.CoreLib\src\System\Range.cs (1)
54public bool Equals(Range other) => other.Start.Equals(Start) && other.End.Equals(End);
src\runtime\src\libraries\System.Private.CoreLib\src\System\ReadOnlyMemory.cs (1)
379public bool Equals(ReadOnlyMemory<T> other)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\CustomAttributeNamedArgument.cs (1)
58public bool Equals(CustomAttributeNamedArgument other) =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\CustomAttributeTypedArgument.cs (1)
94public bool Equals(CustomAttributeTypedArgument other) => _value == other._value && _argumentType == other._argumentType;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\Label.cs (1)
33public bool Equals(Label obj) =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\Opcode.cs (1)
126public bool Equals(OpCode obj) => obj.Value == Value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ArrayWithOffset.cs (1)
58public bool Equals(ArrayWithOffset obj)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\CLong.cs (1)
65public bool Equals(CLong other) => _value == other._value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\CULong.cs (1)
65public bool Equals(CULong other) => _value == other._value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\GCHandle.cs (1)
176public readonly bool Equals(GCHandle other) => _handle == other._handle;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\GCHandle.T.cs (1)
105public readonly bool Equals(GCHandle<T> other) => _handle == other._handle;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (1)
825public bool Equals(NFloat other) => _value.Equals(other._value);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\OSPlatform.cs (1)
35public bool Equals(OSPlatform other)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\PinnedGCHandle.T.cs (1)
139public readonly bool Equals(PinnedGCHandle<T> other) => _handle == other._handle;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\WeakGCHandle.T.cs (1)
114public readonly bool Equals(WeakGCHandle<T> other) => _handle == other._handle;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector128_1.cs (1)
402public bool Equals(Vector128<T> other)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector256_1.cs (1)
390public bool Equals(Vector256<T> other)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector512_1.cs (1)
390public bool Equals(Vector512<T> other)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector64_1.cs (1)
449public bool Equals(Vector64<T> other)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Versioning\FrameworkName.cs (1)
67public bool Equals([NotNullWhen(true)] FrameworkName? other)
src\runtime\src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
88public bool Equals(sbyte obj)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Single.cs (1)
329public bool Equals(float obj)
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.Comparison.cs (1)
567public bool Equals([NotNullWhen(true)] string? value)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Rune.cs (1)
790public bool Equals(Rune other) => this == other;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\RunePosition.cs (1)
104public bool Equals(RunePosition other) =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\CancellationToken.cs (1)
306public bool Equals(CancellationToken other) => _source == other._source;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\CancellationTokenRegistration.cs (1)
152public bool Equals(CancellationTokenRegistration other) => _node == other._node && _id == other._id;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ExecutionContext.cs (1)
618public bool Equals(AsyncFlowControl obj)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Lock.cs (1)
1127bool IEquatable<State>.Equals(State other) => this == other;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\LowLevelLifoSemaphore.cs (1)
558public bool Equals(Counts other) => _data == other._data;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.ThreadCounts.cs (1)
180public bool Equals(ThreadCounts other) => _data == other._data;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.WorkerTracking.cs (1)
125public bool Equals(CountsOfThreadsProcessingUserCallbacks other) => _data == other._data;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\ValueTask.cs (2)
161public bool Equals(ValueTask other) => _obj == other._obj && _token == other._token; 562public bool Equals(ValueTask<TResult> other) =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeOnly.cs (1)
426public bool Equals(TimeOnly value) => _ticks == value._ticks;
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeSpan.cs (1)
427public bool Equals(TimeSpan obj) => Equals(this, obj);
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.AdjustmentRule.cs (1)
50public bool Equals([NotNullWhen(true)] AdjustmentRule? other) =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.cs (1)
738public bool Equals([NotNullWhen(true)] TimeZoneInfo? other) =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.TransitionTime.cs (1)
40public bool Equals(TransitionTime other) =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt128.cs (1)
91public bool Equals(UInt128 other)
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
81public bool Equals(ushort obj)
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
97public bool Equals(uint obj)
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
97public bool Equals(ulong obj)
src\runtime\src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (1)
222public bool Equals(nuint other) => _value == other;
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Version.cs (1)
144public bool Equals([NotNullWhen(true)] Version? obj)
System\ModuleHandle.cs (1)
37public bool Equals(ModuleHandle handle)
System\Reflection\Runtime\Assemblies\RuntimeAssemblyInfo.cs (1)
25public bool Equals(RuntimeAssemblyInfo? other)
System\Reflection\Runtime\General\Dispensers.NativeFormat.cs (1)
82public bool Equals(RuntimeAssemblyKey other)
System\Reflection\Runtime\General\QHandles.cs (3)
44public bool Equals(QScopeDefinition other) 84public bool Equals(QHandle other) 175public bool Equals(QGenericParameter other)
System\Reflection\Runtime\MethodInfos\NativeFormat\NativeFormatMethodCommon.cs (1)
254public bool Equals(NativeFormatMethodCommon other)
System\Reflection\Runtime\TypeInfos\NativeFormat\NativeFormatRuntimeGenericParameterTypeInfoForMethods.UnificationKey.cs (1)
42public bool Equals(UnificationKey other)
System\Reflection\Runtime\TypeInfos\NativeFormat\NativeFormatRuntimeGenericParameterTypeInfoForTypes.UnificationKey.cs (1)
40public bool Equals(UnificationKey other)
System\Reflection\Runtime\TypeInfos\NativeFormat\NativeFormatRuntimeNamedTypeInfo.cs (1)
352public bool Equals(NativeFormatRuntimeNamedTypeInfo? other)
System\Reflection\Runtime\TypeInfos\NativeFormat\NativeFormatRuntimeNamedTypeInfo.UnificationKey.cs (1)
48public bool Equals(UnificationKey other)
System\Reflection\Runtime\TypeInfos\RuntimeConstructedGenericTypeInfo.UnificationKey.cs (1)
46public bool Equals(UnificationKey other)
System\Reflection\Runtime\TypeInfos\RuntimeFunctionPointerTypeInfo.UnificationKey.cs (1)
48public bool Equals(UnificationKey other)
System\Reflection\Runtime\TypeInfos\RuntimeHasElementTypeInfo.UnificationKey.cs (1)
44public bool Equals(UnificationKey other)
System\Reflection\Runtime\TypeInfos\RuntimeNamedTypeInfo.cs (1)
52public bool Equals(RuntimeNamedTypeInfo? other)
System\Reflection\RuntimeAssemblyName.cs (1)
62public bool Equals(RuntimeAssemblyName? other)
System\Runtime\TypeLoaderExports.cs (1)
48public bool Equals(Key other)
System\RuntimeFieldHandle.cs (1)
34public unsafe bool Equals(RuntimeFieldHandle handle)
System\RuntimeMethodHandle.cs (1)
37public unsafe bool Equals(RuntimeMethodHandle handle)
System\RuntimeTypeHandle.cs (1)
45public bool Equals(RuntimeTypeHandle handle)
System\TypeUnificationKey.cs (1)
32public bool Equals(TypeUnificationKey other)
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.TypeLoader (6)
Internal\Runtime\TypeLoader\TypeLoaderEnvironment.ConstructedGenericTypesLookup.cs (1)
184public bool Equals(LazyDictionaryContext other)
Internal\Runtime\TypeLoader\TypeLoaderEnvironment.LdTokenResultLookup.cs (2)
45public bool Equals(RuntimeFieldHandleKey other) 79public bool Equals(RuntimeMethodHandleKey other)
Internal\TypeSystem\TypeSystemContext.Runtime.cs (1)
293public bool Equals(GenericTypeInstanceKey other)
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\Instantiation.cs (1)
108public bool Equals(Instantiation other)
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\MethodDesc.cs (1)
255public bool Equals(MethodSignature otherSignature)
System.Private.Uri (1)
System\Uri.cs (1)
1729public bool Equals([NotNullWhen(true)] Uri? other)
System.Private.Windows.Core (41)
_generated\10\Windows.Win32.BSTR.g.cs (1)
43 public bool Equals(BSTR other) => this.Value == other.Value;
_generated\100\Windows.Win32.HBITMAP.g.cs (1)
47 public bool Equals(HBITMAP other) => this.Value == other.Value;
_generated\101\Windows.Win32.HBRUSH.g.cs (1)
47 public bool Equals(HBRUSH other) => this.Value == other.Value;
_generated\102\Windows.Win32.HCURSOR.g.cs (1)
47 public bool Equals(HCURSOR other) => this.Value == other.Value;
_generated\103\Windows.Win32.HDC.g.cs (1)
47 public bool Equals(HDC other) => this.Value == other.Value;
_generated\105\Windows.Win32.HDROP.g.cs (1)
47 public bool Equals(HDROP other) => this.Value == other.Value;
_generated\106\Windows.Win32.HENHMETAFILE.g.cs (1)
47 public bool Equals(HENHMETAFILE other) => this.Value == other.Value;
_generated\107\Windows.Win32.HFONT.g.cs (1)
47 public bool Equals(HFONT other) => this.Value == other.Value;
_generated\108\Windows.Win32.HGDIOBJ.g.cs (1)
47 public bool Equals(HGDIOBJ other) => this.Value == other.Value;
_generated\109\Windows.Win32.HGLOBAL.g.cs (1)
47 public bool Equals(HGLOBAL other) => this.Value == other.Value;
_generated\110\Windows.Win32.HICON.g.cs (1)
47 public bool Equals(HICON other) => this.Value == other.Value;
_generated\113\Windows.Win32.HINSTANCE.g.cs (1)
47 public bool Equals(HINSTANCE other) => this.Value == other.Value;
_generated\114\Windows.Win32.HMETAFILE.g.cs (1)
47 public bool Equals(HMETAFILE other) => this.Value == other.Value;
_generated\115\Windows.Win32.HMODULE.g.cs (1)
47 public bool Equals(HMODULE other) => this.Value == other.Value;
_generated\116\Windows.Win32.HMONITOR.g.cs (1)
47 public bool Equals(HMONITOR other) => this.Value == other.Value;
_generated\117\Windows.Win32.HPALETTE.g.cs (1)
47 public bool Equals(HPALETTE other) => this.Value == other.Value;
_generated\118\Windows.Win32.HPEN.g.cs (1)
47 public bool Equals(HPEN other) => this.Value == other.Value;
_generated\119\Windows.Win32.HPROPSHEETPAGE.g.cs (1)
47 public bool Equals(HPROPSHEETPAGE other) => this.Value == other.Value;
_generated\120\Windows.Win32.HRESULT.g.cs (1)
43 public bool Equals(HRESULT other) => this.Value == other.Value;
_generated\121\Windows.Win32.HRGN.g.cs (1)
47 public bool Equals(HRGN other) => this.Value == other.Value;
_generated\122\Windows.Win32.HSTRING.g.cs (1)
54 public bool Equals(HSTRING other) => this.Value == other.Value;
_generated\123\Windows.Win32.HWND.g.cs (1)
47 public bool Equals(HWND other) => this.Value == other.Value;
_generated\171\Windows.Win32.LPARAM.g.cs (1)
39 public bool Equals(LPARAM other) => this.Value == other.Value;
_generated\172\Windows.Win32.LRESULT.g.cs (1)
39 public bool Equals(LRESULT other) => this.Value == other.Value;
_generated\181\Windows.Win32.NTSTATUS.g.cs (1)
39 public bool Equals(NTSTATUS other) => this.Value == other.Value;
_generated\184\Windows.Win32.OLE_HANDLE.g.cs (1)
39 public bool Equals(OLE_HANDLE other) => this.Value == other.Value;
_generated\190\Windows.Win32.PCSTR.g.cs (1)
41 public bool Equals(PCSTR other) => this.Value == other.Value;
_generated\191\Windows.Win32.PCWSTR.g.cs (1)
41 public bool Equals(PCWSTR other) => this.Value == other.Value;
_generated\211\Windows.Win32.PSTR.g.cs (1)
43 public bool Equals(PSTR other) => this.Value == other.Value;
_generated\212\Windows.Win32.PWSTR.g.cs (1)
43 public bool Equals(PWSTR other) => this.Value == other.Value;
_generated\282\Windows.Win32.VARIANT_BOOL.g.cs (1)
39 public bool Equals(VARIANT_BOOL other) => this.Value == other.Value;
_generated\288\Windows.Win32.WPARAM.g.cs (1)
39 public bool Equals(WPARAM other) => this.Value == other.Value;
_generated\36\Windows.Win32.CHAR.g.cs (1)
39 public bool Equals(CHAR other) => this.Value == other.Value;
_generated\41\Windows.Win32.COLORREF.g.cs (1)
44 public bool Equals(COLORREF other) => this.Value == other.Value;
_generated\9\Windows.Win32.BOOL.g.cs (1)
39 public bool Equals(BOOL other) => this.Value == other.Value;
_generated\98\Windows.Win32.HANDLE.g.cs (1)
47 public bool Equals(HANDLE other) => this.Value == other.Value;
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)
39public bool Equals(HandleRef<THandle> other)
Windows\Win32\System\Com\CY.cs (1)
8public readonly bool Equals(CY other) => int64 == other.int64;
System.Private.Windows.GdiPlus (3)
_generated\1\Windows.Win32.CGpEffect.g.cs (1)
39 public bool Equals(CGpEffect other) => this.Value == other.Value;
_generated\50\Windows.Win32.Matrix.g.cs (1)
43 public bool Equals(Matrix other) => this.Value == other.Value;
_generated\57\Windows.Win32.PathData.g.cs (1)
39 public bool Equals(PathData other) => this.Value == other.Value;
System.Private.Xml (4)
System\Xml\BinaryXml\XmlBinaryReader.cs (1)
105public bool Equals(QName other) =>
System\Xml\Cache\XPathNodeInfoAtom.cs (1)
292public 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)
78public bool Equals(ModuleDefinitionHandle other) 161public bool Equals(AssemblyDefinitionHandle other) 244public bool Equals(InterfaceImplementationHandle other) 327public bool Equals(MethodDefinitionHandle other) 422public bool Equals(MethodImplementationHandle other) 505public bool Equals(MethodSpecificationHandle other) 588public bool Equals(TypeDefinitionHandle other) 671public bool Equals(ExportedTypeHandle other) 754public bool Equals(TypeReferenceHandle other) 837public bool Equals(TypeSpecificationHandle other) 920public bool Equals(MemberReferenceHandle other) 1003public bool Equals(FieldDefinitionHandle other) 1086public bool Equals(EventDefinitionHandle other) 1169public bool Equals(PropertyDefinitionHandle other) 1252public bool Equals(StandaloneSignatureHandle other) 1335public bool Equals(ParameterHandle other) 1418public bool Equals(GenericParameterHandle other) 1501public bool Equals(GenericParameterConstraintHandle other) 1584public bool Equals(ModuleReferenceHandle other) 1702public bool Equals(AssemblyReferenceHandle other) 1785public bool Equals(CustomAttributeHandle other) 1868public bool Equals(DeclarativeSecurityAttributeHandle other) 1951public bool Equals(ConstantHandle other) 2034public bool Equals(ManifestResourceHandle other) 2117public bool Equals(AssemblyFileHandle other) 2194public bool Equals(UserStringHandle other) 2410public bool Equals(StringHandle other) 2528public bool Equals(NamespaceDefinitionHandle other) 2656public bool Equals(BlobHandle other) 2724public 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 (5)
System\Number.Polyfill.cs (2)
52public bool Equals(Utf16Char other) => value == other.value; 69public bool Equals(Utf8Char other) => value == other.value;
System\Numerics\BigInteger.cs (1)
1311public bool Equals(BigInteger other)
System\Numerics\Complex.cs (1)
235public bool Equals(Complex value)
System\Numerics\Complex.Generic.cs (1)
425public bool Equals(Complex<T> value)
System.Security.Cryptography (13)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsaAlgorithm.cs (1)
311public bool Equals([NotNullWhen(true)] CompositeMLDsaAlgorithm? other) => other is not null && other.Name == Name;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLKemAlgorithm.cs (1)
243public bool Equals([NotNullWhen(true)] CompositeMLKemAlgorithm? other) => other is not null && other.Name == Name;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLDsaAlgorithm.cs (1)
130public bool Equals([NotNullWhen(true)] MLDsaAlgorithm? other) => other is not null && other.Name == Name;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLKemAlgorithm.cs (1)
120public bool Equals([NotNullWhen(true)] MLKemAlgorithm? other) => other is not null && other.Name == Name;
src\runtime\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)
69public 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.ServiceModel.Http (1)
System\ServiceModel\Channels\WebSocketTransportSettings.cs (1)
132public bool Equals(WebSocketTransportSettings other)
System.ServiceModel.Primitives (1)
System\ServiceModel\Channels\ProducerConsumerStream.cs (1)
231public bool Equals(WriteBufferWrapper other)
System.ServiceProcess.ServiceController (1)
System\ServiceProcess\SessionChangeDescription.cs (1)
29public bool Equals(SessionChangeDescription changeDescription) =>
System.Speech (5)
Internal\Synthesis\EngineSiteSapi.cs (1)
195public bool Equals(SpeechEventSapi other) =>
Synthesis\TTSEngine\TTSEngineTypes.cs (4)
94public bool Equals(SpeechEventInfo other) 247public bool Equals(FragmentState other) 335public bool Equals(ContourPoint other) 387public bool Equals(ProsodyNumber other)
System.Text.Json (4)
System\Text\Json\JsonEncodedText.cs (1)
144public bool Equals(JsonEncodedText other)
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (1)
1500public 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 (2)
src\runtime\src\libraries\Common\src\SourceGenerators\ImmutableEquatableArray.cs (1)
27public bool Equals(ImmutableEquatableArray<T>? other)
src\runtime\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)
318public 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)
73public 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)
135public 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 (21)
_generated\100\Windows.Win32.HMENU.g.cs (1)
47 public bool Equals(HMENU other) => this.Value == other.Value;
_generated\101\Windows.Win32.HTASK.g.cs (1)
47 public bool Equals(HTASK other) => this.Value == other.Value;
_generated\102\Windows.Win32.HTHEME.g.cs (1)
43 public bool Equals(HTHEME other) => this.Value == other.Value;
_generated\104\Windows.Win32.HTREEITEM.g.cs (1)
39 public bool Equals(HTREEITEM other) => this.Value == other.Value;
_generated\105\Windows.Win32.HWINEVENTHOOK.g.cs (1)
49 public bool Equals(HWINEVENTHOOK other) => this.Value == other.Value;
_generated\106\Windows.Win32.HWINSTA.g.cs (1)
47 public bool Equals(HWINSTA other) => this.Value == other.Value;
_generated\432\Windows.Win32.PRINTER_HANDLE.g.cs (1)
47 public bool Equals(PRINTER_HANDLE other) => this.Value == other.Value;
_generated\44\Windows.Win32.DPI_AWARENESS_CONTEXT.g.cs (1)
47 public bool Equals(DPI_AWARENESS_CONTEXT other) => this.Value == other.Value;
_generated\461\Windows.Win32.SHANDLE_PTR.g.cs (1)
39 public bool Equals(SHANDLE_PTR other) => this.Value == other.Value;
_generated\76\Windows.Win32.HACCEL.g.cs (1)
47 public bool Equals(HACCEL other) => this.Value == other.Value;
_generated\78\Windows.Win32.HDESK.g.cs (1)
47 public bool Equals(HDESK other) => this.Value == other.Value;
_generated\83\Windows.Win32.HDWP.g.cs (1)
47 public bool Equals(HDWP other) => this.Value == other.Value;
_generated\9\Windows.Win32.BOOLEAN.g.cs (1)
39 public bool Equals(BOOLEAN other) => this.Value == other.Value;
_generated\91\Windows.Win32.HHOOK.g.cs (1)
47 public bool Equals(HHOOK other) => this.Value == other.Value;
_generated\95\Windows.Win32.HIMAGELIST.g.cs (1)
43 public bool Equals(HIMAGELIST other) => this.Value == other.Value;
_generated\96\Windows.Win32.HIMC.g.cs (1)
47 public bool Equals(HIMC other) => this.Value == other.Value;
_generated\98\Windows.Win32.HKEY.g.cs (1)
47 public bool Equals(HKEY other) => this.Value == other.Value;
_generated\99\Windows.Win32.HKL.g.cs (1)
47 public bool Equals(HKL other) => this.Value == other.Value;
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)
UnitTests.Common (1)
TestTypes.cs (1)
564public bool Equals(ComplexCompositeType other)
1650 references to Equals
GenerateDocumentationAndConfigFiles (67)
src\b310f676f7308b7f\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (1)
504Debug.Assert(localFunction.Equals(localFunction.OriginalDefinition));
src\roslyn\src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (1)
38if (generatedCodeAttribute.Equals(attribute.AttributeClass))
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\INamedTypeSymbolExtensions.cs (2)
52if (baseType.Equals(parentType)) 58if (type.OriginalDefinition.AllInterfaces.Any(baseInterface => baseInterface.OriginalDefinition.Equals(parentType)))
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (1)
334operation is ILocalFunctionOperation localFunction && localFunction.Symbol.OriginalDefinition.Equals(lambdaOrLocalFunction.OriginalDefinition));
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\IPropertySymbolExtensions.cs (1)
20=> propertySymbol.ContainingType.GetMembers().OfType<IFieldSymbol>().Any(f => f.IsImplicitlyDeclared && propertySymbol.Equals(f.AssociatedSymbol));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\CollectionExpressionUtilities.cs (4)
64if (namedType.OriginalDefinition.Equals(compilation.SpanOfTType()) || 65namedType.OriginalDefinition.Equals(compilation.ReadOnlySpanOfTType())) 74namedType.AllInterfaces.FirstOrDefault(i => i.OriginalDefinition.Equals(ienumerableOfTType)) ?? 75namedType.AllInterfaces.FirstOrDefault(i => i.OriginalDefinition.Equals(ienumerableType));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\KnownTypes.cs (4)
26if (returnType.Equals(this.TaskType)) 29if (returnType.Equals(this.ValueTaskType)) 32if (returnType.OriginalDefinition.Equals(this.TaskOfTType)) 35if (returnType.OriginalDefinition.Equals(this.ValueTaskOfTType))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
457notImplementedExceptionType.Equals(objectCreation.Type);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (1)
173return type.AllInterfaces.Any(static (i, enumerableType) => i.OriginalDefinition.Equals(enumerableType), enumerableType);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyleRules.cs (1)
95if (symbol.Equals(containingType.FindImplementationForInterfaceMember(implementedInterfaceMember)))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFactsExtensions.cs (1)
37!innerTypeInfo.Type.Equals(innerTypeInfo.ConvertedType))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BodyLevelSymbolKey.cs (1)
91if (possibleSymbol.symbol.Equals(symbol))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ErrorTypeSymbolKey.cs (1)
34var isConstructed = !symbol.Equals(symbol.ConstructedFrom);
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamedTypeSymbolKey.cs (1)
29symbol.Equals(symbol.ConstructedFrom) || symbol.IsUnboundGenericType ? [] : symbol.TypeArguments);
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
922if (symbol.Equals(overriddenMember)) 1006if (!newSymbol.Equals(implementationMember))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (1)
140dictionary[key] = existingArray.IsEmpty && value.Equals(defaultArray[0]) ? defaultArray : existingArray.Add(value);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IMethodSymbolExtensions.cs (3)
136methodSymbol.ReturnType.OriginalDefinition.Equals(taskType) || 137methodSymbol.ReturnType.OriginalDefinition.Equals(genericTaskType)); 151return method.ReturnType.Equals(compilation.TaskType()) ||
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (3)
72if (current.Equals(outer)) 86.FirstOrDefault(s => symbol.Equals(s.GetOverriddenMember())); 470if (type.Equals(systemAttributeType))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IPropertySymbolExtensions.cs (1)
17.FirstOrDefault(f => property.Equals(f.AssociatedSymbol));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions_Accessibility.cs (1)
440if (current.Equals(originalContainingType))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (2)
162if (symbol.Equals(impl)) 885return symbol.GetAttributes().Any(static (attribute, attributeClass) => attributeClass.Equals(attribute.AttributeClass), attributeClass);
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (2)
422if (typeSymbol.OriginalDefinition.Equals(expressionOfT)) 608if (baseType.Equals(compilation.ExceptionType()))
src\roslyn\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\roslyn\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\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (2)
192=> symbol.Equals(symbol.ConstructedFrom); 195=> symbol.Equals(symbol.ConstructedFrom);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
592if (x.Equals(y))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (2)
168=> GetAttributes().WhereAsArray(a => a.AttributeClass.Equals(attributeType)); 171=> GetAttributes().WhereAsArray(a => a.AttributeConstructor.Equals(attributeConstructor));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (1)
265if (containedNamespace.Equals(symbol))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (1)
173=> arg.removeAttributeTypes.Any(attr => attr.Equals(a.AttributeClass)) ||
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IPropertySymbolExtensions.cs (1)
70=> arg.attributesToRemove.Any(attr => attr.Equals(a.AttributeClass)) ||
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
91.Single(m => containingType.Equals(m.Parameters.FirstOrDefault()?.Type));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (1)
148if (!throughMemberType.Equals(interfaceBeingImplemented))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\InitializeParameterHelpersCore.cs (2)
40parameter.Equals(parameterReference.Parameter); 150memberReference.Member.ContainingType.Equals(containingType))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SymbolFinder\SymbolFinderInternal.cs (1)
65symbol.ContainingAssembly.Equals(compilation.Assembly))
src\roslyn\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),
ILCompiler.Compiler (13)
src\runtime\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\runtime\src\tools\illink\src\ILLink.Shared\DataFlow\ForwardDataFlowAnalysis.cs (9)
259if (block.Equals(cfg.Entry)) 265bool isTryStart = isTryBlock && block.Equals(cfg.FirstBlock(tryOrCatchOrFilterRegion!)); 267bool isCatchStartWithoutFilter = isCatchBlock && block.Equals(cfg.FirstBlock(tryOrCatchOrFilterRegion!)) && !cfg.HasFilter(tryOrCatchOrFilterRegion!); 269bool isFilterStart = isFilterBlock && block.Equals(cfg.FirstBlock(tryOrCatchOrFilterRegion!)); 274bool isFinallyStart = isFinallyBlock && block.Equals(cfg.FirstBlock(finallyRegion!)); 377if (!changed && !newValue.Equals(state.Current)) 394if (!changed && !newValue.Equals(value)) 403if (exceptionState?.Value.Equals(oldExceptionState!.Value) == false) 440if (!changed && !finallyInputState.Equals(oldFinallyInputState))
src\runtime\src\tools\illink\src\ILLink.Shared\DataFlow\IControlFlowGraph.cs (1)
80if (!Source.Equals(other.Source))
illink (13)
ILLink.RoslynAnalyzer (14)
DataFlow\LocalStateAndContextLattice.cs (1)
24LocalState.Equals(other.LocalState) && Context.Equals(other.Context);
src\runtime\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\runtime\src\tools\illink\src\ILLink.Shared\DataFlow\ForwardDataFlowAnalysis.cs (9)
259if (block.Equals(cfg.Entry)) 265bool isTryStart = isTryBlock && block.Equals(cfg.FirstBlock(tryOrCatchOrFilterRegion!)); 267bool isCatchStartWithoutFilter = isCatchBlock && block.Equals(cfg.FirstBlock(tryOrCatchOrFilterRegion!)) && !cfg.HasFilter(tryOrCatchOrFilterRegion!); 269bool isFilterStart = isFilterBlock && block.Equals(cfg.FirstBlock(tryOrCatchOrFilterRegion!)); 274bool isFinallyStart = isFinallyBlock && block.Equals(cfg.FirstBlock(finallyRegion!)); 377if (!changed && !newValue.Equals(state.Current)) 394if (!changed && !newValue.Equals(value)) 403if (exceptionState?.Value.Equals(oldExceptionState!.Value) == false) 440if (!changed && !finallyInputState.Equals(oldFinallyInputState))
src\runtime\src\tools\illink\src\ILLink.Shared\DataFlow\IControlFlowGraph.cs (1)
80if (!Source.Equals(other.Source))
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)) 595userPasskey => userPasskey.UserId.Equals(userId) && userPasskey.CredentialId.SequenceEqual(credentialId), 654.Where(p => p.UserId.Equals(userId))
UserStore.cs (10)
327return Users.SingleOrDefaultAsync(u => u.Id.Equals(userId), cancellationToken); 340return UserLogins.SingleOrDefaultAsync(userLogin => userLogin.UserId.Equals(userId) && userLogin.LoginProvider == loginProvider && userLogin.ProviderKey == providerKey, cancellationToken); 416where userRole.UserId.Equals(userId) 456return await UserClaims.Where(uc => uc.UserId.Equals(user.Id)).Select(c => c.ToClaim()).ToListAsync(cancellationToken); 493var matchedClaims = await UserClaims.Where(uc => uc.UserId.Equals(user.Id) && uc.ClaimValue == claim.Value && uc.ClaimType == claim.Type).ToListAsync(cancellationToken); 515var matchedClaims = await UserClaims.Where(uc => uc.UserId.Equals(user.Id) && uc.ClaimValue == claim.Value && uc.ClaimType == claim.Type).ToListAsync(cancellationToken); 576return await UserLogins.Where(l => l.UserId.Equals(userId)) 661where userrole.RoleId.Equals(role.Id) 740userPasskey => userPasskey.UserId.Equals(userId) && userPasskey.CredentialId.SequenceEqual(credentialId), 799.Where(p => p.UserId.Equals(userId))
Microsoft.Build (1)
Collections\PropertyDictionary.cs (1)
301if (rightProp?.Equals(leftProp) != true)
Microsoft.Build.Tasks.Core (1)
RoslynCodeTaskFactory\RoslynCodeTaskFactoryTaskInfo.cs (1)
43/// <inheritdoc cref="IEquatable{T}.Equals(T)"/>
Microsoft.CodeAnalysis (24)
Compilation\Compilation.cs (2)
1709if (a.Equals(compilation.Assembly)) 1716if (a.Equals(compilation.GetAssemblyOrModuleSymbol(reference)))
DiagnosticAnalyzer\AnalyzerDriver.cs (1)
2976if (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)
3140((INamedTypeSymbol)operation.Target.Type!).TypeArguments[0].Equals(operation.Type)) 3350if (candidate.OriginalDefinition.Equals(method)) 4152if (!iDisposable.Equals(resource.Type) && disposeMethod is null) 4180((value.Type!.Equals(iDisposable) || (!value.Type.IsReferenceType && !ITypeSymbolHelpers.IsNullableType(value.Type))) && disposeArguments.IsDefaultOrEmpty)); 4224iDisposable.Equals(_compilation.CommonGetWellKnownType(WellKnownType.System_IAsyncDisposable)?.GetITypeSymbol())); 4328if (!objectType.Equals(lockedValue.Type)) 4491if (op is ILocalReferenceOperation l && l.Local.Equals(local)) 5676Debug.Assert(ITypeSymbolHelpers.GetNullableUnderlyingType(type).Equals(operand.Type));
Operations\OperationExtensions.cs (3)
382case ILoopOperation correspondingLoop when operation.Target.Equals(correspondingLoop.ExitLabel) || 383operation.Target.Equals(correspondingLoop.ContinueLabel): 385case 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 (73)
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\b310f676f7308b7f\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (1)
504Debug.Assert(localFunction.Equals(localFunction.OriginalDefinition));
src\roslyn\src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (1)
38if (generatedCodeAttribute.Equals(attribute.AttributeClass))
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (2)
393a.AttributeClass.Equals(wellKnownTypeProvider.GetOrCreateTypeByMetadataName(WellKnownTypeNames.SystemRuntimeCompilerServicesCompilerGeneratedAttribute)) || 394a.AttributeClass.Equals(wellKnownTypeProvider.GetOrCreateTypeByMetadataName(WellKnownTypeNames.SystemCodeDomCompilerGeneratedCodeAttribute))),
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\INamedTypeSymbolExtensions.cs (2)
52if (baseType.Equals(parentType)) 58if (type.OriginalDefinition.AllInterfaces.Any(baseInterface => baseInterface.OriginalDefinition.Equals(parentType)))
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (1)
334operation is ILocalFunctionOperation localFunction && localFunction.Symbol.OriginalDefinition.Equals(lambdaOrLocalFunction.OriginalDefinition));
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\IPropertySymbolExtensions.cs (1)
20=> propertySymbol.ContainingType.GetMembers().OfType<IFieldSymbol>().Any(f => f.IsImplicitlyDeclared && propertySymbol.Equals(f.AssociatedSymbol));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\CollectionExpressionUtilities.cs (4)
64if (namedType.OriginalDefinition.Equals(compilation.SpanOfTType()) || 65namedType.OriginalDefinition.Equals(compilation.ReadOnlySpanOfTType())) 74namedType.AllInterfaces.FirstOrDefault(i => i.OriginalDefinition.Equals(ienumerableOfTType)) ?? 75namedType.AllInterfaces.FirstOrDefault(i => i.OriginalDefinition.Equals(ienumerableType));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\KnownTypes.cs (4)
26if (returnType.Equals(this.TaskType)) 29if (returnType.Equals(this.ValueTaskType)) 32if (returnType.OriginalDefinition.Equals(this.TaskOfTType)) 35if (returnType.OriginalDefinition.Equals(this.ValueTaskOfTType))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
457notImplementedExceptionType.Equals(objectCreation.Type);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (1)
173return type.AllInterfaces.Any(static (i, enumerableType) => i.OriginalDefinition.Equals(enumerableType), enumerableType);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyleRules.cs (1)
95if (symbol.Equals(containingType.FindImplementationForInterfaceMember(implementedInterfaceMember)))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFactsExtensions.cs (1)
37!innerTypeInfo.Type.Equals(innerTypeInfo.ConvertedType))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BodyLevelSymbolKey.cs (1)
91if (possibleSymbol.symbol.Equals(symbol))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ErrorTypeSymbolKey.cs (1)
34var isConstructed = !symbol.Equals(symbol.ConstructedFrom);
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamedTypeSymbolKey.cs (1)
29symbol.Equals(symbol.ConstructedFrom) || symbol.IsUnboundGenericType ? [] : symbol.TypeArguments);
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
922if (symbol.Equals(overriddenMember)) 1006if (!newSymbol.Equals(implementationMember))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (1)
140dictionary[key] = existingArray.IsEmpty && value.Equals(defaultArray[0]) ? defaultArray : existingArray.Add(value);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IMethodSymbolExtensions.cs (3)
136methodSymbol.ReturnType.OriginalDefinition.Equals(taskType) || 137methodSymbol.ReturnType.OriginalDefinition.Equals(genericTaskType)); 151return method.ReturnType.Equals(compilation.TaskType()) ||
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (3)
72if (current.Equals(outer)) 86.FirstOrDefault(s => symbol.Equals(s.GetOverriddenMember())); 470if (type.Equals(systemAttributeType))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IPropertySymbolExtensions.cs (1)
17.FirstOrDefault(f => property.Equals(f.AssociatedSymbol));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions_Accessibility.cs (1)
440if (current.Equals(originalContainingType))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (2)
162if (symbol.Equals(impl)) 885return symbol.GetAttributes().Any(static (attribute, attributeClass) => attributeClass.Equals(attribute.AttributeClass), attributeClass);
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (2)
422if (typeSymbol.OriginalDefinition.Equals(expressionOfT)) 608if (baseType.Equals(compilation.ExceptionType()))
src\roslyn\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\roslyn\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\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (2)
192=> symbol.Equals(symbol.ConstructedFrom); 195=> symbol.Equals(symbol.ConstructedFrom);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
592if (x.Equals(y))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (2)
168=> GetAttributes().WhereAsArray(a => a.AttributeClass.Equals(attributeType)); 171=> GetAttributes().WhereAsArray(a => a.AttributeConstructor.Equals(attributeConstructor));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (1)
265if (containedNamespace.Equals(symbol))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (1)
173=> arg.removeAttributeTypes.Any(attr => attr.Equals(a.AttributeClass)) ||
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IPropertySymbolExtensions.cs (1)
70=> arg.attributesToRemove.Any(attr => attr.Equals(a.AttributeClass)) ||
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
91.Single(m => containingType.Equals(m.Parameters.FirstOrDefault()?.Type));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (1)
148if (!throughMemberType.Equals(interfaceBeingImplemented))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\InitializeParameterHelpersCore.cs (2)
40parameter.Equals(parameterReference.Parameter); 150memberReference.Member.ContainingType.Equals(containingType))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SymbolFinder\SymbolFinderInternal.cs (1)
65symbol.ContainingAssembly.Equals(compilation.Assembly))
src\roslyn\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 (62)
src\66dd3055a1c91c38\PointsToAnalysis.PointsToDataFlowOperationVisitor.cs (1)
994activatorType.Equals(method.ContainingType))
src\683181b2796de991\ParameterValidationAnalysis.ParameterValidationDataFlowOperationVisitor.cs (1)
128attr.AttributeClass.Equals(_notNullAttributeType)));
src\b310f676f7308b7f\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (1)
504Debug.Assert(localFunction.Equals(localFunction.OriginalDefinition));
src\roslyn\src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (1)
38if (generatedCodeAttribute.Equals(attribute.AttributeClass))
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (2)
393a.AttributeClass.Equals(wellKnownTypeProvider.GetOrCreateTypeByMetadataName(WellKnownTypeNames.SystemRuntimeCompilerServicesCompilerGeneratedAttribute)) || 394a.AttributeClass.Equals(wellKnownTypeProvider.GetOrCreateTypeByMetadataName(WellKnownTypeNames.SystemCodeDomCompilerGeneratedCodeAttribute))),
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\INamedTypeSymbolExtensions.cs (2)
52if (baseType.Equals(parentType)) 58if (type.OriginalDefinition.AllInterfaces.Any(baseInterface => baseInterface.OriginalDefinition.Equals(parentType)))
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (1)
334operation is ILocalFunctionOperation localFunction && localFunction.Symbol.OriginalDefinition.Equals(lambdaOrLocalFunction.OriginalDefinition));
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\IPropertySymbolExtensions.cs (1)
20=> propertySymbol.ContainingType.GetMembers().OfType<IFieldSymbol>().Any(f => f.IsImplicitlyDeclared && propertySymbol.Equals(f.AssociatedSymbol));
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AbstractDataFlowAnalysisContext.cs (1)
106if (localFunction.Equals(OwningSymbol))
src\roslyn\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\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (1)
3568if (OwningSymbol.Equals(forOwningSymbol))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\CollectionExpressionUtilities.cs (4)
64if (namedType.OriginalDefinition.Equals(compilation.SpanOfTType()) || 65namedType.OriginalDefinition.Equals(compilation.ReadOnlySpanOfTType())) 74namedType.AllInterfaces.FirstOrDefault(i => i.OriginalDefinition.Equals(ienumerableOfTType)) ?? 75namedType.AllInterfaces.FirstOrDefault(i => i.OriginalDefinition.Equals(ienumerableType));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\KnownTypes.cs (4)
26if (returnType.Equals(this.TaskType)) 29if (returnType.Equals(this.ValueTaskType)) 32if (returnType.OriginalDefinition.Equals(this.TaskOfTType)) 35if (returnType.OriginalDefinition.Equals(this.ValueTaskOfTType))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
457notImplementedExceptionType.Equals(objectCreation.Type);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (1)
173return type.AllInterfaces.Any(static (i, enumerableType) => i.OriginalDefinition.Equals(enumerableType), enumerableType);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyleRules.cs (1)
95if (symbol.Equals(containingType.FindImplementationForInterfaceMember(implementedInterfaceMember)))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFactsExtensions.cs (1)
37!innerTypeInfo.Type.Equals(innerTypeInfo.ConvertedType))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BodyLevelSymbolKey.cs (1)
91if (possibleSymbol.symbol.Equals(symbol))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ErrorTypeSymbolKey.cs (1)
34var isConstructed = !symbol.Equals(symbol.ConstructedFrom);
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamedTypeSymbolKey.cs (1)
29symbol.Equals(symbol.ConstructedFrom) || symbol.IsUnboundGenericType ? [] : symbol.TypeArguments);
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
922if (symbol.Equals(overriddenMember)) 1006if (!newSymbol.Equals(implementationMember))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (1)
140dictionary[key] = existingArray.IsEmpty && value.Equals(defaultArray[0]) ? defaultArray : existingArray.Add(value);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IMethodSymbolExtensions.cs (3)
136methodSymbol.ReturnType.OriginalDefinition.Equals(taskType) || 137methodSymbol.ReturnType.OriginalDefinition.Equals(genericTaskType)); 151return method.ReturnType.Equals(compilation.TaskType()) ||
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (3)
72if (current.Equals(outer)) 86.FirstOrDefault(s => symbol.Equals(s.GetOverriddenMember())); 470if (type.Equals(systemAttributeType))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IPropertySymbolExtensions.cs (1)
17.FirstOrDefault(f => property.Equals(f.AssociatedSymbol));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions_Accessibility.cs (1)
440if (current.Equals(originalContainingType))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (2)
162if (symbol.Equals(impl)) 885return symbol.GetAttributes().Any(static (attribute, attributeClass) => attributeClass.Equals(attribute.AttributeClass), attributeClass);
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (2)
422if (typeSymbol.OriginalDefinition.Equals(expressionOfT)) 608if (baseType.Equals(compilation.ExceptionType()))
src\roslyn\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\roslyn\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\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (2)
192=> symbol.Equals(symbol.ConstructedFrom); 195=> symbol.Equals(symbol.ConstructedFrom);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
592if (x.Equals(y))
Microsoft.CodeAnalysis.CodeStyle (73)
src\4f5ad909b1ed0e10\AbstractUseCoalesceExpressionForNullableTernaryConditionalCheckDiagnosticAnalyzer.cs (1)
115if (!nullableType.Equals(type.Type?.OriginalDefinition))
src\9547feb31df4cc5d\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (1)
274containingType.AllInterfaces.Any((@interface, marshaler) => @interface.Equals(marshaler), _iCustomMarshaler))
src\b310f676f7308b7f\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (1)
504Debug.Assert(localFunction.Equals(localFunction.OriginalDefinition));
src\roslyn\src\Analyzers\Core\Analyzers\Helpers\DeserializationConstructorCheck.cs (2)
19methodSymbol.Parameters[0].Type.Equals(_serializationInfoType) && 20methodSymbol.Parameters[1].Type.Equals(_streamingContextType) &&
src\roslyn\src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.cs (1)
205=> Unwrap(value) is ILocalReferenceOperation localReference && accumulatorVariable.Equals(localReference.Local);
src\roslyn\src\Analyzers\Core\Analyzers\MakeFieldReadonly\AbstractMakeFieldReadonlyDiagnosticAnalyzer.cs (1)
281if (!field.ContainingType.Equals(owningSymbol.ContainingType))
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
848if (suppressMessageAttributeType.Equals(attribute.AttributeClass) &&
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\SuppressMessageAttributeState.cs (1)
60_suppressMessageAttributeType.Equals(propertyReference.Property.ContainingType))
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
966methodSymbol.Parameters[0].Type.Equals(memberSymbol.ContainingType))
src\roslyn\src\Analyzers\Core\Analyzers\SimplifyInterpolation\AbstractSimplifyInterpolationDiagnosticAnalyzer.cs (3)
64(convertedType.Equals(formattableStringType) || convertedType.Equals(iFormattableType))) 71invocation.TargetMethod.ContainingType.Equals(formattableStringType);
src\roslyn\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\roslyn\src\Analyzers\Core\Analyzers\UseCollectionInitializer\UpdateExpressionState.cs (2)
111InitializedSymbol.Equals( 272useSpread = parameter.Type.Equals(convertedType);
src\roslyn\src\Analyzers\Core\Analyzers\UseExplicitTupleName\UseExplicitTupleNameDiagnosticAnalyzer.cs (2)
52if (field.CorrespondingTupleField?.Equals(field) == true) 84unnamedField.Equals(fieldSymbol.CorrespondingTupleField) &&
src\roslyn\src\Analyzers\Core\Analyzers\UseIsNullCheck\AbstractUseIsNullForReferenceEqualsDiagnosticAnalyzer.cs (1)
102if (!referenceEqualsMethod.Equals(symbol))
src\roslyn\src\Analyzers\Core\Analyzers\UseNullPropagation\AbstractUseNullPropagationDiagnosticAnalyzer.cs (1)
377return referenceEqualsMethod.Equals(symbol);
src\roslyn\src\Analyzers\Core\Analyzers\ValidateFormatString\AbstractValidateFormatStringDiagnosticAnalyzer.cs (1)
139var hasIFormatProvider = parameters[0].Type.Equals(formatProviderType);
src\roslyn\src\Compilers\Core\Portable\DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (2)
765if (boundReturnType != null && methodSymbol.ReturnType.Equals(boundReturnType)) 803return parameterType != null && symbol.Type.Equals(parameterType);
src\roslyn\src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (1)
38if (generatedCodeAttribute.Equals(attribute.AttributeClass))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\CollectionExpressionUtilities.cs (4)
64if (namedType.OriginalDefinition.Equals(compilation.SpanOfTType()) || 65namedType.OriginalDefinition.Equals(compilation.ReadOnlySpanOfTType())) 74namedType.AllInterfaces.FirstOrDefault(i => i.OriginalDefinition.Equals(ienumerableOfTType)) ?? 75namedType.AllInterfaces.FirstOrDefault(i => i.OriginalDefinition.Equals(ienumerableType));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\KnownTypes.cs (4)
26if (returnType.Equals(this.TaskType)) 29if (returnType.Equals(this.ValueTaskType)) 32if (returnType.OriginalDefinition.Equals(this.TaskOfTType)) 35if (returnType.OriginalDefinition.Equals(this.ValueTaskOfTType))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
457notImplementedExceptionType.Equals(objectCreation.Type);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (1)
173return type.AllInterfaces.Any(static (i, enumerableType) => i.OriginalDefinition.Equals(enumerableType), enumerableType);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyleRules.cs (1)
95if (symbol.Equals(containingType.FindImplementationForInterfaceMember(implementedInterfaceMember)))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFactsExtensions.cs (1)
37!innerTypeInfo.Type.Equals(innerTypeInfo.ConvertedType))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BodyLevelSymbolKey.cs (1)
91if (possibleSymbol.symbol.Equals(symbol))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ErrorTypeSymbolKey.cs (1)
34var isConstructed = !symbol.Equals(symbol.ConstructedFrom);
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamedTypeSymbolKey.cs (1)
29symbol.Equals(symbol.ConstructedFrom) || symbol.IsUnboundGenericType ? [] : symbol.TypeArguments);
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
922if (symbol.Equals(overriddenMember)) 1006if (!newSymbol.Equals(implementationMember))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (1)
140dictionary[key] = existingArray.IsEmpty && value.Equals(defaultArray[0]) ? defaultArray : existingArray.Add(value);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IMethodSymbolExtensions.cs (3)
136methodSymbol.ReturnType.OriginalDefinition.Equals(taskType) || 137methodSymbol.ReturnType.OriginalDefinition.Equals(genericTaskType)); 151return method.ReturnType.Equals(compilation.TaskType()) ||
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (3)
72if (current.Equals(outer)) 86.FirstOrDefault(s => symbol.Equals(s.GetOverriddenMember())); 470if (type.Equals(systemAttributeType))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IPropertySymbolExtensions.cs (1)
17.FirstOrDefault(f => property.Equals(f.AssociatedSymbol));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions_Accessibility.cs (1)
440if (current.Equals(originalContainingType))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (2)
162if (symbol.Equals(impl)) 885return symbol.GetAttributes().Any(static (attribute, attributeClass) => attributeClass.Equals(attribute.AttributeClass), attributeClass);
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (2)
422if (typeSymbol.OriginalDefinition.Equals(expressionOfT)) 608if (baseType.Equals(compilation.ExceptionType()))
src\roslyn\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\roslyn\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\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (2)
192=> symbol.Equals(symbol.ConstructedFrom); 195=> symbol.Equals(symbol.ConstructedFrom);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
592if (x.Equals(y))
Microsoft.CodeAnalysis.CodeStyle.Fixes (35)
src\roslyn\src\Analyzers\Core\CodeFixes\AddExplicitCast\InheritanceDistanceComparer.cs (1)
63if (derivedType.Equals(baseType))
src\roslyn\src\Analyzers\Core\CodeFixes\AddParameter\AbstractAddParameterCodeFixProvider.cs (2)
540if (parameterType.Equals(argumentTypeInfo.Type) || parameterType.Equals(argumentTypeInfo.ConvertedType))
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.cs (3)
56if (currentConstructor.Equals(delegatedConstructor)) 60if (!delegatedConstructor.ContainingType.Equals(currentConstructor.ContainingType)) 73if (currentDelegatedConstructor.Equals(currentConstructor))
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (2)
222if (TypeToGenerateIn.Equals(constructor.ContainingType) && 430var isThis = _delegatedConstructor.ContainingType.OriginalDefinition.Equals(TypeToGenerateIn.OriginalDefinition);
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateConstructor\GenerateConstructorHelpers.cs (1)
272let ignoreAccessibility = t.Equals(typeToGenerateIn)
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.State.cs (2)
386symbol.ContainingType.Equals(ContainingType)) 500if (!ContainingType.OriginalDefinition.Equals(TypeToGenerateIn.OriginalDefinition))
src\roslyn\src\Analyzers\Core\CodeFixes\ImplementInterface\AbstractImplementInterfaceService.cs (1)
285if (!typeA.Equals(typeB))
src\roslyn\src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementHelpers.cs (1)
237if (!unimplementedMembers.Any(static (m, idisposableType) => m.type.Equals(idisposableType), idisposableType))
src\roslyn\src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_DisposePattern.cs (1)
54unimplementedMembers.WhereAsArray(m => !m.type.Equals(disposeMethod.ContainingType)),
src\roslyn\src\Analyzers\Core\CodeFixes\RemoveAsyncModifier\AbstractRemoveAsyncModifierCodeFixProvider.cs (6)
99|| returnType.OriginalDefinition.Equals(knownTypes.TaskOfTType) 100|| returnType.OriginalDefinition.Equals(knownTypes.ValueTaskOfTType); 103=> returnType.OriginalDefinition.Equals(knownTypes.TaskType) 104|| returnType.OriginalDefinition.Equals(knownTypes.ValueTaskType); 206if (returnType.OriginalDefinition.Equals(knownTypes.TaskType)) 222if (returnType.OriginalDefinition.Equals(knownTypes.TaskOfTType))
src\roslyn\src\Analyzers\Core\CodeFixes\UseAutoProperty\AbstractUseAutoPropertyCodeFixProvider.cs (1)
351if (symbols.Length > 0 && symbols.All(s => !s.OriginalDefinition.Equals(property.OriginalDefinition)))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (2)
168=> GetAttributes().WhereAsArray(a => a.AttributeClass.Equals(attributeType)); 171=> GetAttributes().WhereAsArray(a => a.AttributeConstructor.Equals(attributeConstructor));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (1)
265if (containedNamespace.Equals(symbol))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (1)
173=> arg.removeAttributeTypes.Any(attr => attr.Equals(a.AttributeClass)) ||
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IPropertySymbolExtensions.cs (1)
70=> arg.attributesToRemove.Any(attr => attr.Equals(a.AttributeClass)) ||
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
91.Single(m => containingType.Equals(m.Parameters.FirstOrDefault()?.Type));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (1)
148if (!throughMemberType.Equals(interfaceBeingImplemented))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\InitializeParameterHelpersCore.cs (2)
40parameter.Equals(parameterReference.Parameter); 150memberReference.Member.ContainingType.Equals(containingType))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SymbolFinder\SymbolFinderInternal.cs (1)
65symbol.ContainingAssembly.Equals(compilation.Assembly))
src\roslyn\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 (2)
SymbolDisplay\SymbolDisplayVisitor_Minimal.cs (2)
38if ((object?)boundAlias != null && alias.Target.Equals(symbol)) 84!firstSymbol.Equals(symbol))
Microsoft.CodeAnalysis.CSharp.Analyzers (1)
MetaAnalyzers\CSharpSemanticModelGetDeclaredSymbolAlwaysReturnsNullAnalyzer.cs (1)
84if (syntaxNodeDerivingType is null || syntaxNodeDerivingType.Equals(syntaxNodeType))
Microsoft.CodeAnalysis.CSharp.CodeStyle (62)
src\roslyn\src\Analyzers\CSharp\Analyzers\ConvertProgram\ConvertProgramAnalysis_TopLevelStatements.cs (1)
82if (!entryPointMethod.Equals(thisMethod))
src\roslyn\src\Analyzers\CSharp\Analyzers\InlineDeclaration\CSharpInlineDeclarationDiagnosticAnalyzer.cs (1)
365if (outSymbol.Equals(symbol))
src\roslyn\src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
390if (methodReference.Equals(owningMethod))
src\roslyn\src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryLambdaExpression\CSharpRemoveUnnecessaryLambdaExpressionDiagnosticAnalyzer.cs (1)
213!invokedMethod.Equals(rewrittenMethod))
src\roslyn\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\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForNewDiagnosticAnalyzer.cs (1)
85addParameter.Type.Equals(constructorParameterTypeArg)))
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (19)
131!originalTypeInfo.Type.Equals(originalTypeInfo.ConvertedType) && 181if (!originalTypeInfo.ConvertedType.Equals(replacedTypeInfo.ConvertedType) && 200convertedType.OriginalDefinition.Equals(compilation.ReadOnlySpanOfTType()); 204convertedType.OriginalDefinition.Equals(compilation.SpanOfTType()); 213type.OriginalDefinition.Equals(compilation.SpanOfTType()) && 214convertedType.GetTypeArguments()[0].Equals(type.GetTypeArguments()[0]); 227arrayType.ElementType.Equals(convertedType.GetTypeArguments()[0])) 278if (type.AllInterfaces.Any(t => t.OriginalDefinition.Equals(isetType) || t.OriginalDefinition.Equals(ireadOnlySetType))) 527if (!local.Equals(symbol)) 845i => localSymbol.Equals(semanticModel.GetSymbolInfo(i, cancellationToken).GetAnySymbol()))) 911if (!factoryType.OriginalDefinition.Equals(collectionBuilderType.OriginalDefinition)) 953enumerableType.OriginalDefinition.Equals(compilation.IEnumerableOfTType()) && 1001if (spanType.OriginalDefinition.Equals(compilation.SpanOfTType()) || 1002spanType.OriginalDefinition.Equals(compilation.ReadOnlySpanOfTType())) 1070type.Equals(compilation.SpanOfTType()) || 1071type.Equals(compilation.ReadOnlySpanOfTType()); 1078if (type.OriginalDefinition.Equals(interfaceType)) 1083if (interfaceType.Equals(baseInterface.OriginalDefinition))
src\roslyn\src\Analyzers\CSharp\Analyzers\UseDeconstruction\CSharpUseDeconstructionDiagnosticAnalyzer.cs (1)
254if (local.Equals(symbol))
src\roslyn\src\Analyzers\CSharp\Analyzers\UseImplicitObjectCreation\CSharpUseImplicitObjectCreationDiagnosticAnalyzer.cs (2)
157if (leftType.OriginalDefinition.Equals(compilation.TaskOfTType()) || 158leftType.OriginalDefinition.Equals(compilation.ValueTaskOfTType()))
src\roslyn\src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseRangeOperatorDiagnosticAnalyzer.InfoCache.cs (1)
148if (sliceLikeMethod.ReturnType.Equals(containingType))
src\roslyn\src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\Helpers.cs (5)
46lengthLikeProperty.Equals(propertyRef.Property) && 133returnType.Equals(p.Type) && 135p.Parameters[0].Type.Equals(parameterType)) 150m.Parameters[0].Type.Equals(parameterType) && 151m.ReturnType.Equals(method.ReturnType))
src\roslyn\src\Analyzers\CSharp\Analyzers\UseLocalFunction\CSharpUseLocalFunctionDiagnosticAnalyzer.cs (2)
263local.Equals(semanticModel.GetSymbolInfo(identifierName, cancellationToken).GetAnySymbol())) 418if (localEnclosingSymbol.Equals(delegateContainingType))
src\roslyn\src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.Analyzer.cs (1)
376_localSymbol.Equals(_semanticModel.GetSymbolInfo(identifierName, _cancellationToken).Symbol))
src\roslyn\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\roslyn\src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpIsAndCastCheckDiagnosticAnalyzer.cs (1)
126if (!localSymbol.Type.Equals(isType))
src\roslyn\src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
102if (!namedType.Equals(member.ContainingType))
src\roslyn\src\Analyzers\CSharp\Analyzers\UseSimpleUsingStatement\UseSimpleUsingStatementDiagnosticAnalyzer.cs (1)
173symbols.Any(otherLocal => !local.Equals(otherLocal)), symbolNameToExistingSymbol);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\TypeStyle\TypeStyleHelper.cs (2)
147if (UnwrapTupleType(containingType).Equals(returnType)) 159containingType.ContainingNamespace.Equals(returnType.ContainingNamespace))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\DefaultExpressionSyntaxExtensions.cs (1)
55if (entityType != null && entityType.Equals(defaultType))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (2)
1043if (collectionTargetType.OriginalDefinition.Equals(ienumerableType)) 1048if (iface.OriginalDefinition.Equals(ienumerableType))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (2)
786if (expressionType.Equals(typeInfo.ConvertedType?.OriginalDefinition)) 814expressionType.Equals(parameterType))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (6)
545if (originalConvertedType.Equals(rewrittenConvertedType)) 705namedCastedType.OriginalDefinition.Equals(originalSemanticModel.Compilation.ListOfTType())) 1041if (!rewrittenConditionalConvertedType.Equals(conversionOperation.Type)) 1130type.Equals(parameters[0].Type) && 1131type.Equals(parameters[1].Type)) 1152if (!type1.Equals(type2))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpUseImplicitTypeHelper.cs (3)
227return valueType.Equals(parameterType); 297return declaredType != null && declaredType.Equals(initializerType); 305return declaredType.Equals(initializerType) &&
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (58)
src\4f0789c9734b88bf\CSharpInitializeParameterService.cs (1)
88if (tupleRight.Elements[i] is IParameterReferenceOperation parameterReference && sibling.Equals(parameterReference.Parameter) &&
src\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (3)
149.First(info => info.Symbol.Equals(symbol))); 162parameterType.Equals(type)) 290=> iEquatable.Equals(semanticModel.GetTypeInfo(baseItem.Type, cancellationToken).Type));
src\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (19)
50&& param.Equals(methodSymbol.Parameters.First())) 71return containingType.Interfaces.FirstOrDefault(iface => iface.Equals(equatable)); 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)) && 857matchedType.Equals(currentObject.GetSymbolType()) && 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\roslyn\src\Analyzers\CSharp\CodeFixes\DisambiguateSameVariable\CSharpDisambiguateSameVariableCodeFixProvider.cs (2)
82Debug.Assert(leftSymbol.Equals(rightSymbol)); 110where !m.Equals(leftSymbol)
src\roslyn\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\roslyn\src\Analyzers\CSharp\CodeFixes\MakeMethodAsynchronous\CSharpMakeMethodAsynchronousCodeFixProvider.cs (4)
181=> returnType.OriginalDefinition.Equals(knownTypes.IAsyncEnumerableOfTType) || 182returnType.OriginalDefinition.Equals(knownTypes.IAsyncEnumeratorOfTType); 185=> returnType.OriginalDefinition.Equals(knownTypes.IEnumerableOfTType); 188=> returnType.OriginalDefinition.Equals(knownTypes.IEnumeratorOfTType);
src\roslyn\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\roslyn\src\Analyzers\CSharp\CodeFixes\ReplaceDefaultLiteral\CSharpReplaceDefaultLiteralCodeFixProvider.cs (1)
92else if (type.Equals(semanticModel.Compilation.GetTypeByMetadataName(typeof(CancellationToken).FullName!)))
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseCoalesceExpression\CSharpUseCoalesceExpressionForIfNullStatementCheckCodeFixProvider.cs (1)
33if (leftPartTypeSymbol.Equals(rightPartTypeSymbol))
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseExplicitArrayInExpressionTree\CSharpUseExplicitArrayInExpressionTreeCodeFixProvider.cs (2)
68if (originalParamsParameter.Equals(parameter)) 86if (!originalParameter.Type.Equals(currentParameter.Type))
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseExpressionBodyForLambda\UseExpressionBodyForLambdaCodeActionHelpers.cs (1)
103if (returnType.Equals(taskType))
src\roslyn\src\Analyzers\CSharp\CodeFixes\UsePatternCombinators\CSharpUsePatternCombinatorsCodeFixProvider.cs (1)
140if (governingType != null && !governingType.Equals(type))
src\roslyn\src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider.cs (1)
321namedType.Equals(containingType) ? CreateDottedName(originalName, currentName, containingType) : currentName,
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseUtf8StringLiteral\UseUtf8StringLiteralCodeFixProvider.cs (1)
65namedType.OriginalDefinition.Equals(readOnlySpanType) &&
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (2)
274var stringValue = negative && nonNegativeValue.Equals(value) 291if (constant.Key.Equals(value))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\FieldGenerator.cs (1)
114var canUseFieldReference = field.Type != null && !field.Type.Equals(field.ContainingType);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
121if (!targetType.Equals(type))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (2)
96while (arrayType != null && !arrayType.Equals(underlyingType)) 187if (symbol.IsTupleType && symbol.TupleUnderlyingType != null && !symbol.Equals(symbol.TupleUnderlyingType))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (5)
2084if (type.OriginalDefinition.Equals(this.Compilation.TaskOfTType()) || type.OriginalDefinition.Equals(this.Compilation.ValueTaskOfTType())) 2090if (type.OriginalDefinition.Equals(this.Compilation.TaskType()) || type.OriginalDefinition.Equals(this.Compilation.ValueTaskType())) 2303if (symbol.Equals(descendantSymbol))
Microsoft.CodeAnalysis.CSharp.Features (106)
Completion\CompletionProviders\AwaitCompletionProvider.cs (2)
95returnType.OriginalDefinition.Equals(taskLikeTypes.IAsyncEnumerableOfTType) || 96returnType.OriginalDefinition.Equals(taskLikeTypes.IAsyncEnumeratorOfTType))
Completion\CompletionProviders\EnumAndCompletionListTagCompletionProvider.cs (2)
286type.Equals(containingType.EnumUnderlyingType)) 296containingType.Equals(symbol.ContainingType))
ConvertPrimaryToRegularConstructor\ConvertPrimaryToRegularConstructorCodeRefactoringProvider.cs (2)
509namedType.Equals(semanticModel.GetSymbolInfo(memberAccessExpression.Expression).Symbol)) 514namedType.Equals(semanticModel.GetSymbolInfo(qualifiedName.Left).Symbol))
Copilot\CSharpImplementNotImplementedExceptionDiagnosticAnalyzer.cs (1)
60notImplementedExceptionType.Equals(constructedType))
DocumentHighlighting\CSharpDocumentHighlightsService.cs (1)
68if (originalSymbol.Equals(boundSymbol))
ImplementInterface\AbstractChangeImplementationCodeRefactoringProvider.cs (1)
199containingType.Equals(impl.ContainingType) &&
IntroduceVariable\CSharpIntroduceVariableService_IntroduceLocal.cs (2)
164if ((compilation.TaskType() != null && delegateReturnType.Equals(compilation.TaskType())) || 165(compilation.ValueTaskType() != null && delegateReturnType.Equals(compilation.ValueTaskType())))
ReplaceMethodWithProperty\CSharpReplaceMethodWithPropertyService.cs (1)
297if (_parameter.Equals(_semanticModel.GetSymbolInfo(node).Symbol))
SignatureHelp\ConstructorInitializerSignatureHelpProvider.cs (1)
85.WhereAsArray(c => c.IsAccessibleWithin(within) && !c.Equals(currentConstructor))
SignatureHelp\InvocationExpressionSignatureHelpProviderBase_DelegateAndFunctionPointerInvoke.cs (1)
31!expressionSymbol.ContainingType.OriginalDefinition.Equals(within.OriginalDefinition))
src\roslyn\src\Analyzers\CSharp\Analyzers\ConvertProgram\ConvertProgramAnalysis_TopLevelStatements.cs (1)
82if (!entryPointMethod.Equals(thisMethod))
src\roslyn\src\Analyzers\CSharp\Analyzers\InlineDeclaration\CSharpInlineDeclarationDiagnosticAnalyzer.cs (1)
365if (outSymbol.Equals(symbol))
src\roslyn\src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
390if (methodReference.Equals(owningMethod))
src\roslyn\src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryLambdaExpression\CSharpRemoveUnnecessaryLambdaExpressionDiagnosticAnalyzer.cs (1)
213!invokedMethod.Equals(rewrittenMethod))
src\roslyn\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\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForNewDiagnosticAnalyzer.cs (1)
85addParameter.Type.Equals(constructorParameterTypeArg)))
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (19)
131!originalTypeInfo.Type.Equals(originalTypeInfo.ConvertedType) && 181if (!originalTypeInfo.ConvertedType.Equals(replacedTypeInfo.ConvertedType) && 200convertedType.OriginalDefinition.Equals(compilation.ReadOnlySpanOfTType()); 204convertedType.OriginalDefinition.Equals(compilation.SpanOfTType()); 213type.OriginalDefinition.Equals(compilation.SpanOfTType()) && 214convertedType.GetTypeArguments()[0].Equals(type.GetTypeArguments()[0]); 227arrayType.ElementType.Equals(convertedType.GetTypeArguments()[0])) 278if (type.AllInterfaces.Any(t => t.OriginalDefinition.Equals(isetType) || t.OriginalDefinition.Equals(ireadOnlySetType))) 527if (!local.Equals(symbol)) 845i => localSymbol.Equals(semanticModel.GetSymbolInfo(i, cancellationToken).GetAnySymbol()))) 911if (!factoryType.OriginalDefinition.Equals(collectionBuilderType.OriginalDefinition)) 953enumerableType.OriginalDefinition.Equals(compilation.IEnumerableOfTType()) && 1001if (spanType.OriginalDefinition.Equals(compilation.SpanOfTType()) || 1002spanType.OriginalDefinition.Equals(compilation.ReadOnlySpanOfTType())) 1070type.Equals(compilation.SpanOfTType()) || 1071type.Equals(compilation.ReadOnlySpanOfTType()); 1078if (type.OriginalDefinition.Equals(interfaceType)) 1083if (interfaceType.Equals(baseInterface.OriginalDefinition))
src\roslyn\src\Analyzers\CSharp\Analyzers\UseDeconstruction\CSharpUseDeconstructionDiagnosticAnalyzer.cs (1)
254if (local.Equals(symbol))
src\roslyn\src\Analyzers\CSharp\Analyzers\UseImplicitObjectCreation\CSharpUseImplicitObjectCreationDiagnosticAnalyzer.cs (2)
157if (leftType.OriginalDefinition.Equals(compilation.TaskOfTType()) || 158leftType.OriginalDefinition.Equals(compilation.ValueTaskOfTType()))
src\roslyn\src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseRangeOperatorDiagnosticAnalyzer.InfoCache.cs (1)
148if (sliceLikeMethod.ReturnType.Equals(containingType))
src\roslyn\src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\Helpers.cs (5)
46lengthLikeProperty.Equals(propertyRef.Property) && 133returnType.Equals(p.Type) && 135p.Parameters[0].Type.Equals(parameterType)) 150m.Parameters[0].Type.Equals(parameterType) && 151m.ReturnType.Equals(method.ReturnType))
src\roslyn\src\Analyzers\CSharp\Analyzers\UseLocalFunction\CSharpUseLocalFunctionDiagnosticAnalyzer.cs (2)
263local.Equals(semanticModel.GetSymbolInfo(identifierName, cancellationToken).GetAnySymbol())) 418if (localEnclosingSymbol.Equals(delegateContainingType))
src\roslyn\src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.Analyzer.cs (1)
376_localSymbol.Equals(_semanticModel.GetSymbolInfo(identifierName, _cancellationToken).Symbol))
src\roslyn\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\roslyn\src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpIsAndCastCheckDiagnosticAnalyzer.cs (1)
126if (!localSymbol.Type.Equals(isType))
src\roslyn\src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
102if (!namedType.Equals(member.ContainingType))
src\roslyn\src\Analyzers\CSharp\Analyzers\UseSimpleUsingStatement\UseSimpleUsingStatementDiagnosticAnalyzer.cs (1)
173symbols.Any(otherLocal => !local.Equals(otherLocal)), symbolNameToExistingSymbol);
src\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (3)
149.First(info => info.Symbol.Equals(symbol))); 162parameterType.Equals(type)) 290=> iEquatable.Equals(semanticModel.GetTypeInfo(baseItem.Type, cancellationToken).Type));
src\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (19)
50&& param.Equals(methodSymbol.Parameters.First())) 71return containingType.Interfaces.FirstOrDefault(iface => iface.Equals(equatable)); 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)) && 857matchedType.Equals(currentObject.GetSymbolType()) && 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\roslyn\src\Analyzers\CSharp\CodeFixes\DisambiguateSameVariable\CSharpDisambiguateSameVariableCodeFixProvider.cs (2)
82Debug.Assert(leftSymbol.Equals(rightSymbol)); 110where !m.Equals(leftSymbol)
src\roslyn\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\roslyn\src\Analyzers\CSharp\CodeFixes\MakeMethodAsynchronous\CSharpMakeMethodAsynchronousCodeFixProvider.cs (4)
181=> returnType.OriginalDefinition.Equals(knownTypes.IAsyncEnumerableOfTType) || 182returnType.OriginalDefinition.Equals(knownTypes.IAsyncEnumeratorOfTType); 185=> returnType.OriginalDefinition.Equals(knownTypes.IEnumerableOfTType); 188=> returnType.OriginalDefinition.Equals(knownTypes.IEnumeratorOfTType);
src\roslyn\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\roslyn\src\Analyzers\CSharp\CodeFixes\ReplaceDefaultLiteral\CSharpReplaceDefaultLiteralCodeFixProvider.cs (1)
92else if (type.Equals(semanticModel.Compilation.GetTypeByMetadataName(typeof(CancellationToken).FullName!)))
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseCoalesceExpression\CSharpUseCoalesceExpressionForIfNullStatementCheckCodeFixProvider.cs (1)
33if (leftPartTypeSymbol.Equals(rightPartTypeSymbol))
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseExplicitArrayInExpressionTree\CSharpUseExplicitArrayInExpressionTreeCodeFixProvider.cs (2)
68if (originalParamsParameter.Equals(parameter)) 86if (!originalParameter.Type.Equals(currentParameter.Type))
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseExpressionBodyForLambda\UseExpressionBodyForLambdaCodeActionHelpers.cs (1)
103if (returnType.Equals(taskType))
src\roslyn\src\Analyzers\CSharp\CodeFixes\UsePatternCombinators\CSharpUsePatternCombinatorsCodeFixProvider.cs (1)
140if (governingType != null && !governingType.Equals(type))
src\roslyn\src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider.cs (1)
321namedType.Equals(containingType) ? CreateDottedName(originalName, currentName, containingType) : currentName,
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseUtf8StringLiteral\UseUtf8StringLiteralCodeFixProvider.cs (1)
65namedType.OriginalDefinition.Equals(readOnlySpanType) &&
Microsoft.CodeAnalysis.CSharp.NetAnalyzers (2)
Microsoft.NetCore.Analyzers\Runtime\CSharpForwardCancellationTokenToInvocations.Analyzer.cs (1)
37(a.IsImplicit && a.Parameter != null && !a.Parameter.Type.Equals(cancellationTokenType)) ||
Microsoft.NetCore.Analyzers\Runtime\CSharpForwardCancellationTokenToInvocationsFixer.TypeNameVisitor.cs (1)
121if (symbol.IsTupleType && symbol.TupleUnderlyingType != null && !symbol.Equals(symbol.TupleUnderlyingType))
Microsoft.CodeAnalysis.CSharp.Workspaces (39)
Recommendations\CSharpRecommendationServiceRunner_Conversions.cs (1)
172if (!type.Equals(method.Parameters[0].Type))
Recommendations\CSharpRecommendationServiceRunner.cs (1)
904var useBaseReferenceAccessibility = symbol is IParameterSymbol { IsThis: true } p && !p.Type.Equals(containerType);
Rename\CSharpRenameRewriterLanguageService.cs (1)
1012.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)
425!containingType.Equals(leftSymbol))
src\4f0789c9734b88bf\CSharpInitializeParameterService.cs (1)
88if (tupleRight.Elements[i] is IParameterReferenceOperation parameterReference && sibling.Equals(parameterReference.Parameter) &&
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\TypeStyle\TypeStyleHelper.cs (2)
147if (UnwrapTupleType(containingType).Equals(returnType)) 159containingType.ContainingNamespace.Equals(returnType.ContainingNamespace))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\DefaultExpressionSyntaxExtensions.cs (1)
55if (entityType != null && entityType.Equals(defaultType))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (2)
1043if (collectionTargetType.OriginalDefinition.Equals(ienumerableType)) 1048if (iface.OriginalDefinition.Equals(ienumerableType))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (2)
786if (expressionType.Equals(typeInfo.ConvertedType?.OriginalDefinition)) 814expressionType.Equals(parameterType))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (6)
545if (originalConvertedType.Equals(rewrittenConvertedType)) 705namedCastedType.OriginalDefinition.Equals(originalSemanticModel.Compilation.ListOfTType())) 1041if (!rewrittenConditionalConvertedType.Equals(conversionOperation.Type)) 1130type.Equals(parameters[0].Type) && 1131type.Equals(parameters[1].Type)) 1152if (!type1.Equals(type2))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpUseImplicitTypeHelper.cs (3)
227return valueType.Equals(parameterType); 297return declaredType != null && declaredType.Equals(initializerType); 305return declaredType.Equals(initializerType) &&
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (2)
274var stringValue = negative && nonNegativeValue.Equals(value) 291if (constant.Key.Equals(value))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\FieldGenerator.cs (1)
114var canUseFieldReference = field.Type != null && !field.Type.Equals(field.ContainingType);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
121if (!targetType.Equals(type))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (2)
96while (arrayType != null && !arrayType.Equals(underlyingType)) 187if (symbol.IsTupleType && symbol.TupleUnderlyingType != null && !symbol.Equals(symbol.TupleUnderlyingType))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (5)
2084if (type.OriginalDefinition.Equals(this.Compilation.TaskOfTType()) || type.OriginalDefinition.Equals(this.Compilation.ValueTaskOfTType())) 2090if (type.OriginalDefinition.Equals(this.Compilation.TaskType()) || type.OriginalDefinition.Equals(this.Compilation.ValueTaskType())) 2303if (symbol.Equals(descendantSymbol))
Microsoft.CodeAnalysis.Extensions.Package (23)
Symbols\IMethodSymbolExtensions.cs (3)
136methodSymbol.ReturnType.OriginalDefinition.Equals(taskType) || 137methodSymbol.ReturnType.OriginalDefinition.Equals(genericTaskType)); 151return method.ReturnType.Equals(compilation.TaskType()) ||
Symbols\INamedTypeSymbolExtensions.cs (3)
72if (current.Equals(outer)) 86.FirstOrDefault(s => symbol.Equals(s.GetOverriddenMember())); 470if (type.Equals(systemAttributeType))
Symbols\IPropertySymbolExtensions.cs (1)
17.FirstOrDefault(f => property.Equals(f.AssociatedSymbol));
Symbols\ISymbolExtensions_Accessibility.cs (1)
440if (current.Equals(originalContainingType))
Symbols\ISymbolExtensions.cs (2)
162if (symbol.Equals(impl)) 885return symbol.GetAttributes().Any(static (attribute, attributeClass) => attributeClass.Equals(attribute.AttributeClass), attributeClass);
Symbols\ITypeSymbolExtensions.AnonymousTypeRemover.cs (2)
26if (elementType != null && elementType.Equals(symbol.ElementType)) 57if (elementType != null && elementType.Equals(symbol.PointedAtType))
Symbols\ITypeSymbolExtensions.cs (2)
422if (typeSymbol.OriginalDefinition.Equals(expressionOfT)) 608if (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 (95)
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)
513.Where(refSymbol => refSymbol.Definition.Equals(symbol))
Completion\Providers\AbstractAwaitCompletionProvider.cs (4)
72originalDefinition.Equals(compilation.TaskOfTType()) || 73originalDefinition.Equals(compilation.TaskType()) || 74originalDefinition.Equals(compilation.ValueTaskOfTType()) || 75originalDefinition.Equals(compilation.ValueTaskType());
Completion\Providers\AbstractInternalsVisibleToCompletionProvider.cs (1)
130return type.Equals(internalsVisibleToAttributeSymbol);
Completion\Providers\AbstractRecommendationServiceBasedCompletionProvider.cs (3)
50s => new SymbolAndSelectionInfo(Symbol: s, Preselect: s.OriginalDefinition.Equals(taskType))); 126return namedType.Equals(compilation.IAsyncEnumerableOfTType()) || 127namedType.Equals(compilation.IAsyncEnumeratorOfTType());
Completion\Providers\ImportCompletionProvider\ExtensionMemberImportCompletionHelper.SymbolComputer_Constraints.cs (1)
91if (type.OriginalDefinition.Equals(originalConstraintType))
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)
5466if (attribute.AttributeClass.Equals(layoutAttribute) && attribute.ConstructorArguments.Length == 1)
EmbeddedLanguages\DateAndTime\LanguageServices\DateAndTimeLanguageDetector.cs (2)
164return type.Equals(_dateTimeType) || type.Equals(_dateTimeOffsetType);
EmbeddedLanguages\EmbeddedLanguageDetector.cs (1)
408if (symbol.Equals(otherSymbol) &&
EmbeddedLanguages\RegularExpressions\LanguageServices\RegexLanguageDetector.cs (3)
121if (_regexType.Equals(constructor?.ContainingType)) 132if (_regexType.Equals(constructor?.ContainingType)) 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 (2)
72if (!iface.OriginalDefinition.Equals(comparableType)) 245comparedType.Equals(method.Parameters[1].Type))
GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndGetHashCodeFromMembersCodeRefactoringProvider.cs (2)
131containingType.Equals(m.Parameters[0].Type) && 132containingType.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
GenerateType\AbstractGenerateTypeService.State.cs (2)
172IsAttribute = BaseTypeOrInterfaceOpt != null && BaseTypeOrInterfaceOpt.Equals(semanticModel.Compilation.AttributeType()); 173IsException = BaseTypeOrInterfaceOpt != null && BaseTypeOrInterfaceOpt.Equals(semanticModel.Compilation.ExceptionType());
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)
490&& parameterOperation.Parameter.Equals(parametersWithVariableDeclarationArgument[0].parameterSymbol);
IntroduceParameter\AbstractIntroduceParameterCodeRefactoringProvider.cs (1)
85if (expressionSymbol is IParameterSymbol parameterSymbol && parameterSymbol.ContainingSymbol.Equals(containingSymbol))
IntroduceParameter\IntroduceParameterDocumentRewriter.cs (1)
621!parameter.Type.Equals(compilation.GetTypeByMetadataName(typeof(CancellationToken)?.FullName!));
IntroduceUsingStatement\AbstractIntroduceUsingStatementCodeRefactoringProvider.cs (1)
444localVariable.Equals(semanticModel.GetSymbolInfo(node, cancellationToken).Symbol));
LanguageServices\AnonymousTypeDisplayService\AbstractStructuralTypeDisplayService.cs (4)
168if (n1.Equals(property.ContainingType) && !n2.Equals(property.ContainingType)) 172else if (!n1.Equals(property.ContainingType) && n2.Equals(property.ContainingType))
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (1)
820.Where(s => !s.Equals(symbolGroup.First().OriginalDefinition))
MoveStaticMembers\AbstractMoveStaticMembersRefactoringProvider.cs (1)
52if (selectedMembers.Any(m => !m.ContainingType.Equals(containingType)))
NameTupleElement\AbstractNameTupleElementCodeRefactoringProvider.cs (1)
73if (element.Equals(element.CorrespondingTupleField))
PullMemberUp\AbstractPullMemberUpRefactoringProvider.cs (1)
50if (selectedMembers.Any(m => !m.ContainingType.Equals(containingType)))
src\4f5ad909b1ed0e10\AbstractUseCoalesceExpressionForNullableTernaryConditionalCheckDiagnosticAnalyzer.cs (1)
115if (!nullableType.Equals(type.Type?.OriginalDefinition))
src\9547feb31df4cc5d\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (1)
274containingType.AllInterfaces.Any((@interface, marshaler) => @interface.Equals(marshaler), _iCustomMarshaler))
src\roslyn\src\Analyzers\Core\Analyzers\Helpers\DeserializationConstructorCheck.cs (2)
19methodSymbol.Parameters[0].Type.Equals(_serializationInfoType) && 20methodSymbol.Parameters[1].Type.Equals(_streamingContextType) &&
src\roslyn\src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.cs (1)
205=> Unwrap(value) is ILocalReferenceOperation localReference && accumulatorVariable.Equals(localReference.Local);
src\roslyn\src\Analyzers\Core\Analyzers\MakeFieldReadonly\AbstractMakeFieldReadonlyDiagnosticAnalyzer.cs (1)
281if (!field.ContainingType.Equals(owningSymbol.ContainingType))
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
848if (suppressMessageAttributeType.Equals(attribute.AttributeClass) &&
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\SuppressMessageAttributeState.cs (1)
60_suppressMessageAttributeType.Equals(propertyReference.Property.ContainingType))
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
966methodSymbol.Parameters[0].Type.Equals(memberSymbol.ContainingType))
src\roslyn\src\Analyzers\Core\Analyzers\SimplifyInterpolation\AbstractSimplifyInterpolationDiagnosticAnalyzer.cs (3)
64(convertedType.Equals(formattableStringType) || convertedType.Equals(iFormattableType))) 71invocation.TargetMethod.ContainingType.Equals(formattableStringType);
src\roslyn\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\roslyn\src\Analyzers\Core\Analyzers\UseCollectionInitializer\UpdateExpressionState.cs (2)
111InitializedSymbol.Equals( 272useSpread = parameter.Type.Equals(convertedType);
src\roslyn\src\Analyzers\Core\Analyzers\UseExplicitTupleName\UseExplicitTupleNameDiagnosticAnalyzer.cs (2)
52if (field.CorrespondingTupleField?.Equals(field) == true) 84unnamedField.Equals(fieldSymbol.CorrespondingTupleField) &&
src\roslyn\src\Analyzers\Core\Analyzers\UseIsNullCheck\AbstractUseIsNullForReferenceEqualsDiagnosticAnalyzer.cs (1)
102if (!referenceEqualsMethod.Equals(symbol))
src\roslyn\src\Analyzers\Core\Analyzers\UseNullPropagation\AbstractUseNullPropagationDiagnosticAnalyzer.cs (1)
377return referenceEqualsMethod.Equals(symbol);
src\roslyn\src\Analyzers\Core\Analyzers\ValidateFormatString\AbstractValidateFormatStringDiagnosticAnalyzer.cs (1)
139var hasIFormatProvider = parameters[0].Type.Equals(formatProviderType);
src\roslyn\src\Analyzers\Core\CodeFixes\AddExplicitCast\InheritanceDistanceComparer.cs (1)
63if (derivedType.Equals(baseType))
src\roslyn\src\Analyzers\Core\CodeFixes\AddParameter\AbstractAddParameterCodeFixProvider.cs (2)
540if (parameterType.Equals(argumentTypeInfo.Type) || parameterType.Equals(argumentTypeInfo.ConvertedType))
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.cs (3)
56if (currentConstructor.Equals(delegatedConstructor)) 60if (!delegatedConstructor.ContainingType.Equals(currentConstructor.ContainingType)) 73if (currentDelegatedConstructor.Equals(currentConstructor))
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (2)
222if (TypeToGenerateIn.Equals(constructor.ContainingType) && 430var isThis = _delegatedConstructor.ContainingType.OriginalDefinition.Equals(TypeToGenerateIn.OriginalDefinition);
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateConstructor\GenerateConstructorHelpers.cs (1)
272let ignoreAccessibility = t.Equals(typeToGenerateIn)
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.State.cs (2)
386symbol.ContainingType.Equals(ContainingType)) 500if (!ContainingType.OriginalDefinition.Equals(TypeToGenerateIn.OriginalDefinition))
src\roslyn\src\Analyzers\Core\CodeFixes\ImplementInterface\AbstractImplementInterfaceService.cs (1)
285if (!typeA.Equals(typeB))
src\roslyn\src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementHelpers.cs (1)
237if (!unimplementedMembers.Any(static (m, idisposableType) => m.type.Equals(idisposableType), idisposableType))
src\roslyn\src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_DisposePattern.cs (1)
54unimplementedMembers.WhereAsArray(m => !m.type.Equals(disposeMethod.ContainingType)),
src\roslyn\src\Analyzers\Core\CodeFixes\RemoveAsyncModifier\AbstractRemoveAsyncModifierCodeFixProvider.cs (6)
99|| returnType.OriginalDefinition.Equals(knownTypes.TaskOfTType) 100|| returnType.OriginalDefinition.Equals(knownTypes.ValueTaskOfTType); 103=> returnType.OriginalDefinition.Equals(knownTypes.TaskType) 104|| returnType.OriginalDefinition.Equals(knownTypes.ValueTaskType); 206if (returnType.OriginalDefinition.Equals(knownTypes.TaskType)) 222if (returnType.OriginalDefinition.Equals(knownTypes.TaskOfTType))
src\roslyn\src\Analyzers\Core\CodeFixes\UseAutoProperty\AbstractUseAutoPropertyCodeFixProvider.cs (1)
351if (symbols.Length > 0 && symbols.All(s => !s.OriginalDefinition.Equals(property.OriginalDefinition)))
src\roslyn\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.NetAnalyzers (276)
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\CancellationTokenParametersMustComeLast.cs (1)
62if (!methodSymbol.Parameters.Any(static (parameter, tokenType) => parameter.Type.Equals(tokenType), cancellationTokenType))
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\DefineAccessorsForAttributeArguments.cs (1)
162if (!property.ContainingType.Equals(attributeType))
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\DoNotExposeGenericLists.cs (4)
56if (field.Type != null && field.Type.OriginalDefinition.Equals(genericListType)) 80if (property.Type != null && property.Type.OriginalDefinition.Equals(genericListType)) 111if (methodSymbol.ReturnType != null && methodSymbol.ReturnType.OriginalDefinition.Equals(genericListType)) 123if (parameter.Type != null && parameter.Type.OriginalDefinition.Equals(genericListType) &&
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\DoNotHideBaseClassMethods.cs (2)
80&& x.ReturnType.Equals(method.ReturnType) 102if (!baseMethodParameter.Type.Equals(derivedMethodParameter.Type))
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\EquatableAnalyzer.cs (1)
78.FirstOrDefault(x => x.Equals(constructedEquatable));
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\EquatableAnalyzer.Fixer.cs (2)
135.FirstOrDefault(x => x.Equals(constructedEquatable)); 207if (explicitImplementation.Equals(constructedEqualsMethod))
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\ImplementIDisposableCorrectly.cs (4)
257if (method.Equals(disposeMethod)) 470if (!type.Equals(invocationExpression.TargetMethod.ContainingType)) 476!type.Equals(invocationExpression.Instance.Type)) 620if (!_type.Equals(conversion.Operand.Type))
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\ImplementStandardExceptionConstructors.cs (1)
98parameters[1].Type.Equals(exceptionType))
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\InterfaceMethodsShouldBeCallableByChildTypes.cs (1)
152interfaceMethod.ContainingType.Equals(iDisposableTypeSymbol) &&
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\InterfaceMethodsShouldBeCallableByChildTypes.Fixer.cs (1)
110IMethodSymbol candidate = type.GetMembers(interfaceMethod.Name).OfType<IMethodSymbol>().FirstOrDefault(m => !m.Equals(methodSymbol));
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\MarkAssembliesWithAttributesDiagnosticAnalyzer.cs (3)
79if (attribute.AttributeClass.Equals(assemblyVersionAttributeSymbol)) 84else if (attribute.AttributeClass.Equals(assemblyComplianceAttributeSymbol)) 90attribute.AttributeClass.Equals(razorCompiledItemAttribute))
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\MarkAttributesWithAttributeUsage.cs (1)
64if (symbol.IsAbstract || symbol.BaseType == null || !symbol.BaseType.Equals(attributeType))
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\OperatorsShouldHaveSymmetricalOverloads.cs (1)
134if (!parameters1[i].Type.Equals(parameters2[i].Type))
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\OverrideMethodsOnComparableTypes.cs (2)
138=> namedTypeSymbol.AllInterfaces.Any(t => t.Equals(comparableType) || 139(t.ConstructedFrom?.Equals(genericComparableType) ?? false));
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\PassSystemUriObjectsInsteadOfStrings.cs (2)
135if (method.Equals(overload) || overload.Parameters.Length != method.Parameters.Length) 159if (overload.Parameters[index].Type?.Equals(_uri) == true &&
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\PropertyNamesShouldNotMatchGetMethods.cs (1)
135&& !symbol.ContainingType.Equals(type)) // prevent reporting duplicate diagnostics
Microsoft.CodeQuality.Analyzers\Maintainability\AvoidUninstantiatedInternalClasses.cs (7)
82if (context.Operation.Type is INamedTypeSymbol namedType && namedType.ContainingAssembly.Equals(context.ContainingSymbol.ContainingAssembly)) 108if (type.BaseType is { } baseType && baseType.ContainingAssembly.Equals(type.ContainingAssembly)) 122if (findTypeOrDefault(attribute, context.Compilation) is INamedTypeSymbol namedType && namedType.ContainingAssembly.Equals(type.ContainingAssembly)) 188attribute.AttributeClass.Equals(coClassAttributeSymbol) && 209!attribute.AttributeClass.Equals(designerAttributeSymbol)) 241!attribute.AttributeClass.Equals(debuggerTypeProxyAttributeSymbol)) 432namedType.ContainingAssembly.Equals(compilation.Assembly);
Microsoft.CodeQuality.Analyzers\Maintainability\DoNotIgnoreMethodResults.cs (2)
205else if (targetMethod.ContainingType.Equals(linqEnumerableType) || targetMethod.ContainingType.Equals(linqQueryableType))
Microsoft.CodeQuality.Analyzers\QualityGuidelines\AssigningSymbolAndItsMemberInSameStatement.cs (3)
65AnalyzeAssignmentToMember(assignmentOperation, localInstance, (a, b) => a.Local.Equals(b.Local)), 67AnalyzeAssignmentToMember(assignmentOperation, memberInstance, (a, b) => a.Member.Equals(b.Member) && a.Instance?.Syntax.ToString() == b.Instance?.Syntax.ToString()), 69AnalyzeAssignmentToMember(assignmentOperation, parameterInstance, (a, b) => a.Parameter.Equals(b.Parameter)),
Microsoft.CodeQuality.Analyzers\QualityGuidelines\AvoidInfiniteRecursion.cs (1)
63!operationTarget.Member.Equals(methodSymbol.AssociatedSymbol))
Microsoft.CodeQuality.Analyzers\QualityGuidelines\AvoidMultipleEnumerations\AvoidMultipleEnumerationsHelpers.cs (2)
250methodParameter => IsDeferredType(methodParameter.Type?.OriginalDefinition, wellKnownSymbolsInfo.AdditionalDeferredTypes) && methodParameter.Equals(argumentMappingParameter))) 317methodParameter => IsDeferredType(methodParameter.Type?.OriginalDefinition, wellKnownSymbolsInfo.AdditionalDeferredTypes) && methodParameter.Equals(argumentMappingParameter.OriginalDefinition)))
Microsoft.CodeQuality.Analyzers\QualityGuidelines\DoNotPassDisposablesIntoUnawaitedTasks.cs (2)
109disposableArgumentReferences.Any(disposableArg => disposeCall.Local.Equals(disposableArg.Local))); 113r.Local.Equals(declaratorForInvocation.Symbol));
Microsoft.CodeQuality.Analyzers\QualityGuidelines\MarkMembersAsStatic.Fixer.cs (1)
116references = references.Where(r => symbol.Equals(r.Definition));
Microsoft.CodeQuality.Analyzers\QualityGuidelines\SealMethodsThatSatisfyPrivateInterfaces.cs (1)
77if (member.ContainingType != null && member.ContainingType.Equals(type))
Microsoft.NetCore.Analyzers\InteropServices\AvoidStringBuilderPInvokeParameters.cs (1)
62if (parameter.Type.Equals(stringBuilderType))
Microsoft.NetCore.Analyzers\InteropServices\PInvokeDiagnosticAnalyzer.cs (2)
135if (parameter.Type.SpecialType == SpecialType.System_String || parameter.Type.Equals(_stringBuilderType)) 163(methodSymbol.ReturnType.SpecialType == SpecialType.System_String || methodSymbol.ReturnType.Equals(_stringBuilderType)))
Microsoft.NetCore.Analyzers\InteropServices\PlatformCompatibilityAnalyzer.cs (7)
188m.Parameters[0].Type.Equals(osPlatformType)); 194m.ReturnType.Equals(osPlatformType) && 394Debug.Assert(operation.Type!.Equals(osPlatformType)); 396invocation.TargetMethod.Equals(osPlatformCreateMethod) && 450if (invocation.TargetMethod.Equals(runtimeIsOSPlatformMethod)) 454propertyReference.Property.ContainingType.Equals(osPlatformType)) 709if (parentEnumerator.MoveNext() && !parentEnumerator.Current.Equals(val.GetNegatedValue()))
Microsoft.NetCore.Analyzers\InteropServices\PlatformCompatibilityAnalyzer.Value.cs (2)
118if (argumentValue.Type?.Equals(osPlatformType) != true) 124propertyReference.Property.ContainingType.Equals(osPlatformType))
Microsoft.NetCore.Analyzers\InteropServices\SpecifyMarshalingForPInvokeStringArguments.Fixer.cs (2)
81if (types.DllImport.Equals(attributeType?.ContainingType)) 101else if (types.MarshalAs.Equals(attributeType?.ContainingType) && arguments.Count == 1)
Microsoft.NetCore.Analyzers\Performance\RecommendCaseInsensitiveStringComparison.Analyzer.cs (7)
246if (diagnosableMethod.Equals(containsStringMethod) && containsStringWithStringComparisonMethod is not null || 247diagnosableMethod.Equals(startsWithStringMethod) || 248diagnosableMethod.Equals(indexOfStringMethod) || 249diagnosableMethod.Equals(indexOfStringInt32Method) || 250diagnosableMethod.Equals(indexOfStringInt32Int32Method)) 254else if (diagnosableMethod.Equals(compareToStringMethod)) 368if (!invocation.Instance.Type.Equals(stringType))
Microsoft.NetCore.Analyzers\Performance\UseAsSpanInsteadOfRangeIndexer.cs (1)
184if (stringType.Equals(containingType))
Microsoft.NetCore.Analyzers\Performance\UseStringMethodCharOverloadWithSingleCharacters.cs (5)
171if (argument.Value.Type.Equals(stringComparisonType) && 174if (fieldReferenceOperation.Field.Equals(stringComparisonOrdinalSymbol)) 178else if (fieldReferenceOperation.Field.Equals(stringComparisonInvariantCultureSymbol)) 187else if (argument.Value.Type.Equals(cultureInfoType) && 190if (propertyReferenceOperation.Property.Equals(cultureInfoInvariantCultureSymbol))
Microsoft.NetCore.Analyzers\Resources\MarkAssembliesWithNeutralResourcesLanguage.cs (1)
129if (model.GetSymbolInfo(attribute, cancellationToken).Symbol?.ContainingType?.Equals(generatedCode) != true)
Microsoft.NetCore.Analyzers\Runtime\AvoidConstArrays.cs (2)
136bool isDirectlyInsideLambda = originalDefinition.Equals(functionType); 140if (!isDirectlyInsideLambda && !argumentOperation.Parameter!.ContainingType.Equals(context.ContainingSymbol.ContainingType))
Microsoft.NetCore.Analyzers\Runtime\AvoidZeroLengthArrayAllocations.cs (1)
198return first.Type?.Equals(second.Type) == true;
Microsoft.NetCore.Analyzers\Runtime\BufferBlockCopyLengthAnalyzer.cs (1)
109if (countArgument.Property.Equals(arrayLengthProperty))
Microsoft.NetCore.Analyzers\Runtime\CallGCSuppressFinalizeCorrectly.cs (1)
138if (invocationExpression.TargetMethod.OriginalDefinition.Equals(_gcSuppressFinalizeMethodSymbol))
Microsoft.NetCore.Analyzers\Runtime\DoNotCallEnumerableCastOrOfTypeWithIncompatibleTypesAnalyzer.cs (3)
306return !castFrom.Equals(toEnum.EnumUnderlyingType); 309return !fromEnum.EnumUnderlyingType!.Equals(castTo); 314return !fromEnum.EnumUnderlyingType!.Equals(toEnum.EnumUnderlyingType);
Microsoft.NetCore.Analyzers\Runtime\DoNotLockOnObjectsWithWeakIdentity.cs (4)
68method.ContainingType.Equals(monitorType) && 111type.Equals(executionEngineExceptionTypeSymbol) || 112type.Equals(outOfMemoryExceptionTypeSymbol) || 113type.Equals(stackOverflowExceptionTypeSymbol) ||
Microsoft.NetCore.Analyzers\Runtime\DoNotPassLiteralsAsLocalizedParameters.cs (2)
278if (method.ContainingType.Equals(systemConsoleSymbol) && 315var localizableAttribute = attributeList.FirstOrDefault(attr => localizableAttributeTypeSymbol.Equals(attr.AttributeClass));
Microsoft.NetCore.Analyzers\Runtime\DoNotUseEnumerableMethodsOnIndexableCollectionsInsteadUseTheCollectionDirectly.cs (1)
133methodSymbol.ContainingSymbol.Equals(enumerableType) &&
Microsoft.NetCore.Analyzers\Runtime\DoNotUseReferenceEqualsWithValueTypes.cs (2)
96if (referenceEqualsMethod.Equals(targetMethod)) 100else if (comparerEqualsMethod != null && comparerEqualsMethod.Equals(targetMethod))
Microsoft.NetCore.Analyzers\Runtime\ForwardCancellationTokenToInvocations.Analyzer.cs (12)
144static (a, cancellationTokenType) => cancellationTokenType.Equals(a.Parameter?.Type) && !a.IsImplicit, 254if (methodDeclaration.Parameters.Count(x => x.Type.Equals(cancellationTokenType)) == 1 && 256lastParameter.Type.Equals(cancellationTokenType)) // Covers the case when using an alias for ct 300if (lastParameter.Type.Equals(cancellationTokenType) && 307static (a, cancellationTokenType) => a.Parameter != null && a.Parameter.Type.Equals(cancellationTokenType) && a.ArgumentKind == ArgumentKind.DefaultValue, 322arrayTypeSymbol.ElementType.Equals(cancellationTokenType)) 363if (originalMethod.Equals(methodToCompare) || 364methodToCompare.Parameters.Count(p => p.Type.Equals(cancellationTokenType)) != 1 || 365!methodToCompare.Parameters[^1].Type.Equals(cancellationTokenType)) 385if (!originalParameter.Type.Equals(comparedParameter.Type)) 414typeSymbol.OriginalDefinition.Equals(genericTask)) 420typeSymbol.OriginalDefinition.Equals(genericValueTask))
Microsoft.NetCore.Analyzers\Runtime\NormalizeStringsToUppercase.cs (3)
80if (method.Equals(toLowerInvariant) || 81(method.Equals(toLowerWithCultureInfo) && 82((invocation.Arguments.FirstOrDefault()?.Value as IMemberReferenceOperation)?.Member.Equals(invariantCulture) ?? false)))
Microsoft.NetCore.Analyzers\Runtime\PreferConstCharOverConstUnitStringAnalyzer.cs (1)
68if (!invocationOperation.TargetMethod.Equals(appendStringMethod))
Microsoft.NetCore.Analyzers\Runtime\PreferStreamAsyncMemoryOverloads.cs (9)
160type.ConstructedFrom.Equals(memoryType)); 169type.ConstructedFrom.Equals(readOnlyMemoryType)); 221if (method.Equals(undesiredReadAsyncMethod) || 222method.Equals(undesiredReadAsyncMethodWithCancellationToken)) 228else if (method.Equals(undesiredWriteAsyncMethod) || 229method.Equals(undesiredWriteAsyncMethodWithCancellationToken)) 269if (method.OriginalDefinition.Equals(configureAwaitMethod) || 270method.OriginalDefinition.Equals(genericConfigureAwaitMethod)) 296return actualMethod.ContainingType.Equals(baseType);
Microsoft.NetCore.Analyzers\Runtime\PreferStringContainsOverIndexOfAnalyzer.cs (4)
207targetMethod.Equals(stringArgumentIndexOfMethod) 208|| targetMethod.Equals(charArgumentIndexOfMethod) 209|| targetMethod.Equals(stringAndComparisonTypeArgumentIndexOfMethod) 210|| targetMethod.Equals(charAndComparisonTypeArgumentIndexOfMethod);
Microsoft.NetCore.Analyzers\Runtime\PreferTypedStringBuilderAppendOverloads.cs (3)
98if (appendStringMethod.Equals(invocation.TargetMethod)) 102else if (insertStringMethod.Equals(invocation.TargetMethod)) 126.FirstOrDefault(s => s.Parameters[stringParamIndex].Type.Equals(toStringInvoke.TargetMethod.ReceiverType));
Microsoft.NetCore.Analyzers\Runtime\SpecifyCultureInfo.cs (1)
69var correctOverload = correctOverloads.FirstOrDefault(overload => overload.Parameters.Last().Type.Equals(cultureInfoType)) ?? correctOverloads.FirstOrDefault();
Microsoft.NetCore.Analyzers\Runtime\SpecifyIFormatProvider.cs (14)
185(activatorType != null && activatorType.Equals(targetMethod.ContainingType)) || 186(resourceManagerType != null && resourceManagerType.Equals(targetMethod.ContainingType)) || 196(targetMethod.Equals(stringFormatMemberWithStringAndObjectParameter) || 197targetMethod.Equals(stringFormatMemberWithStringObjectAndObjectParameter) || 198targetMethod.Equals(stringFormatMemberWithStringObjectObjectAndObjectParameter) || 199targetMethod.Equals(stringFormatMemberWithStringAndParamsObjectParameter)) && 216var iformatProviderAlternateRule = targetMethod.ReturnType.Equals(stringType) ? 231var correctOverload = correctOverloads.FirstOrDefault(overload => overload.Parameters.Last().Type.Equals(iformatProviderType)) ?? correctOverloads.FirstOrDefault(); 267var uiCultureRule = targetMethod.ReturnType.Equals(stringType) ? 275if (!iformatProviderType.Equals(argument.Parameter?.Type)) 283(symbol.Equals(currentUICultureProperty) || 284symbol.Equals(installedUICultureProperty) || 285symbol.Equals(currentThreadCurrentUICultureProperty) || 286(installedUICulturePropertyOfComputerInfoType != null && symbol.Equals(installedUICulturePropertyOfComputerInfoType))))
Microsoft.NetCore.Analyzers\Runtime\SpecifyStringComparison.cs (1)
178!method.Parameters[^1].Type.Equals(stringComparisonType))
Microsoft.NetCore.Analyzers\Runtime\UseAsyncMethodInAsyncContext.cs (3)
274return candidateMethod.Parameters.All(candidateParameter => candidateParameter.HasExplicitDefaultValue || baselineMethod.Parameters.Any(baselineParameter => baselineParameter.Type?.Equals(candidateParameter.Type) ?? false)); 288&& targetTypeValue.Equals(returnType.OriginalDefinition); 340if (symbol.Value.Equals(memberSymbol.OriginalDefinition))
Microsoft.NetCore.Analyzers\Runtime\UseOrdinalStringComparison.cs (5)
70fieldSymbol.ContainingType.Equals(stringComparisonType) && 109methodSymbol.Parameters[1].Type.Equals(stringComparisonType); 127methodSymbol.Parameters[2].Type.Equals(stringComparisonType); 135methodSymbol.Parameters[5].Type.Equals(stringComparisonType); 150methodSymbol.Parameters[2].Type.Equals(stringComparisonType);
Microsoft.NetCore.Analyzers\Security\DataSetDataTableInSerializableObjectGraphAnalyzer.cs (8)
181&& targetMethod.Parameters[1].Type.Equals(typeTypeSymbol) 192else if (targetMethod.ContainingType.Equals(xmlSerializerTypeSymbol) 197&& arrayTypeSymbol.ElementType.Equals(typeTypeSymbol)) 209|| (targetMethod.ContainingType.Equals(jsonNetJsonConvertTypeSymbol) 221&& targetMethod.Parameters[1].Type.Equals(typeTypeSymbol) 254if (objectCreationOperation?.Type?.Equals(dataContractSerializerTypeSymbol) == true 255|| objectCreationOperation?.Type?.Equals(dataContractJsonSerializerTypeSymbol) == true) 265else if (objectCreationOperation?.Type?.Equals(xmlSerializerTypeSymbol) == true)
Microsoft.NetCore.Analyzers\Security\DataSetDataTableInSerializableTypeAnalyzer.cs (1)
157&& namedTypeSymbol.BaseType.ConstructedFrom.Equals(typedTableBaseTypeSymbol));
Microsoft.NetCore.Analyzers\Security\DoNotAddSchemaByURL.cs (1)
56if (methodSymbol.ContainingType.Equals(xmlSchemaCollectionTypeSymbol) &&
Microsoft.NetCore.Analyzers\Security\DoNotAlwaysSkipTokenValidationInDelegates.cs (9)
76microsoftIdentityModelTokensAudienceValidatorTypeSymbol.Equals(delegateCreationOperation.Type)) 81microsoftIdentityModelTokensLifetimeValidatorTypeSymbol.Equals(delegateCreationOperation.Type)) 156if (!parameters[0].Type.Equals(iEnumerableString) 157|| !parameters[1].Type.Equals(securityToken) 158|| !parameters[2].Type.Equals(tokenValidationParameters)) 184if (!parameters[0].Type.Equals(nullableDateTime) 185|| !parameters[1].Type.Equals(nullableDateTime) 186|| !parameters[2].Type.Equals(securityToken) 187|| !parameters[3].Type.Equals(tokenValidationParameters))
Microsoft.NetCore.Analyzers\Security\DoNotCallDangerousMethodsInDeserialization.cs (1)
210&& parameters[0].Type.Equals(streamingContextTypeSymbol);
Microsoft.NetCore.Analyzers\Security\DoNotDisableCertificateValidation.cs (5)
68if (systemNetSecurityRemoteCertificateValidationCallbackTypeSymbol.Equals(delegateCreationOperation.Type)) 140if (!parameters[0].Type.Equals(obj) 141|| !parameters[1].Type.Equals(x509Certificate) 142|| !parameters[2].Type.Equals(x509Chain) 143|| !parameters[3].Type.Equals(sslPolicyErrors))
Microsoft.NetCore.Analyzers\Security\DoNotDisableHttpHeaderChecking.cs (1)
61property.ContainingType.Equals(httpRuntimeSectionTypeSymbol) &&
Microsoft.NetCore.Analyzers\Security\DoNotDisableTokenValidationChecks.cs (1)
69if (property.ContainingType.Equals(tokenValidationParamsTypeSymbol) &&
Microsoft.NetCore.Analyzers\Security\DoNotInstallRootCert.cs (3)
107if (constructorMethod.Parameters[0].Type.Equals(storeNameTypeSymbol)) 143if (x509TypeSymbol.Equals(invocationOperation.Instance?.Type) && 160x509TypeSymbol.Equals(argumentOperation.Parameter.Type))
Microsoft.NetCore.Analyzers\Security\DoNotSetSwitch.cs (1)
99if (!setSwitchMemberWithStringAndBoolParameter.Equals(methodSymbol))
Microsoft.NetCore.Analyzers\Security\DoNotUseAccountSAS.cs (1)
57methodSymbol.ContainingType.Equals(cloudStorageAccountTypeSymbol))
Microsoft.NetCore.Analyzers\Security\DoNotUseDeprecatedSecurityProtocols.cs (3)
118if (!securityProtocolTypeTypeSymbol.Equals(assignmentOperation.Target.Type) 200if (securityProtocolTypeTypeSymbol.Equals(fieldReferenceOperation.Field.ContainingType)) 235&& servicePointManagerTypeSymbol.Equals(targetPropertyReference.Property.ContainingType)
Microsoft.NetCore.Analyzers\Security\DoNotUseDSA.cs (2)
128typeSymbol.Equals(asymmetricAlgorithmTypeSymbol) && 144typeSymbol.Equals(cryptoConfigTypeSymbol) &&
Microsoft.NetCore.Analyzers\Security\DoNotUseInsecureCryptographicAlgorithms.cs (1)
113|| (type.Equals(cryptTypes.DSASignatureFormatter)
Microsoft.NetCore.Analyzers\Security\DoNotUseInsecureDeserializerJavascriptSerializerWithSimpleTypeResolver.cs (7)
105&& javaScriptTypeResolverSymbol.Equals(constructorMethod.Parameters[0].Type)) 117if (pointsTo.Locations.Any(l => !l.IsNull && simpleTypeResolverSymbol.Equals(l.LocationType))) 123&& javaScriptTypeResolverSymbol.Equals(l.LocationType) 177if ((javaScriptSerializerSymbol.Equals(invocationOperation.Instance?.Type) 179|| simpleTypeResolverSymbol.Equals(invocationOperation.TargetMethod.ReturnType) 180|| javaScriptTypeResolverSymbol.Equals(invocationOperation.TargetMethod.ReturnType)) 195if (javaScriptSerializerSymbol.Equals(methodReferenceOperation.Instance?.Type)
Microsoft.NetCore.Analyzers\Security\DoNotUseInsecureDeserializerJsonNetWithoutBinder.cs (2)
157if (jsonSerializerSymbol.Equals(invocationOperation.TargetMethod.ContainingType) 175if (jsonSerializerSymbol.Equals(objectCreationOperation.Type))
Microsoft.NetCore.Analyzers\Security\DoNotUseInsecureDeserializerWithoutBinderBase.cs (1)
127if (deserializerTypeSymbol.Equals(creationOperation.Type))
Microsoft.NetCore.Analyzers\Security\DoNotUseInsecureRandomness.cs (1)
54if (randomTypeSymbol.Equals(typeSymbol))
Microsoft.NetCore.Analyzers\Security\DoNotUseInsecureSettingsForJsonNet.cs (7)
166if ((jsonSerializerSymbol.Equals(invocationOperation.TargetMethod.ContainingType) 169p => jsonSerializerSettingsSymbol.Equals(p.Type))) 170|| (jsonConvertSymbol.Equals(invocationOperation.TargetMethod.ContainingType) 173p => jsonSerializerSettingsSymbol.Equals(p.Type))) 174|| jsonSerializerSettingsSymbol.Equals(invocationOperation.TargetMethod.ReturnType)) 190if (jsonSerializerSettingsSymbol.Equals(objectCreationOperation.Type)) 205if (jsonSerializerSettingsSymbol.Equals(returnOperation.Type))
Microsoft.NetCore.Analyzers\Security\DoNotUseObsoleteKDFAlgorithm.cs (2)
77if (typeSymbol.Equals(passwordDeriveBytesTypeSymbol) || 78typeSymbol.Equals(rfc2898DeriveBytesTypeSymbol) &&
Microsoft.NetCore.Analyzers\Security\DoNotUseWeakKDFAlgorithm.cs (2)
66while (!rfc2898DeriveBytesTypeSymbol.Equals(baseTypeSymbol)) 83hashAlgorithmNameTypeSymbol.Equals(propertyReferenceOperation.Property.ContainingType))
Microsoft.NetCore.Analyzers\Security\DoNotUseWeakKDFInsufficientIterationCount.cs (2)
140if (rfc2898DeriveBytesTypeSymbol.Equals(invocationOperation.Instance?.Type) && 156if (rfc2898DeriveBytesTypeSymbol.Equals(argumentOperation.Parameter?.Type))
Microsoft.NetCore.Analyzers\Security\DoNotUseXslTransform.cs (1)
55if (xslTransformTypeSymbol.Equals(objectCreationOperation.Constructor?.ContainingType))
Microsoft.NetCore.Analyzers\Security\Helpers\SecurityHelpers.cs (1)
182&& methodSymbol.Parameters[0].Type.Equals(xmlReaderTypeSymbol)
Microsoft.NetCore.Analyzers\Security\JsonNetTypeNameHandling.cs (2)
71if (!typeNameHandlingSymbol.Equals(assignmentOperation.Target.Type)) 103if (!typeNameHandlingSymbol.Equals(fieldReferenceOperation.Field.ContainingType))
Microsoft.NetCore.Analyzers\Security\PotentialReferenceCycleInDeserializedObjectGraph.cs (1)
118associatedTypePoint.Equals(point))
Microsoft.NetCore.Analyzers\Security\SetHttpOnlyForHttpCookie.cs (3)
100httpCookieSymbol.Equals(propertyReferenceOperation.Property.ContainingType) && 117if (httpCookieSymbol.Equals(returnOperation.ReturnedValue?.Type)) 133if (httpCookieSymbol.Equals(argumentOperation.Value.Type))
Microsoft.NetCore.Analyzers\Security\SetViewStateUserKey.cs (2)
59if (pageTypeSymbol.Equals(baseClassSymbol)) 64s.Parameters[0].Type.Equals(eventArgsTypeSymbol) &&
Microsoft.NetCore.Analyzers\Security\SslProtocolsAnalyzer.cs (5)
108if (!sslProtocolsSymbol.Equals(assignmentOperation.Target.Type)) 117if (!sslProtocolsSymbol.Equals(argumentOperation.Type)) 127|| !sslProtocolsSymbol.Equals(returnOperation.ReturnedValue.Type)) 137|| !sslProtocolsSymbol.Equals(variableInitializerOperation.Value.Type)) 228if (sslProtocolsSymbol.Equals(fieldReferenceOperation.Field.ContainingType))
Microsoft.NetCore.Analyzers\Security\UseContainerLevelAccessPolicy.cs (1)
124if (namespaceSymbol.Equals(nspaceTypeSymbol))
Microsoft.NetCore.Analyzers\Security\UseRSAWithSufficientKeySize.cs (3)
117typeSymbol.Equals(asymmetricAlgorithmTypeSymbol) && 127typeSymbol.Equals(asymmetricAlgorithmTypeSymbol) && 143typeSymbol.Equals(cryptoConfigTypeSymbol) &&
Microsoft.NetCore.Analyzers\Security\UseSecureCookiesASPNetCore.cs (1)
154if (argumentOperation.Parameter?.Type.Equals(cookieOptionsTypeSymbol) == true)
Microsoft.NetCore.Analyzers\Security\UseSharedAccessProtocolHttpsOnly.cs (3)
105if (namespaceSymbol.Equals(microsoftWindowsAzureStorageNamespaceSymbol)) 120if (!typeSymbol.Equals(cloudStorageAccountTypeSymbol)) 125namedTypeSymbol.ConstructedFrom.Equals(nullableTypeSymbol) &&
Microsoft.NetCore.Analyzers\Security\UseXmlReaderBase.cs (1)
85methodSymbol.Parameters[0].Type.Equals(xmlReaderTypeSymbol))
Microsoft.NetCore.Analyzers\Tasks\DoNotCreateTaskCompletionSourceWithWrongArguments.cs (3)
73(targetMethod.ContainingType.OriginalDefinition.Equals(tcsGenericType) || (tcsType != null && targetMethod.ContainingType.OriginalDefinition.Equals(tcsType))) && 79conversionOperation.Operand.Type.Equals(taskContinutationOptionsType) ?
Microsoft.NetCore.Analyzers\Tasks\DoNotCreateTaskCompletionSourceWithWrongArguments.Fixer.cs (2)
74taskContinutationOptionsType.Equals(field.Type) && 75taskContinutationOptionsType.Equals(field.Field.ContainingType) &&
Microsoft.NetCore.Analyzers\Tasks\DoNotCreateTasksWithoutPassingATaskScheduler.cs (4)
66if (invocation.TargetMethod.Parameters.Any(p => p.Type.Equals(taskSchedulerType))) 79if ((taskType.Equals(methodSymbol.ContainingType) || 80taskType.Equals(methodSymbol.ContainingType.BaseType)) && 86if (methodSymbol.ContainingType.Equals(taskFactoryType) &&
Microsoft.NetCore.Analyzers\Tasks\UseValueTasksCorrectly.cs (9)
100if (!valueTaskType.Equals(invocation.TargetMethod.ReturnType) && 101!valueTaskOfTType.Equals(invocation.TargetMethod.ReturnType.OriginalDefinition)) 109(valueTaskType.Equals(invocation.TargetMethod.ContainingType) || 110valueTaskOfTType.Equals(invocation.TargetMethod.ContainingType.OriginalDefinition))) 163if (originalType.Equals(valueTaskType) || originalType.Equals(valueTaskOfTType)) 475assert.TargetMethod.ContainingType.Equals(debugType) && 567OperationKind.LocalReference => ((ILocalReferenceOperation)op).Local.Equals(valueTaskSymbol), 568OperationKind.ParameterReference => ((IParameterReferenceOperation)op).Parameter.Equals(valueTaskSymbol),
Microsoft.NetCore.Analyzers\Usage\ImplementGenericMathInterfacesCorrectly.cs (1)
122if (constraint.Equals(symbol) ||
Microsoft.NetCore.Analyzers\Usage\ProvideCorrectArgumentToEnumHasFlag.cs (1)
56!invocation.Instance.Type.Equals(conversion.Operand.Type))
src\47c588c5b8785708\ParameterValidationAnalysis.ParameterValidationDataFlowOperationVisitor.cs (1)
126attr.AttributeClass.Equals(_notNullAttributeType)));
src\9382845807600969\AbstractDataFlowAnalysisContext.cs (1)
105if (localFunction.Equals(OwningSymbol))
src\9382845807600969\AnalysisEntityDataFlowOperationVisitor.cs (3)
678if (!currentValue.Equals(newValue)) 692entity.Symbol.ContainingSymbol.Equals(DataFlowAnalysisContext.OwningSymbol) || 741Debug.Assert(throwBranchWithExceptionType.ExceptionType.Equals(ExceptionNamedType));
src\ffd9070534249528\PointsToAnalysis.PointsToDataFlowOperationVisitor.cs (1)
991activatorType.Equals(method.ContainingType))
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (2)
394a.AttributeClass.Equals(wellKnownTypeProvider.GetOrCreateTypeByMetadataName(WellKnownTypeNames.SystemRuntimeCompilerServicesCompilerGeneratedAttribute)) || 395a.AttributeClass.Equals(wellKnownTypeProvider.GetOrCreateTypeByMetadataName(WellKnownTypeNames.SystemCodeDomCompilerGeneratedCodeAttribute)), wellKnownTypeProvider),
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\Extensions\IEnumerableOfIMethodSymbolExtensions.cs (6)
57if (!trailingOnly && candidateMethod.Parameters.First().Type.Equals(expectedParameterType) && candidateMethod.Parameters[0].RefKind == RefKind.None) 66if (!lastParameter.Type.Equals(expectedParameterType) || lastParameter.RefKind != RefKind.None) 75if (!selectedOverload.Parameters[i].Type.Equals(candidateMethod.Parameters[j].Type) || 123if (!expectedParameterTypesInOrder[i].Equals(parameterType)) 169if (!expectedParameterTypesInOrder[i].ParameterType.Equals(parameterType)) 209if (!member.Parameters[index].Type.Equals(expectedParameterTypesInOrder[index]))
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\Extensions\INamedTypeSymbolExtensions.cs (2)
66if (baseType.Equals(parentType)) 72if (type.OriginalDefinition.AllInterfaces.Any(baseInterface => baseInterface.OriginalDefinition.Equals(parentType)))
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\Extensions\IOperationExtensions.cs (2)
504operation is ILocalFunctionOperation localFunction && localFunction.Symbol.OriginalDefinition.Equals(lambdaOrLocalFunction.OriginalDefinition)); 563&& linqExpressionTreeType.Equals(lambdaType);
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\Extensions\IPropertySymbolExtensions.cs (1)
19=> propertySymbol.ContainingType.GetMembers().OfType<IFieldSymbol>().Any(f => f.IsImplicitlyDeclared && propertySymbol.Equals(f.AssociatedSymbol));
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\Extensions\ISymbolExtensions.cs (2)
306return parameters.Where(p => p.Type.Equals(type)); 326if (self?.Equals(overload) == true)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (1)
3565if (OwningSymbol.Equals(forOwningSymbol))
Microsoft.CodeAnalysis.ResxSourceGenerator (55)
src\b310f676f7308b7f\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (1)
504Debug.Assert(localFunction.Equals(localFunction.OriginalDefinition));
src\roslyn\src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (1)
38if (generatedCodeAttribute.Equals(attribute.AttributeClass))
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (2)
393a.AttributeClass.Equals(wellKnownTypeProvider.GetOrCreateTypeByMetadataName(WellKnownTypeNames.SystemRuntimeCompilerServicesCompilerGeneratedAttribute)) || 394a.AttributeClass.Equals(wellKnownTypeProvider.GetOrCreateTypeByMetadataName(WellKnownTypeNames.SystemCodeDomCompilerGeneratedCodeAttribute))),
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\INamedTypeSymbolExtensions.cs (2)
52if (baseType.Equals(parentType)) 58if (type.OriginalDefinition.AllInterfaces.Any(baseInterface => baseInterface.OriginalDefinition.Equals(parentType)))
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (1)
334operation is ILocalFunctionOperation localFunction && localFunction.Symbol.OriginalDefinition.Equals(lambdaOrLocalFunction.OriginalDefinition));
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\IPropertySymbolExtensions.cs (1)
20=> propertySymbol.ContainingType.GetMembers().OfType<IFieldSymbol>().Any(f => f.IsImplicitlyDeclared && propertySymbol.Equals(f.AssociatedSymbol));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\CollectionExpressionUtilities.cs (4)
64if (namedType.OriginalDefinition.Equals(compilation.SpanOfTType()) || 65namedType.OriginalDefinition.Equals(compilation.ReadOnlySpanOfTType())) 74namedType.AllInterfaces.FirstOrDefault(i => i.OriginalDefinition.Equals(ienumerableOfTType)) ?? 75namedType.AllInterfaces.FirstOrDefault(i => i.OriginalDefinition.Equals(ienumerableType));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\KnownTypes.cs (4)
26if (returnType.Equals(this.TaskType)) 29if (returnType.Equals(this.ValueTaskType)) 32if (returnType.OriginalDefinition.Equals(this.TaskOfTType)) 35if (returnType.OriginalDefinition.Equals(this.ValueTaskOfTType))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
457notImplementedExceptionType.Equals(objectCreation.Type);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (1)
173return type.AllInterfaces.Any(static (i, enumerableType) => i.OriginalDefinition.Equals(enumerableType), enumerableType);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyleRules.cs (1)
95if (symbol.Equals(containingType.FindImplementationForInterfaceMember(implementedInterfaceMember)))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFactsExtensions.cs (1)
37!innerTypeInfo.Type.Equals(innerTypeInfo.ConvertedType))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BodyLevelSymbolKey.cs (1)
91if (possibleSymbol.symbol.Equals(symbol))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ErrorTypeSymbolKey.cs (1)
34var isConstructed = !symbol.Equals(symbol.ConstructedFrom);
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamedTypeSymbolKey.cs (1)
29symbol.Equals(symbol.ConstructedFrom) || symbol.IsUnboundGenericType ? [] : symbol.TypeArguments);
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
922if (symbol.Equals(overriddenMember)) 1006if (!newSymbol.Equals(implementationMember))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (1)
140dictionary[key] = existingArray.IsEmpty && value.Equals(defaultArray[0]) ? defaultArray : existingArray.Add(value);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IMethodSymbolExtensions.cs (3)
136methodSymbol.ReturnType.OriginalDefinition.Equals(taskType) || 137methodSymbol.ReturnType.OriginalDefinition.Equals(genericTaskType)); 151return method.ReturnType.Equals(compilation.TaskType()) ||
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (3)
72if (current.Equals(outer)) 86.FirstOrDefault(s => symbol.Equals(s.GetOverriddenMember())); 470if (type.Equals(systemAttributeType))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IPropertySymbolExtensions.cs (1)
17.FirstOrDefault(f => property.Equals(f.AssociatedSymbol));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions_Accessibility.cs (1)
440if (current.Equals(originalContainingType))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (2)
162if (symbol.Equals(impl)) 885return symbol.GetAttributes().Any(static (attribute, attributeClass) => attributeClass.Equals(attribute.AttributeClass), attributeClass);
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (2)
422if (typeSymbol.OriginalDefinition.Equals(expressionOfT)) 608if (baseType.Equals(compilation.ExceptionType()))
src\roslyn\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\roslyn\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\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (2)
192=> symbol.Equals(symbol.ConstructedFrom); 195=> symbol.Equals(symbol.ConstructedFrom);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
592if (x.Equals(y))
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\roslyn\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\roslyn\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\roslyn\src\Analyzers\VisualBasic\CodeFixes\Iterator\VisualBasicConvertToIteratorCodeFixProvider.vb (1)
80If Not method.ReturnType.Equals(ienumerableSymbol) Then
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\FieldGenerator.vb (1)
96Dim canUseFieldReference = field.Type IsNot Nothing AndAlso Not field.Type.Equals(field.ContainingType)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ExpressionSyntaxExtensions.vb (1)
146If Not targetType.Equals(type) Then
src\roslyn\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\roslyn\src\Analyzers\VisualBasic\CodeFixes\Iterator\VisualBasicConvertToIteratorCodeFixProvider.vb (1)
80If Not method.ReturnType.Equals(ienumerableSymbol) Then
Microsoft.CodeAnalysis.VisualBasic.NetAnalyzers (1)
Microsoft.NetCore.Analyzers\Runtime\BasicForwardCancellationTokenToInvocationsFixer.TypeNameVisitor.vb (1)
109If symbol.IsTupleType AndAlso symbol.TupleUnderlyingType IsNot Nothing AndAlso Not symbol.Equals(symbol.TupleUnderlyingType) 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\roslyn\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\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\FieldGenerator.vb (1)
96Dim canUseFieldReference = field.Type IsNot Nothing AndAlso Not field.Type.Equals(field.ContainingType)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ExpressionSyntaxExtensions.vb (1)
146If Not targetType.Equals(type) Then
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\TypeSyntaxGeneratorVisitor.vb (1)
73Not symbol.Equals(symbol.TupleUnderlyingType) Then
Microsoft.CodeAnalysis.Workspaces (96)
Editing\SymbolEditorExtensions.cs (1)
44var typeRef = gen.GetBaseAndInterfaceTypes(decl).FirstOrDefault(r => model.GetTypeInfo(r, cancellationToken).Type.Equals(baseOrInterfaceType));
FindSymbols\FindReferences\Finders\AbstractReferenceFinder_GlobalSuppressions.cs (1)
198return suppressMessageAttribute.Equals(attributeSymbol);
FindSymbols\FindReferences\Finders\AbstractReferenceFinder.cs (1)
630Contract.ThrowIfFalse(notNullOriginalUnreducedSymbol2.GetOriginalUnreducedDefinition().Equals(notNullOriginalUnreducedSymbol2));
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)
237.Where(s => !s.Equals(renamedSymbol) && 263.Where(s => !s.Equals(renamedSymbol) && 274.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)
239if (string.Equals(member.MetadataName, symbol.MetadataName, StringComparison.Ordinal) && member is IMethodSymbol && !member.Equals(symbol))
Rename\SymbolicRenameLocations.cs (1)
155var referencedSymbols = referenceSymbols.Select(r => r.Definition).WhereAsArray(r => !r.Equals(symbol));
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (7)
39if (referencedSymbol.Equals(originalSymbol)) 52if (referencedSymbol.Kind == SymbolKind.Field && originalSymbol.Equals(((IFieldSymbol)referencedSymbol).AssociatedSymbol)) 83return nt.ConstructedFrom.Equals(referencedSymbol) 87return s.Equals(referencedSymbol); 109!originalSymbol.ExplicitInterfaceImplementations().Any(static (s, referencedSymbol) => s.Equals(referencedSymbol), referencedSymbol)) 134=> parameterSymbol is IParameterSymbol parameter && propertySymbol.Equals(parameter.GetAssociatedSynthesizedRecordProperty(cancellationToken)); 284if (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\b310f676f7308b7f\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (1)
504Debug.Assert(localFunction.Equals(localFunction.OriginalDefinition));
src\roslyn\src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (1)
38if (generatedCodeAttribute.Equals(attribute.AttributeClass))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\CollectionExpressionUtilities.cs (4)
64if (namedType.OriginalDefinition.Equals(compilation.SpanOfTType()) || 65namedType.OriginalDefinition.Equals(compilation.ReadOnlySpanOfTType())) 74namedType.AllInterfaces.FirstOrDefault(i => i.OriginalDefinition.Equals(ienumerableOfTType)) ?? 75namedType.AllInterfaces.FirstOrDefault(i => i.OriginalDefinition.Equals(ienumerableType));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\KnownTypes.cs (4)
26if (returnType.Equals(this.TaskType)) 29if (returnType.Equals(this.ValueTaskType)) 32if (returnType.OriginalDefinition.Equals(this.TaskOfTType)) 35if (returnType.OriginalDefinition.Equals(this.ValueTaskOfTType))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
457notImplementedExceptionType.Equals(objectCreation.Type);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (1)
173return type.AllInterfaces.Any(static (i, enumerableType) => i.OriginalDefinition.Equals(enumerableType), enumerableType);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyleRules.cs (1)
95if (symbol.Equals(containingType.FindImplementationForInterfaceMember(implementedInterfaceMember)))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFactsExtensions.cs (1)
37!innerTypeInfo.Type.Equals(innerTypeInfo.ConvertedType))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BodyLevelSymbolKey.cs (1)
91if (possibleSymbol.symbol.Equals(symbol))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ErrorTypeSymbolKey.cs (1)
34var isConstructed = !symbol.Equals(symbol.ConstructedFrom);
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamedTypeSymbolKey.cs (1)
29symbol.Equals(symbol.ConstructedFrom) || symbol.IsUnboundGenericType ? [] : symbol.TypeArguments);
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
922if (symbol.Equals(overriddenMember)) 1006if (!newSymbol.Equals(implementationMember))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (1)
140dictionary[key] = existingArray.IsEmpty && value.Equals(defaultArray[0]) ? defaultArray : existingArray.Add(value);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IMethodSymbolExtensions.cs (3)
136methodSymbol.ReturnType.OriginalDefinition.Equals(taskType) || 137methodSymbol.ReturnType.OriginalDefinition.Equals(genericTaskType)); 151return method.ReturnType.Equals(compilation.TaskType()) ||
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (3)
72if (current.Equals(outer)) 86.FirstOrDefault(s => symbol.Equals(s.GetOverriddenMember())); 470if (type.Equals(systemAttributeType))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IPropertySymbolExtensions.cs (1)
17.FirstOrDefault(f => property.Equals(f.AssociatedSymbol));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions_Accessibility.cs (1)
440if (current.Equals(originalContainingType))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (2)
162if (symbol.Equals(impl)) 885return symbol.GetAttributes().Any(static (attribute, attributeClass) => attributeClass.Equals(attribute.AttributeClass), attributeClass);
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (2)
422if (typeSymbol.OriginalDefinition.Equals(expressionOfT)) 608if (baseType.Equals(compilation.ExceptionType()))
src\roslyn\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\roslyn\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\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (2)
192=> symbol.Equals(symbol.ConstructedFrom); 195=> symbol.Equals(symbol.ConstructedFrom);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
592if (x.Equals(y))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (2)
168=> GetAttributes().WhereAsArray(a => a.AttributeClass.Equals(attributeType)); 171=> GetAttributes().WhereAsArray(a => a.AttributeConstructor.Equals(attributeConstructor));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (1)
265if (containedNamespace.Equals(symbol))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (1)
173=> arg.removeAttributeTypes.Any(attr => attr.Equals(a.AttributeClass)) ||
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IPropertySymbolExtensions.cs (1)
70=> arg.attributesToRemove.Any(attr => attr.Equals(a.AttributeClass)) ||
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
91.Single(m => containingType.Equals(m.Parameters.FirstOrDefault()?.Type));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (1)
148if (!throughMemberType.Equals(interfaceBeingImplemented))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\InitializeParameterHelpersCore.cs (2)
40parameter.Equals(parameterReference.Parameter); 150memberReference.Member.ContainingType.Equals(containingType))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SymbolFinder\SymbolFinderInternal.cs (1)
65symbol.ContainingAssembly.Equals(compilation.Assembly))
src\roslyn\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.Diagnostics.DataContractReader.DataGenerator (1)
EquatableArray.cs (1)
49if (!_items[i].Equals(other._items[i]))
Microsoft.Extensions.Identity.Stores (1)
RoleStoreBase.cs (1)
140if (id.Equals(default(TKey)))
Microsoft.Extensions.Logging.Generators (2)
LoggerMessageGenerator.Parser.cs (2)
1198return Key.Equals(other.Key) && Value.Equals(other.Value);
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.Private.Windows.Core (3)
src\winforms\src\Microsoft.Private.Windows.Polyfills\System\SpanExtensions.cs (1)
30if (!span[i].Equals(value))
Windows\Win32\Foundation\HandleRef.cs (2)
40=> other.Handle.Equals(Handle) && Equals(other.Wrapper, Wrapper); 71public bool IsNull => Handle.Equals(default);
Microsoft.TemplateEngine.Core (1)
Operations\Region.cs (1)
28_toggle = _start.Equals(_end);
Microsoft.TemplateEngine.Edge (1)
Settings\TemplateInfoReader.cs (1)
249public bool Equals(ITemplateParameter other) => _parameter.Equals(other);
Microsoft.TemplateEngine.Utils (1)
EqualityExtensions.cs (1)
11return items.AllAreTheSame(selector, (x, y) => x?.Equals(y) ?? (y == null));
Mono.Cecil (1)
Mono.Cecil\Import.cs (1)
809 return a.Equals (b);
NuGet.Protocol (1)
Model\PackageVulnerabilityInfo.cs (1)
39/// <inheritdoc cref="IEquatable{T}.Equals(T)"/>
Roslyn.Diagnostics.Analyzers (73)
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\b310f676f7308b7f\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (1)
504Debug.Assert(localFunction.Equals(localFunction.OriginalDefinition));
src\roslyn\src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (1)
38if (generatedCodeAttribute.Equals(attribute.AttributeClass))
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (2)
393a.AttributeClass.Equals(wellKnownTypeProvider.GetOrCreateTypeByMetadataName(WellKnownTypeNames.SystemRuntimeCompilerServicesCompilerGeneratedAttribute)) || 394a.AttributeClass.Equals(wellKnownTypeProvider.GetOrCreateTypeByMetadataName(WellKnownTypeNames.SystemCodeDomCompilerGeneratedCodeAttribute))),
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\INamedTypeSymbolExtensions.cs (2)
52if (baseType.Equals(parentType)) 58if (type.OriginalDefinition.AllInterfaces.Any(baseInterface => baseInterface.OriginalDefinition.Equals(parentType)))
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (1)
334operation is ILocalFunctionOperation localFunction && localFunction.Symbol.OriginalDefinition.Equals(lambdaOrLocalFunction.OriginalDefinition));
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\IPropertySymbolExtensions.cs (1)
20=> propertySymbol.ContainingType.GetMembers().OfType<IFieldSymbol>().Any(f => f.IsImplicitlyDeclared && propertySymbol.Equals(f.AssociatedSymbol));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\CollectionExpressionUtilities.cs (4)
64if (namedType.OriginalDefinition.Equals(compilation.SpanOfTType()) || 65namedType.OriginalDefinition.Equals(compilation.ReadOnlySpanOfTType())) 74namedType.AllInterfaces.FirstOrDefault(i => i.OriginalDefinition.Equals(ienumerableOfTType)) ?? 75namedType.AllInterfaces.FirstOrDefault(i => i.OriginalDefinition.Equals(ienumerableType));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\KnownTypes.cs (4)
26if (returnType.Equals(this.TaskType)) 29if (returnType.Equals(this.ValueTaskType)) 32if (returnType.OriginalDefinition.Equals(this.TaskOfTType)) 35if (returnType.OriginalDefinition.Equals(this.ValueTaskOfTType))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
457notImplementedExceptionType.Equals(objectCreation.Type);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (1)
173return type.AllInterfaces.Any(static (i, enumerableType) => i.OriginalDefinition.Equals(enumerableType), enumerableType);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyleRules.cs (1)
95if (symbol.Equals(containingType.FindImplementationForInterfaceMember(implementedInterfaceMember)))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFactsExtensions.cs (1)
37!innerTypeInfo.Type.Equals(innerTypeInfo.ConvertedType))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BodyLevelSymbolKey.cs (1)
91if (possibleSymbol.symbol.Equals(symbol))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ErrorTypeSymbolKey.cs (1)
34var isConstructed = !symbol.Equals(symbol.ConstructedFrom);
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamedTypeSymbolKey.cs (1)
29symbol.Equals(symbol.ConstructedFrom) || symbol.IsUnboundGenericType ? [] : symbol.TypeArguments);
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
922if (symbol.Equals(overriddenMember)) 1006if (!newSymbol.Equals(implementationMember))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (1)
140dictionary[key] = existingArray.IsEmpty && value.Equals(defaultArray[0]) ? defaultArray : existingArray.Add(value);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IMethodSymbolExtensions.cs (3)
136methodSymbol.ReturnType.OriginalDefinition.Equals(taskType) || 137methodSymbol.ReturnType.OriginalDefinition.Equals(genericTaskType)); 151return method.ReturnType.Equals(compilation.TaskType()) ||
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (3)
72if (current.Equals(outer)) 86.FirstOrDefault(s => symbol.Equals(s.GetOverriddenMember())); 470if (type.Equals(systemAttributeType))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IPropertySymbolExtensions.cs (1)
17.FirstOrDefault(f => property.Equals(f.AssociatedSymbol));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions_Accessibility.cs (1)
440if (current.Equals(originalContainingType))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (2)
162if (symbol.Equals(impl)) 885return symbol.GetAttributes().Any(static (attribute, attributeClass) => attributeClass.Equals(attribute.AttributeClass), attributeClass);
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (2)
422if (typeSymbol.OriginalDefinition.Equals(expressionOfT)) 608if (baseType.Equals(compilation.ExceptionType()))
src\roslyn\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\roslyn\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\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (2)
192=> symbol.Equals(symbol.ConstructedFrom); 195=> symbol.Equals(symbol.ConstructedFrom);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
592if (x.Equals(y))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (2)
168=> GetAttributes().WhereAsArray(a => a.AttributeClass.Equals(attributeType)); 171=> GetAttributes().WhereAsArray(a => a.AttributeConstructor.Equals(attributeConstructor));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (1)
265if (containedNamespace.Equals(symbol))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (1)
173=> arg.removeAttributeTypes.Any(attr => attr.Equals(a.AttributeClass)) ||
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IPropertySymbolExtensions.cs (1)
70=> arg.attributesToRemove.Any(attr => attr.Equals(a.AttributeClass)) ||
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
91.Single(m => containingType.Equals(m.Parameters.FirstOrDefault()?.Type));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (1)
148if (!throughMemberType.Equals(interfaceBeingImplemented))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\InitializeParameterHelpersCore.cs (2)
40parameter.Equals(parameterReference.Parameter); 150memberReference.Member.ContainingType.Equals(containingType))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SymbolFinder\SymbolFinderInternal.cs (1)
65symbol.ContainingAssembly.Equals(compilation.Assembly))
src\roslyn\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 (29)
CSharpDoNotUseDebugAssertForInterpolatedStrings.cs (1)
67if (invocation.TargetMethod.Equals(assertMethod) &&
src\4f0789c9734b88bf\CSharpInitializeParameterService.cs (1)
88if (tupleRight.Elements[i] is IParameterReferenceOperation parameterReference && sibling.Equals(parameterReference.Parameter) &&
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\TypeStyle\TypeStyleHelper.cs (2)
147if (UnwrapTupleType(containingType).Equals(returnType)) 159containingType.ContainingNamespace.Equals(returnType.ContainingNamespace))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\DefaultExpressionSyntaxExtensions.cs (1)
55if (entityType != null && entityType.Equals(defaultType))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (2)
1043if (collectionTargetType.OriginalDefinition.Equals(ienumerableType)) 1048if (iface.OriginalDefinition.Equals(ienumerableType))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (2)
786if (expressionType.Equals(typeInfo.ConvertedType?.OriginalDefinition)) 814expressionType.Equals(parameterType))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (6)
545if (originalConvertedType.Equals(rewrittenConvertedType)) 705namedCastedType.OriginalDefinition.Equals(originalSemanticModel.Compilation.ListOfTType())) 1041if (!rewrittenConditionalConvertedType.Equals(conversionOperation.Type)) 1130type.Equals(parameters[0].Type) && 1131type.Equals(parameters[1].Type)) 1152if (!type1.Equals(type2))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpUseImplicitTypeHelper.cs (3)
227return valueType.Equals(parameterType); 297return declaredType != null && declaredType.Equals(initializerType); 305return declaredType.Equals(initializerType) &&
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (2)
274var stringValue = negative && nonNegativeValue.Equals(value) 291if (constant.Key.Equals(value))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\FieldGenerator.cs (1)
114var canUseFieldReference = field.Type != null && !field.Type.Equals(field.ContainingType);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
121if (!targetType.Equals(type))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (2)
96while (arrayType != null && !arrayType.Equals(underlyingType)) 187if (symbol.IsTupleType && symbol.TupleUnderlyingType != null && !symbol.Equals(symbol.TupleUnderlyingType))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (5)
2084if (type.OriginalDefinition.Equals(this.Compilation.TaskOfTType()) || type.OriginalDefinition.Equals(this.Compilation.ValueTaskOfTType())) 2090if (type.OriginalDefinition.Equals(this.Compilation.TaskType()) || type.OriginalDefinition.Equals(this.Compilation.ValueTaskType())) 2303if (symbol.Equals(descendantSymbol))
Roslyn.Diagnostics.VisualBasic.Analyzers (8)
BasicSpecializedEnumerableCreationAnalyzer.vb (1)
73typeInfo.ConvertedType.OriginalDefinition.Equals(Me.GenericEnumerableSymbol)
BasicSymbolDeclaredEventMustBeGeneratedForSourceSymbols.vb (1)
73_sourceModuleType.Equals(invocationSymbol.ContainingType) Then
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Utilities\CastAnalyzer.vb (1)
415If castType.Equals(outerType) OrElse outerType.SpecialType = SpecialType.System_Object Then
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\FieldGenerator.vb (1)
96Dim canUseFieldReference = field.Type IsNot Nothing AndAlso Not field.Type.Equals(field.ContainingType)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ExpressionSyntaxExtensions.vb (1)
146If Not targetType.Equals(type) Then
src\roslyn\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.IO.Packaging (2)
System\IO\Packaging\PackUriHelper.cs (2)
881/// string comparison implemented by <see cref="IEquatable{ValidatedPartUri}.Equals(ValidatedPartUri)"/>. 903return ((IEquatable<ValidatedPartUri>)x).Equals(y);
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.Numerics.Tensors (1)
System\Numerics\Tensors\netcore\Tensor.cs (1)
1812if (!(enumerator1.Current?.Equals(enumerator2.Current) ?? (object?)enumerator2.Current is null))
System.Private.CoreLib (229)
Internal\IntrinsicSupport\EqualityComparerHelpers.cs (2)
120return x.Equals(y); 128return x.Value.Equals(y.Value);
src\runtime\src\coreclr\nativeaot\Common\src\System\Collections\Concurrent\ConcurrentUnifier.cs (1)
160if (key.Equals(_entries[i]._key))
src\runtime\src\coreclr\nativeaot\Common\src\System\Collections\Concurrent\ConcurrentUnifierW.cs (2)
187if (key.Equals(_entries[i]._key)) 216if (_entries[idx]._key.Equals(key))
src\runtime\src\coreclr\nativeaot\Common\src\System\Collections\Concurrent\ConcurrentUnifierWKeyed.cs (1)
200if (key.Equals(actualKey))
src\runtime\src\coreclr\nativeaot\Common\src\System\Collections\Generic\LowLevelDictionary.cs (2)
110if (key.Equals(entry.m_key)) 146if (key.Equals(entry.m_key))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\EqualityComparer.cs (1)
147if (y != null) return x.Equals(y);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\Ordinal.cs (4)
106if (!notEquals.Equals(TVector.Zero)) 112if (TVector.GreaterThanAny((vec1 - vecA) & notEquals, vecZMinusA) || !vec1.Equals(vec2)) 133if (!notEquals.Equals(TVector.Zero)) 139if (TVector.GreaterThanAny((vec1 - vecA) & notEquals, vecZMinusA) || !vec1.Equals(vec2))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int128.cs (1)
88/// <inheritdoc cref="IEquatable{T}.Equals(T)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (2)
3673span.Length != 0 && (span[0]?.Equals(value) ?? (object?)value is null); 3697span.Length != 0 && (span[^1]?.Equals(value) ?? (object?)value is null);
src\runtime\src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.Trim.cs (2)
138if (!trimElement.Equals(span[start])) 175if (!trimElement.Equals(span[end]))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal128.cs (1)
248/// <inheritdoc cref="IEquatable{T}.Equals(T)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal32.cs (1)
244/// <inheritdoc cref="IEquatable{T}.Equals(T)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal64.cs (1)
247/// <inheritdoc cref="IEquatable{T}.Equals(T)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\GenericCache.cs (2)
160if (key.Equals(pEntry._key)) 306if (key.Equals(pEntry._key))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\GCHandle.T.cs (1)
104/// <inheritdoc cref="IEquatable{T}.Equals(T)"/>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\PinnedGCHandle.T.cs (1)
138/// <inheritdoc cref="IEquatable{T}.Equals(T)"/>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\WeakGCHandle.T.cs (1)
113/// <inheritdoc cref="IEquatable{T}.Equals(T)"/>
src\runtime\src\libraries\System.Private.CoreLib\src\System\SpanHelpers.T.cs (199)
261if (value.Equals(Unsafe.Add(ref searchSpace, index + 0)) || 262value.Equals(Unsafe.Add(ref searchSpace, index + 1)) || 263value.Equals(Unsafe.Add(ref searchSpace, index + 2)) || 264value.Equals(Unsafe.Add(ref searchSpace, index + 3)) || 265value.Equals(Unsafe.Add(ref searchSpace, index + 4)) || 266value.Equals(Unsafe.Add(ref searchSpace, index + 5)) || 267value.Equals(Unsafe.Add(ref searchSpace, index + 6)) || 268value.Equals(Unsafe.Add(ref searchSpace, index + 7))) 280if (value.Equals(Unsafe.Add(ref searchSpace, index + 0)) || 281value.Equals(Unsafe.Add(ref searchSpace, index + 1)) || 282value.Equals(Unsafe.Add(ref searchSpace, index + 2)) || 283value.Equals(Unsafe.Add(ref searchSpace, index + 3))) 295if (value.Equals(Unsafe.Add(ref searchSpace, index))) 331if (value.Equals(Unsafe.Add(ref searchSpace, index))) 335if (value.Equals(Unsafe.Add(ref searchSpace, index + 1))) 339if (value.Equals(Unsafe.Add(ref searchSpace, index + 2))) 343if (value.Equals(Unsafe.Add(ref searchSpace, index + 3))) 347if (value.Equals(Unsafe.Add(ref searchSpace, index + 4))) 351if (value.Equals(Unsafe.Add(ref searchSpace, index + 5))) 355if (value.Equals(Unsafe.Add(ref searchSpace, index + 6))) 359if (value.Equals(Unsafe.Add(ref searchSpace, index + 7))) 371if (value.Equals(Unsafe.Add(ref searchSpace, index))) 375if (value.Equals(Unsafe.Add(ref searchSpace, index + 1))) 379if (value.Equals(Unsafe.Add(ref searchSpace, index + 2))) 383if (value.Equals(Unsafe.Add(ref searchSpace, index + 3))) 393if (value.Equals(Unsafe.Add(ref searchSpace, index))) 430if (value0.Equals(lookUp) || value1.Equals(lookUp)) 436if (value0.Equals(lookUp) || value1.Equals(lookUp)) 442if (value0.Equals(lookUp) || value1.Equals(lookUp)) 448if (value0.Equals(lookUp) || value1.Equals(lookUp)) 454if (value0.Equals(lookUp) || value1.Equals(lookUp)) 460if (value0.Equals(lookUp) || value1.Equals(lookUp)) 466if (value0.Equals(lookUp) || value1.Equals(lookUp)) 472if (value0.Equals(lookUp) || value1.Equals(lookUp)) 483if (value0.Equals(lookUp) || value1.Equals(lookUp)) 489if (value0.Equals(lookUp) || value1.Equals(lookUp)) 495if (value0.Equals(lookUp) || value1.Equals(lookUp)) 501if (value0.Equals(lookUp) || value1.Equals(lookUp)) 512if (value0.Equals(lookUp) || value1.Equals(lookUp)) 532else if (lookUp.Equals(value0) || lookUp.Equals(value1)) 555if (value0.Equals(lookUp) || value1.Equals(lookUp) || value2.Equals(lookUp)) 561if (value0.Equals(lookUp) || value1.Equals(lookUp) || value2.Equals(lookUp)) 567if (value0.Equals(lookUp) || value1.Equals(lookUp) || value2.Equals(lookUp)) 573if (value0.Equals(lookUp) || value1.Equals(lookUp) || value2.Equals(lookUp)) 579if (value0.Equals(lookUp) || value1.Equals(lookUp) || value2.Equals(lookUp)) 585if (value0.Equals(lookUp) || value1.Equals(lookUp) || value2.Equals(lookUp)) 591if (value0.Equals(lookUp) || value1.Equals(lookUp) || value2.Equals(lookUp)) 597if (value0.Equals(lookUp) || value1.Equals(lookUp) || value2.Equals(lookUp)) 608if (value0.Equals(lookUp) || value1.Equals(lookUp) || value2.Equals(lookUp)) 614if (value0.Equals(lookUp) || value1.Equals(lookUp) || value2.Equals(lookUp)) 620if (value0.Equals(lookUp) || value1.Equals(lookUp) || value2.Equals(lookUp)) 626if (value0.Equals(lookUp) || value1.Equals(lookUp) || value2.Equals(lookUp)) 637if (value0.Equals(lookUp) || value1.Equals(lookUp) || value2.Equals(lookUp)) 657else if (lookUp.Equals(value0) || lookUp.Equals(value1) || lookUp.Equals(value2)) 696if (Unsafe.Add(ref value, j)!.Equals(candidate)) 714if (candidate.Equals(Unsafe.Add(ref value, j))) 794if (value.Equals(Unsafe.Add(ref searchSpace, length + 7))) 798if (value.Equals(Unsafe.Add(ref searchSpace, length + 6))) 802if (value.Equals(Unsafe.Add(ref searchSpace, length + 5))) 806if (value.Equals(Unsafe.Add(ref searchSpace, length + 4))) 810if (value.Equals(Unsafe.Add(ref searchSpace, length + 3))) 814if (value.Equals(Unsafe.Add(ref searchSpace, length + 2))) 818if (value.Equals(Unsafe.Add(ref searchSpace, length + 1))) 822if (value.Equals(Unsafe.Add(ref searchSpace, length))) 832if (value.Equals(Unsafe.Add(ref searchSpace, length + 3))) 836if (value.Equals(Unsafe.Add(ref searchSpace, length + 2))) 840if (value.Equals(Unsafe.Add(ref searchSpace, length + 1))) 844if (value.Equals(Unsafe.Add(ref searchSpace, length))) 854if (value.Equals(Unsafe.Add(ref searchSpace, length))) 888if (value0.Equals(lookUp) || value1.Equals(lookUp)) 894if (value0.Equals(lookUp) || value1.Equals(lookUp)) 900if (value0.Equals(lookUp) || value1.Equals(lookUp)) 906if (value0.Equals(lookUp) || value1.Equals(lookUp)) 912if (value0.Equals(lookUp) || value1.Equals(lookUp)) 918if (value0.Equals(lookUp) || value1.Equals(lookUp)) 924if (value0.Equals(lookUp) || value1.Equals(lookUp)) 930if (value0.Equals(lookUp) || value1.Equals(lookUp)) 941if (value0.Equals(lookUp) || value1.Equals(lookUp)) 947if (value0.Equals(lookUp) || value1.Equals(lookUp)) 953if (value0.Equals(lookUp) || value1.Equals(lookUp)) 959if (value0.Equals(lookUp) || value1.Equals(lookUp)) 970if (value0.Equals(lookUp) || value1.Equals(lookUp)) 988else if (lookUp.Equals(value0) || lookUp.Equals(value1)) 1012if (value0.Equals(lookUp) || value1.Equals(lookUp) || value2.Equals(lookUp)) 1018if (value0.Equals(lookUp) || value1.Equals(lookUp) || value2.Equals(lookUp)) 1024if (value0.Equals(lookUp) || value1.Equals(lookUp) || value2.Equals(lookUp)) 1030if (value0.Equals(lookUp) || value1.Equals(lookUp) || value2.Equals(lookUp)) 1036if (value0.Equals(lookUp) || value1.Equals(lookUp) || value2.Equals(lookUp)) 1042if (value0.Equals(lookUp) || value1.Equals(lookUp) || value2.Equals(lookUp)) 1048if (value0.Equals(lookUp) || value1.Equals(lookUp) || value2.Equals(lookUp)) 1054if (value0.Equals(lookUp) || value1.Equals(lookUp) || value2.Equals(lookUp)) 1065if (value0.Equals(lookUp) || value1.Equals(lookUp) || value2.Equals(lookUp)) 1071if (value0.Equals(lookUp) || value1.Equals(lookUp) || value2.Equals(lookUp)) 1077if (value0.Equals(lookUp) || value1.Equals(lookUp) || value2.Equals(lookUp)) 1083if (value0.Equals(lookUp) || value1.Equals(lookUp) || value2.Equals(lookUp)) 1094if (value0.Equals(lookUp) || value1.Equals(lookUp) || value2.Equals(lookUp)) 1112else if (lookUp.Equals(value0) || lookUp.Equals(value1) || lookUp.Equals(value2)) 1139if (Unsafe.Add(ref value, j)!.Equals(candidate)) 1155if (candidate.Equals(Unsafe.Add(ref value, j))) 1331if (!(lookUp0?.Equals(lookUp1) ?? (object?)lookUp1 is null)) 1338if (!(lookUp0?.Equals(lookUp1) ?? (object?)lookUp1 is null)) 1345if (!(lookUp0?.Equals(lookUp1) ?? (object?)lookUp1 is null)) 1352if (!(lookUp0?.Equals(lookUp1) ?? (object?)lookUp1 is null)) 1359if (!(lookUp0?.Equals(lookUp1) ?? (object?)lookUp1 is null)) 1366if (!(lookUp0?.Equals(lookUp1) ?? (object?)lookUp1 is null)) 1373if (!(lookUp0?.Equals(lookUp1) ?? (object?)lookUp1 is null)) 1380if (!(lookUp0?.Equals(lookUp1) ?? (object?)lookUp1 is null)) 1394if (!(lookUp0?.Equals(lookUp1) ?? (object?)lookUp1 is null)) 1401if (!(lookUp0?.Equals(lookUp1) ?? (object?)lookUp1 is null)) 1408if (!(lookUp0?.Equals(lookUp1) ?? (object?)lookUp1 is null)) 1415if (!(lookUp0?.Equals(lookUp1) ?? (object?)lookUp1 is null)) 1427if (!(lookUp0?.Equals(lookUp1) ?? (object?)lookUp1 is null)) 3441Unsafe.Add(ref dst, idx) = oldValue.Equals(original) ? newValue : original; 4142if (value.Equals(current)) 4223if (current.Equals(value))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Ascii.Utility.cs (1)
2245return !(vector & TVectorByte.Create((byte)0x80)).Equals(TVectorByte.Zero);
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt128.cs (1)
90/// <inheritdoc cref="IEquatable{T}.Equals(T)" />
System\Reflection\Runtime\MethodInfos\RuntimeNamedMethodInfo.cs (1)
216if (!_common.Equals(other._common))
System\Reflection\Runtime\MethodInfos\RuntimePlainConstructorInfo.cs (1)
132return _common.Equals(other._common);
System.Private.Reflection.Execution (2)
src\runtime\src\coreclr\nativeaot\Common\src\System\Collections\Generic\LowLevelDictionary.cs (2)
110if (key.Equals(entry.m_key)) 146if (key.Equals(entry.m_key))
System.Private.TypeLoader (2)
src\runtime\src\coreclr\nativeaot\Common\src\System\Collections\Generic\LowLevelDictionary.cs (2)
110if (key.Equals(entry.m_key)) 146if (key.Equals(entry.m_key))
System.Private.Windows.Core (2)
Windows\Win32\Foundation\HandleRef.cs (2)
40=> other.Handle.Equals(Handle) && Equals(other.Wrapper, Wrapper); 71public bool IsNull => Handle.Equals(default);
System.Runtime.Numerics (2)
System\Numerics\Complex.Generic.cs (2)
427return m_real.Equals(value.m_real) && m_imaginary.Equals(value.m_imaginary);
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);