1084 overrides of Equals
Aspire.Dashboard (75)
artifacts\obj\Aspire.Dashboard\Debug\net8.0\DashboardService.cs (30)
295public override bool Equals(object other) { 469public override bool Equals(object other) { 870public override bool Equals(object other) { 1329public override bool Equals(object other) { 1635public override bool Equals(object other) { 1913public override bool Equals(object other) { 2189public override bool Equals(object other) { 2518public override bool Equals(object other) { 2840public override bool Equals(object other) { 3116public override bool Equals(object other) { 3454public override bool Equals(object other) { 3743public override bool Equals(object other) { 4050public override bool Equals(object other) { 4611public override bool Equals(object other) { 5188public override bool Equals(object other) { 5403public override bool Equals(object other) { 5666public override bool Equals(object other) { 5918public override bool Equals(object other) { 6129public override bool Equals(object other) { 6378public override bool Equals(object other) { 6677public override bool Equals(object other) { 6946public override bool Equals(object other) { 7171public override bool Equals(object other) { 7451public override bool Equals(object other) { 7985public override bool Equals(object other) { 8494public override bool Equals(object other) { 8701public override bool Equals(object other) { 8982public override bool Equals(object other) { 9254public override bool Equals(object other) { 9521public override bool Equals(object other) {
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\collector\logs\v1\LogsService.cs (3)
121public override bool Equals(object other) { 326public override bool Equals(object other) { 561public override bool Equals(object other) {
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\collector\metrics\v1\MetricsService.cs (3)
123public override bool Equals(object other) { 328public override bool Equals(object other) { 563public override bool Equals(object other) {
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\collector\trace\v1\TraceService.cs (3)
122public override bool Equals(object other) { 327public override bool Equals(object other) { 562public override bool Equals(object other) {
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\common\v1\Common.cs (5)
315public override bool Equals(object other) { 694public override bool Equals(object other) { 894public override bool Equals(object other) { 1099public override bool Equals(object other) { 1380public override bool Equals(object other) {
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\logs\v1\Logs.cs (4)
215public override bool Equals(object other) { 442public override bool Equals(object other) { 726public override bool Equals(object other) { 1165public override bool Equals(object other) {
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\metrics\v1\Metrics.cs (16)
315public override bool Equals(object other) { 542public override bool Equals(object other) { 826public override bool Equals(object other) { 1295public override bool Equals(object other) { 1741public override bool Equals(object other) { 1965public override bool Equals(object other) { 2221public override bool Equals(object other) { 2453public override bool Equals(object other) { 2672public override bool Equals(object other) { 3023public override bool Equals(object other) { 3607public override bool Equals(object other) { 4318public override bool Equals(object other) { 4861public override bool Equals(object other) { 5200public override bool Equals(object other) { 5557public override bool Equals(object other) { 5931public override bool Equals(object other) {
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\resource\v1\Resource.cs (1)
129public override bool Equals(object other) {
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\trace\v1\Trace.cs (7)
161public override bool Equals(object other) { 388public override bool Equals(object other) { 672public override bool Equals(object other) { 1198public override bool Equals(object other) { 1811public override bool Equals(object other) { 2147public override bool Equals(object other) { 2459public override bool Equals(object other) {
Model\Otlp\SelectViewModel.cs (1)
32public override bool Equals(object? obj)
Otlp\Model\MetricValues\HistogramValue.cs (1)
57public override bool Equals(object? obj)
Otlp\Model\MetricValues\MetricValue.cs (1)
42public override bool Equals(object? obj)
Aspire.Hosting (32)
artifacts\obj\Aspire.Hosting\Debug\net8.0\Dashboard\proto\DashboardService.cs (30)
296public override bool Equals(object other) { 470public override bool Equals(object other) { 871public override bool Equals(object other) { 1330public override bool Equals(object other) { 1636public override bool Equals(object other) { 1914public override bool Equals(object other) { 2190public override bool Equals(object other) { 2519public override bool Equals(object other) { 2841public override bool Equals(object other) { 3117public override bool Equals(object other) { 3455public override bool Equals(object other) { 3744public override bool Equals(object other) { 4051public override bool Equals(object other) { 4612public override bool Equals(object other) { 5189public override bool Equals(object other) { 5404public override bool Equals(object other) { 5667public override bool Equals(object other) { 5919public override bool Equals(object other) { 6130public override bool Equals(object other) { 6379public override bool Equals(object other) { 6678public override bool Equals(object other) { 6947public override bool Equals(object other) { 7172public override bool Equals(object other) { 7452public override bool Equals(object other) { 7986public override bool Equals(object other) { 8495public override bool Equals(object other) { 8702public override bool Equals(object other) { 8983public override bool Equals(object other) { 9255public override bool Equals(object other) { 9522public override bool Equals(object other) {
Dcp\Model\ModelCommon.cs (1)
198public override bool Equals(object? obj)
Publishing\PublisherAdvertisementEvent.cs (1)
25public override bool Equals(object? obj)
BasketService (9)
artifacts\obj\BasketService\Debug\net8.0\Protos\Basket.cs (9)
127public override bool Equals(object other) { 337public override bool Equals(object other) { 561public override bool Equals(object other) { 825public override bool Equals(object other) { 1137public override bool Equals(object other) { 1322public override bool Equals(object other) { 1496public override bool Equals(object other) { 1681public override bool Equals(object other) { 1879public override bool Equals(object other) {
ConfigurationSchemaGenerator (2)
RuntimeSource\SourceGenerators\ImmutableEquatableArray.cs (1)
30public override bool Equals(object? obj)
RuntimeSource\SourceGenerators\TypeRef.cs (1)
39public override bool Equals(object? obj) => Equals(obj as TypeRef);
CSharpSyntaxGenerator (1)
Model\Kind.cs (1)
15public override bool Equals(object? obj)
dotnet-svcutil-lib (35)
FrameworkFork\Microsoft.CodeDom\Compiler\CompilerInfo.cs (1)
135public override bool Equals(Object o)
FrameworkFork\Microsoft.Xml\Xml\Cache\XPathNodeInfoAtom.cs (1)
283public override bool Equals(object other)
FrameworkFork\Microsoft.Xml\Xml\schema\BitSet.cs (1)
161public override bool Equals(object obj)
FrameworkFork\Microsoft.Xml\Xml\schema\ChameleonKey.cs (1)
57public override bool Equals(object obj)
FrameworkFork\Microsoft.Xml\Xml\schema\ConstraintStruct.cs (1)
501public override bool Equals(object other)
FrameworkFork\Microsoft.Xml\Xml\Serialization\Compilation.cs (1)
276public override bool Equals(object o)
FrameworkFork\Microsoft.Xml\Xml\Serialization\NameTable.cs (1)
23public override bool Equals(object other)
FrameworkFork\Microsoft.Xml\Xml\Serialization\SourceInfo.cs (1)
255public override bool Equals(object obj)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializer.cs (1)
928public override bool Equals(object obj)
FrameworkFork\Microsoft.Xml\Xml\XmlQualifiedName.cs (1)
113public override bool Equals(object other)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContract.cs (2)
2189public sealed override bool Equals(object other) 2535public override bool Equals(object other)
FrameworkFork\System.Runtime.Serialization\System\Xml\PrefixHandle.cs (1)
238public override bool Equals(object obj)
FrameworkFork\System.Runtime.Serialization\System\Xml\StringHandle.cs (1)
279public override bool Equals(object obj)
FrameworkFork\System.Runtime.Serialization\System\Xml\UniqueId.cs (1)
415public override bool Equals(object obj)
FrameworkFork\System.ServiceModel\System\IdentityModel\Claims\Claim.cs (1)
185public override bool Equals(object obj)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\AddressHeader.cs (1)
68public override bool Equals(object obj)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\DirectionalAction.cs (1)
40public override bool Equals(Object other)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\FramingEncoders.cs (1)
84public override bool Equals(object o)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageVersion.cs (1)
119public override bool Equals(object obj)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\RequestReplyCorrelator.cs (1)
233public override bool Equals(object obj)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketTransportSettings.cs (1)
144public override bool Equals(object obj)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\DispatcherBuilder.cs (1)
71public override bool Equals(Object other)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataConversionError.cs (1)
23public override bool Equals(object obj)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataExchangeClient.cs (2)
732public override bool Equals(object obj) 1072public override bool Equals(object obj)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceReflector.cs (1)
291public override bool Equals(object obj)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlExporter.cs (2)
1237public override bool Equals(object obj) 1262public override bool Equals(object obj)
FrameworkFork\System.ServiceModel\System\ServiceModel\EndpointAddress.cs (1)
461public override bool Equals(object obj)
FrameworkFork\System.ServiceModel\System\ServiceModel\EndpointIdentity.cs (1)
75public override bool Equals(object obj)
Metadata\MetadataDocumentLoader.cs (1)
686public override bool Equals(object obj)
Metadata\MetadataDocumentSaver.cs (1)
403public override bool Equals(object obj)
Metadata\MetadataFileInfo.cs (1)
43public override bool Equals(object obj)
Shared\ProjectDependency.cs (1)
378public override bool Equals(object obj)
GenerateDocumentationAndConfigFiles (10)
src\Compilers\Core\Portable\FileSystem\RelativePathResolver.cs (1)
66public override bool Equals(object? obj) => Equals(obj as RelativePathResolver);
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
86public override bool Equals([NotNullWhen(true)] object? obj) => obj is SegmentedHashSetEqualityComparer<T>;
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
253public override bool Equals(object? obj) => Equals(obj as SymbolNamesWithValueOption<TValue>);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (1)
244public override bool Equals(object? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
519public override bool Equals(object? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
365public override bool Equals(object? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
186public override bool Equals(object obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\Option2.cs (1)
93public override bool Equals(object? obj) => Equals(obj as IOption2);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (1)
71public override bool Equals(object? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\PerLanguageOption2.cs (1)
81public override bool Equals(object? obj) => Equals(obj as IOption2);
IIS.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\FrebTests.cs (1)
182public override bool Equals(object obj)
IISExpress.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\FrebTests.cs (1)
182public override bool Equals(object obj)
illink (1)
IntegrationTestsWebsite (5)
artifacts\obj\IntegrationTestsWebsite\Release\net10.0\Protos\Greet.cs (5)
155public override bool Equals(object other) { 345public override bool Equals(object other) { 560public override bool Equals(object other) { 779public override bool Equals(object other) { 972public override bool Equals(object other) {
InteropClient (13)
artifacts\obj\InteropClient\Release\net10.0\Empty.cs (1)
93public override bool Equals(object other) {
artifacts\obj\InteropClient\Release\net10.0\Messages.cs (12)
158public override bool Equals(object other) { 370public override bool Equals(object other) { 601public override bool Equals(object other) { 937public override bool Equals(object other) { 1370public override bool Equals(object other) { 1642public override bool Equals(object other) { 1880public override bool Equals(object other) { 2112public override bool Equals(object other) { 2415public override bool Equals(object other) { 2691public override bool Equals(object other) { 2894public override bool Equals(object other) { 3101public override bool Equals(object other) {
InteropWebsite (13)
artifacts\obj\InteropWebsite\Release\net10.0\Empty.cs (1)
93public override bool Equals(object other) {
artifacts\obj\InteropWebsite\Release\net10.0\Messages.cs (12)
158public override bool Equals(object other) { 370public override bool Equals(object other) { 601public override bool Equals(object other) { 937public override bool Equals(object other) { 1370public override bool Equals(object other) { 1642public override bool Equals(object other) { 1880public override bool Equals(object other) { 2112public override bool Equals(object other) { 2415public override bool Equals(object other) { 2691public override bool Equals(object other) { 2894public override bool Equals(object other) { 3101public override bool Equals(object other) {
Metrics (10)
src\Compilers\Core\Portable\FileSystem\RelativePathResolver.cs (1)
66public override bool Equals(object? obj) => Equals(obj as RelativePathResolver);
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
86public override bool Equals([NotNullWhen(true)] object? obj) => obj is SegmentedHashSetEqualityComparer<T>;
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
253public override bool Equals(object? obj) => Equals(obj as SymbolNamesWithValueOption<TValue>);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (1)
244public override bool Equals(object? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
519public override bool Equals(object? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
365public override bool Equals(object? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
186public override bool Equals(object obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\Option2.cs (1)
93public override bool Equals(object? obj) => Equals(obj as IOption2);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (1)
71public override bool Equals(object? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\PerLanguageOption2.cs (1)
81public override bool Equals(object? obj) => Equals(obj as IOption2);
Metrics.Legacy (10)
src\Compilers\Core\Portable\FileSystem\RelativePathResolver.cs (1)
66public override bool Equals(object? obj) => Equals(obj as RelativePathResolver);
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
86public override bool Equals([NotNullWhen(true)] object? obj) => obj is SegmentedHashSetEqualityComparer<T>;
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
253public override bool Equals(object? obj) => Equals(obj as SymbolNamesWithValueOption<TValue>);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (1)
244public override bool Equals(object? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
519public override bool Equals(object? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
365public override bool Equals(object? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
186public override bool Equals(object obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\Option2.cs (1)
93public override bool Equals(object? obj) => Equals(obj as IOption2);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (1)
71public override bool Equals(object? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\PerLanguageOption2.cs (1)
81public override bool Equals(object? obj) => Equals(obj as IOption2);
Microsoft.AspNetCore.Antiforgery (1)
Internal\BinaryBlob.cs (1)
48public override bool Equals(object? obj)
Microsoft.AspNetCore.App.Analyzers.Test (1)
RouteEmbeddedLanguage\Infrastructure\FormattedClassification.cs (1)
25public override bool Equals(object obj)
Microsoft.AspNetCore.Components.Endpoints (2)
Discovery\ComponentBuilder.cs (1)
27public override bool Equals(object? obj)
Discovery\PageComponentBuilder.cs (1)
54public override bool Equals(object? obj)
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
Binding\FormDataMapperTests.cs (1)
2274public override bool Equals(object obj) => Equals(obj as Point);
Microsoft.AspNetCore.Connections.Abstractions (1)
NamedPipeEndPoint.cs (1)
55public override bool Equals([NotNullWhen(true)] object? obj)
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (18)
artifacts\obj\Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests\Release\net10.0\Proto\Httpbody.cs (2)
117public override bool Equals(object other) { 340public override bool Equals(object other) {
artifacts\obj\Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests\Release\net10.0\Proto\Issue045270\Hello.cs (2)
119public override bool Equals(object other) { 346public override bool Equals(object other) {
artifacts\obj\Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests\Release\net10.0\Proto\Issue047349\Message.cs (1)
123public override bool Equals(object other) {
artifacts\obj\Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests\Release\net10.0\Proto\Issue048192\Customhttp.cs (3)
141public override bool Equals(object other) { 889public override bool Equals(object other) { 1325public override bool Equals(object other) {
artifacts\obj\Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests\Release\net10.0\Proto\Issue048192\Hello.cs (2)
103public override bool Equals(object other) { 293public override bool Equals(object other) {
artifacts\obj\Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests\Release\net10.0\Proto\Transcoding.cs (8)
600public override bool Equals(object other) { 1426public override bool Equals(object other) { 1838public override bool Equals(object other) { 2435public override bool Equals(object other) { 2752public override bool Equals(object other) { 3246public override bool Equals(object other) { 3561public override bool Equals(object other) { 3770public override bool Equals(object other) {
Microsoft.AspNetCore.Grpc.Microbenchmarks (3)
artifacts\obj\Microsoft.AspNetCore.Grpc.Microbenchmarks\Release\net10.0\Proto\Chat.cs (1)
116public override bool Equals(object other) {
artifacts\obj\Microsoft.AspNetCore.Grpc.Microbenchmarks\Release\net10.0\Proto\Greet.cs (2)
107public override bool Equals(object other) { 313public override bool Equals(object other) {
Microsoft.AspNetCore.Grpc.Swagger.Tests (35)
artifacts\obj\Microsoft.AspNetCore.Grpc.Swagger.Tests\Release\net10.0\Proto\Body.cs (3)
139public override bool Equals(object other) { 366public override bool Equals(object other) { 556public override bool Equals(object other) {
artifacts\obj\Microsoft.AspNetCore.Grpc.Swagger.Tests\Release\net10.0\Proto\Counter.cs (2)
116public override bool Equals(object other) { 330public override bool Equals(object other) {
artifacts\obj\Microsoft.AspNetCore.Grpc.Swagger.Tests\Release\net10.0\Proto\Greeter.cs (2)
108public override bool Equals(object other) { 304public override bool Equals(object other) {
artifacts\obj\Microsoft.AspNetCore.Grpc.Swagger.Tests\Release\net10.0\Proto\Messages.cs (13)
225public override bool Equals(object other) { 543public override bool Equals(object other) { 955public override bool Equals(object other) { 1552public override bool Equals(object other) { 1869public override bool Equals(object other) { 2322public override bool Equals(object other) { 2528public override bool Equals(object other) { 2724public override bool Equals(object other) { 2938public override bool Equals(object other) { 3158public override bool Equals(object other) { 3518public override bool Equals(object other) { 3789public override bool Equals(object other) { 3969public override bool Equals(object other) {
artifacts\obj\Microsoft.AspNetCore.Grpc.Swagger.Tests\Release\net10.0\Proto\Parameters.cs (8)
168public override bool Equals(object other) { 421public override bool Equals(object other) { 721public override bool Equals(object other) { 944public override bool Equals(object other) { 1208public override bool Equals(object other) { 1497public override bool Equals(object other) { 1756public override bool Equals(object other) { 1946public override bool Equals(object other) {
artifacts\obj\Microsoft.AspNetCore.Grpc.Swagger.Tests\Release\net10.0\Proto\Responsebody.cs (3)
121public override bool Equals(object other) { 325public override bool Equals(object other) { 573public override bool Equals(object other) {
artifacts\obj\Microsoft.AspNetCore.Grpc.Swagger.Tests\Release\net10.0\Proto\Xmldoc.cs (4)
121public override bool Equals(object other) { 333public override bool Equals(object other) { 565public override bool Equals(object other) { 766public override bool Equals(object other) {
Microsoft.AspNetCore.Html.Abstractions.Tests (1)
HtmlContentBuilderTest.cs (1)
256public override bool Equals(object? obj)
Microsoft.AspNetCore.Http (1)
BindingAddress.cs (1)
134public override bool Equals(object? obj)
Microsoft.AspNetCore.Http.Extensions (2)
QueryBuilder.cs (1)
103public override bool Equals(object? obj)
src\Shared\ParameterBindingMethodCache.cs (1)
723public override bool Equals([NotNullWhen(true)] object? obj)
Microsoft.AspNetCore.Http.Extensions.Tests (1)
HeaderDictionaryTypeExtensionsTest.cs (1)
320public override bool Equals(object obj)
Microsoft.AspNetCore.Http.RequestDelegateGenerator (4)
StaticRouteHandlerModel\Endpoint.cs (1)
110public override bool Equals(object o) =>
StaticRouteHandlerModel\EndpointParameter.cs (1)
595public override bool Equals(object obj) =>
StaticRouteHandlerModel\EndpointResponse.cs (1)
101public override bool Equals(object obj)
StaticRouteHandlerModel\Model\ParameterLookupKey.cs (1)
26public override bool Equals([NotNullWhen(true)] object? obj)
Microsoft.AspNetCore.Identity (1)
Passkeys\BufferSource.cs (1)
81public override bool Equals(object? obj)
Microsoft.AspNetCore.Mvc.Abstractions (3)
ModelBinding\BindingSource.cs (1)
212public override bool Equals(object? obj)
ModelBinding\ModelMetadata.cs (1)
730public override bool Equals(object? obj)
src\Shared\ParameterBindingMethodCache.cs (1)
723public override bool Equals([NotNullWhen(true)] object? obj)
Microsoft.AspNetCore.Mvc.Core.Test (2)
ModelBinding\Binders\DictionaryModelBinderTest.cs (1)
713public override bool Equals(object obj)
ModelBinding\Validation\DefaultObjectValidatorTests.cs (1)
1580public override bool Equals(object obj)
Microsoft.AspNetCore.Mvc.IntegrationTests (1)
DictionaryModelBinderIntegrationTest.cs (1)
468public override bool Equals(object obj)
Microsoft.AspNetCore.Mvc.TagHelpers (1)
Cache\CacheTagKey.cs (1)
186public override bool Equals(object obj)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
CachedExpressionCompilerTest.cs (1)
959public override bool Equals(object obj)
Microsoft.AspNetCore.OpenApi (1)
src\Shared\ParameterBindingMethodCache.cs (1)
723public override bool Equals([NotNullWhen(true)] object? obj)
Microsoft.AspNetCore.RateLimiting (1)
PolicyNameKey.cs (1)
10public override bool Equals(object? obj)
Microsoft.AspNetCore.Razor (1)
TagHelpers\TagHelperAttribute.cs (1)
207public override bool Equals(object obj)
Microsoft.AspNetCore.Server.HttpSys (1)
UrlPrefix.cs (1)
192public override bool Equals(object? obj)
Microsoft.AspNetCore.Server.IIS (1)
Core\WrappingStream.cs (1)
110public override bool Equals(object? obj)
Microsoft.AspNetCore.Server.Kestrel.Core (5)
Internal\ConfigSectionClone.cs (1)
26public override bool Equals(object? obj)
Internal\ConfigurationReader.cs (3)
301public override bool Equals(object? obj) => 345public override bool Equals(object? obj) => 421public override bool Equals(object? obj) =>
Internal\Infrastructure\WrappingStream.cs (1)
109public override bool Equals(object? obj)
Microsoft.AspNetCore.Session (1)
EncodedKey.cs (1)
40public override bool Equals(object? obj)
Microsoft.AspNetCore.SignalR.Client.Core (1)
HubConnectionBuilder.cs (1)
69public override bool Equals(object? obj)
Microsoft.AspNetCore.SignalR.Common.Tests (1)
Internal\Protocol\CustomObject.cs (1)
23public override bool Equals(object obj)
Microsoft.AspNetCore.SignalR.Core (1)
Internal\HubGroupList.cs (1)
77public override bool Equals(object? obj)
Microsoft.Build (13)
AssemblyLoadInfo.cs (1)
83public override bool Equals(Object obj)
BackEnd\Components\BuildRequestEngine\FullyQualifiedBuildRequest.cs (1)
111public override bool Equals(object obj)
BackEnd\Components\Scheduler\SchedulableRequest.cs (1)
696public override bool Equals(object obj)
BackEnd\Components\SdkResolution\SdkResult.cs (1)
106public override bool Equals(object obj)
BackEnd\Shared\BuildRequestConfiguration.cs (1)
886public override bool Equals(object obj)
BackEnd\Shared\ConfigurationMetadata.cs (1)
122public override bool Equals(object obj)
BuildCheck\Checks\NoEnvironmentVariablePropertyCheck.cs (1)
108public override bool Equals(object? obj) => Equals(obj as EnvironmentVariableIdentityKey);
BuildCheck\Infrastructure\CustomConfigurationData.cs (1)
47public override bool Equals(object? obj)
ElementLocation\ElementLocation.cs (1)
101public override bool Equals(object obj)
Instance\ProjectItemInstance.cs (1)
1599public override bool Equals(object obj)
Logging\ParallelLogger\ParallelLoggerHelpers.cs (2)
571public override bool Equals(object obj) 663public override bool Equals(object obj)
Logging\TerminalLogger\TerminalNodeStatus.cs (1)
63public override bool Equals(object? obj) =>
Microsoft.Build.Engine.UnitTests (1)
BackEnd\BinaryTranslator_Tests.cs (1)
1465public override bool Equals(object obj)
Microsoft.Build.Framework (4)
BuildEventContext.cs (1)
240public override bool Equals(object? obj)
Sdk\SdkReference.cs (1)
116public override bool Equals(object obj)
Sdk\SdkResultItem.cs (1)
38public override bool Equals(object? obj)
Telemetry\TaskExecutionStats.cs (1)
51public override bool Equals(object? obj)
Microsoft.Build.Tasks.Core (5)
AssemblyRemapping.cs (1)
38public override bool Equals(object obj)
GetSDKReferenceFiles.cs (2)
760public override bool Equals(object obj) 839public override bool Equals(object obj)
ResolveSDKReference.cs (1)
942public override bool Equals(object obj)
RoslynCodeTaskFactory\RoslynCodeTaskFactoryTaskInfo.cs (1)
59public override bool Equals(object obj)
Microsoft.Build.Utilities.Core (2)
LockCheck.cs (1)
232public override bool Equals(object obj)
TargetPlatformSDK.cs (1)
151public override bool Equals(object obj)
Microsoft.Cci.Extensions (1)
Writers\Syntax\SyntaxToken.cs (1)
21public override bool Equals(object obj)
Microsoft.CodeAnalysis (45)
CodeGen\ArrayMembers.cs (1)
366public sealed override bool Equals(object? obj)
CodeGen\PrivateImplementationDetails.cs (2)
918public sealed override bool Equals(object? obj) 1132public sealed override bool Equals(object? obj)
Collections\Rope.cs (1)
58public override bool Equals(object? obj)
Compilation\CompilationOptions.cs (1)
611public abstract override bool Equals(object? obj);
Compilation\ParseOptions.cs (1)
132public abstract override bool Equals(object? obj);
Compilation\SourceReferenceResolver.cs (1)
21public abstract override bool Equals(object? other);
Compilation\XmlReferenceResolver.cs (1)
19public abstract override bool Equals(object? other);
ConstantValue.cs (1)
904public override bool Equals(object? obj)
Diagnostic\Diagnostic.cs (1)
424public sealed override bool Equals(object? obj)
Diagnostic\DiagnosticDescriptor.cs (1)
214public override bool Equals(object? obj)
Diagnostic\DiagnosticInfo.cs (1)
407public sealed override bool Equals(object? obj)
Diagnostic\LocalizableString.cs (1)
70public sealed override bool Equals(object? other)
Diagnostic\Location.cs (1)
92public abstract override bool Equals(object? obj);
Diagnostic\ProgrammaticSuppressionInfo.cs (1)
34public override bool Equals(object? obj)
Diagnostic\SuppressionDescriptor.cs (1)
87public override bool Equals(object? obj)
DiagnosticAnalyzer\AnalyzerFileReference.cs (1)
70public override bool Equals(object? obj)
DiagnosticAnalyzer\AnalyzerOptions.cs (1)
66public override bool Equals(object? obj)
DiagnosticAnalyzer\DiagnosticAnalyzer.cs (1)
26public sealed override bool Equals(object? obj)
DocumentationComments\DocumentationProvider.cs (1)
43public abstract override bool Equals(object? obj);
Emit\EditAndContinue\DeletedPEMethodDefinition.cs (1)
180public sealed override bool Equals(object? obj)
Emit\EditAndContinue\DeletedSourceMethodDefinition.cs (1)
141public sealed override bool Equals(object? obj)
Emit\EmitOptions.cs (1)
275public override bool Equals(object? obj)
Emit\ErrorType.cs (1)
194public sealed override bool Equals(object obj)
Emit\NoPia\CommonEmbeddedMember.cs (1)
122public sealed override bool Equals(object obj)
Emit\NoPia\CommonEmbeddedParameter.cs (1)
274public sealed override bool Equals(object obj)
Emit\NoPia\CommonEmbeddedType.cs (1)
719public sealed override bool Equals(object obj)
Emit\NoPia\CommonEmbeddedTypeParameter.cs (1)
240public sealed override bool Equals(object obj)
Emit\NoPia\VtblGap.cs (1)
260public sealed override bool Equals(object obj)
FileSystem\RelativePathResolver.cs (1)
66public override bool Equals(object? obj) => Equals(obj as RelativePathResolver);
MetadataReference\AssemblyIdentity.cs (1)
400public override bool Equals(object? obj)
MetadataReference\CompilationReference.cs (1)
133public override bool Equals(object? obj)
MetadataReference\MetadataReferenceResolver.cs (1)
15public abstract override bool Equals(object? other);
PEWriter\InheritedTypeParameter.cs (1)
306public sealed override bool Equals(object? obj)
PEWriter\MethodDefinitionBase.cs (1)
173public sealed override bool Equals(object obj)
PEWriter\ModifiedTypeReference.cs (1)
152public sealed override bool Equals(object? obj)
PEWriter\ParameterDefinitionBase.cs (1)
37public sealed override bool Equals(object? obj)
PEWriter\RootModuleType.cs (1)
331public sealed override bool Equals(object? obj)
ReferenceManager\AssemblyData.cs (1)
74public sealed override bool Equals(object? obj)
SourceGeneration\GlobalAliases.cs (1)
76public override bool Equals(object? obj)
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
86public override bool Equals([NotNullWhen(true)] object? obj) => obj is SegmentedHashSetEqualityComparer<T>;
StrongName\StrongNameFileSystem.cs (1)
48public override bool Equals(object? obj)
StrongName\StrongNameProvider.cs (1)
21public abstract override bool Equals(object? other);
SymbolDisplay\FormattedSymbol.cs (1)
38public override bool Equals(object obj)
Syntax\SyntaxAnnotation.cs (1)
72public override bool Equals(object? obj)
Microsoft.CodeAnalysis.Analyzers (10)
src\Compilers\Core\Portable\FileSystem\RelativePathResolver.cs (1)
66public override bool Equals(object? obj) => Equals(obj as RelativePathResolver);
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
86public override bool Equals([NotNullWhen(true)] object? obj) => obj is SegmentedHashSetEqualityComparer<T>;
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
253public override bool Equals(object? obj) => Equals(obj as SymbolNamesWithValueOption<TValue>);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (1)
244public override bool Equals(object? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
519public override bool Equals(object? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
365public override bool Equals(object? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
186public override bool Equals(object obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\Option2.cs (1)
93public override bool Equals(object? obj) => Equals(obj as IOption2);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (1)
71public override bool Equals(object? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\PerLanguageOption2.cs (1)
81public override bool Equals(object? obj) => Equals(obj as IOption2);
Microsoft.CodeAnalysis.AnalyzerUtilities (19)
src\Compilers\Core\Portable\FileSystem\RelativePathResolver.cs (1)
66public override bool Equals(object? obj) => Equals(obj as RelativePathResolver);
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
86public override bool Equals([NotNullWhen(true)] object? obj) => obj is SegmentedHashSetEqualityComparer<T>;
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
253public override bool Equals(object? obj) => Equals(obj as SymbolNamesWithValueOption<TValue>);
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PropertySetAnalysis\ConstructorMapper.cs (1)
110public override bool Equals(object obj)
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PropertySetAnalysis\HazardousUsageEvaluator.cs (1)
129public override bool Equals(object obj)
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PropertySetAnalysis\PropertyMapper.cs (1)
128public override bool Equals(object obj)
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\SanitizerInfo.cs (1)
95public override bool Equals(object obj)
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\SinkInfo.cs (1)
85public override bool Equals(object obj)
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\SourceInfo.cs (1)
210public override bool Equals(object obj)
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\TaintedDataSymbolMap.cs (1)
163public override bool Equals(object obj)
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\CacheBasedEquatable.cs (1)
44public sealed override bool Equals(object? obj) => Equals(obj as T);
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\ThrownExceptionInfo.cs (1)
105public override bool Equals(object obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (1)
244public override bool Equals(object? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
519public override bool Equals(object? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
365public override bool Equals(object? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
186public override bool Equals(object obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\Option2.cs (1)
93public override bool Equals(object? obj) => Equals(obj as IOption2);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (1)
71public override bool Equals(object? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\PerLanguageOption2.cs (1)
81public override bool Equals(object? obj) => Equals(obj as IOption2);
Microsoft.CodeAnalysis.BannedApiAnalyzers (10)
src\Compilers\Core\Portable\FileSystem\RelativePathResolver.cs (1)
66public override bool Equals(object? obj) => Equals(obj as RelativePathResolver);
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
86public override bool Equals([NotNullWhen(true)] object? obj) => obj is SegmentedHashSetEqualityComparer<T>;
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
253public override bool Equals(object? obj) => Equals(obj as SymbolNamesWithValueOption<TValue>);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (1)
244public override bool Equals(object? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
519public override bool Equals(object? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
365public override bool Equals(object? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
186public override bool Equals(object obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\Option2.cs (1)
93public override bool Equals(object? obj) => Equals(obj as IOption2);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (1)
71public override bool Equals(object? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\PerLanguageOption2.cs (1)
81public override bool Equals(object? obj) => Equals(obj as IOption2);
Microsoft.CodeAnalysis.CodeStyle (9)
src\Compilers\Core\Portable\FileSystem\RelativePathResolver.cs (1)
66public override bool Equals(object? obj) => Equals(obj as RelativePathResolver);
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
86public override bool Equals([NotNullWhen(true)] object? obj) => obj is SegmentedHashSetEqualityComparer<T>;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (1)
244public override bool Equals(object? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
519public override bool Equals(object? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
365public override bool Equals(object? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
186public override bool Equals(object obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\Option2.cs (1)
93public override bool Equals(object? obj) => Equals(obj as IOption2);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (1)
71public override bool Equals(object? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\PerLanguageOption2.cs (1)
81public override bool Equals(object? obj) => Equals(obj as IOption2);
Microsoft.CodeAnalysis.Collections.Package (1)
Internal\SegmentedHashSetEqualityComparer`1.cs (1)
86public override bool Equals([NotNullWhen(true)] object? obj) => obj is SegmentedHashSetEqualityComparer<T>;
Microsoft.CodeAnalysis.CSharp (26)
Binder\DecisionDagBuilder.cs (3)
2211public override bool Equals(object? obj) => this == obj || obj is One other && this.Test.Equals(other.Test); 2317public override bool Equals(object? obj) => this == obj || obj is Not n && Negated.Equals(n.Negated); 2368public sealed override bool Equals(object? obj) =>
BoundTree\BoundDagTemp.cs (1)
23public override bool Equals(object? obj) => obj is BoundDagTemp other && this.Equals(other);
BoundTree\BoundDagTest.cs (1)
16public override bool Equals([NotNullWhen(true)] object? obj) => this.Equals(obj as BoundDagTest);
BoundTree\BoundDecisionDagNode.cs (1)
18public override bool Equals(object? other)
BoundTree\UnboundLambda.cs (1)
1061public override bool Equals(object? obj)
Emitter\Model\ExpandedVarargsMethodReference.cs (1)
225public sealed override bool Equals(object obj)
Emitter\Model\FunctionPointerTypeSymbolAdapter.cs (1)
83public override bool Equals(object? obj)
Emitter\Model\NamedTypeReference.cs (1)
169public sealed override bool Equals(object obj)
Emitter\Model\ParameterTypeInformation.cs (2)
69public sealed override bool Equals(object obj) 120public sealed override bool Equals(object obj)
Emitter\Model\SymbolAdapter.cs (1)
181public sealed override bool Equals(object obj)
Emitter\Model\TypeMemberReference.cs (1)
54public sealed override bool Equals(object obj)
Symbols\CustomModifier.cs (1)
46public abstract override bool Equals(object obj);
Symbols\PublicModel\PreprocessingSymbol.cs (1)
32public override bool Equals(object? obj)
Symbols\PublicModel\Symbol.cs (1)
84public sealed override bool Equals(object obj)
Symbols\Symbol.cs (1)
807public sealed override bool Equals(object obj)
Symbols\SymbolDistinguisher.cs (1)
220public override bool Equals(object? obj)
Utilities\InterceptableLocation.cs (1)
41public abstract override bool Equals(object? obj);
Utilities\ValueSetFactory.BoolValueSet.cs (1)
98public override bool Equals(object? obj) => this == obj;
Utilities\ValueSetFactory.EnumeratedValueSet.cs (1)
163public override bool Equals(object? obj)
Utilities\ValueSetFactory.FloatingValueSet.cs (1)
159public override bool Equals(object? obj) => this == obj ||
Utilities\ValueSetFactory.NintValueSet.cs (1)
122public override bool Equals(object? obj) => obj is NintValueSet other &&
Utilities\ValueSetFactory.NuintValueSet.cs (1)
106public override bool Equals(object? obj) => obj is NuintValueSet other &&
Utilities\ValueSetFactory.NumericValueSet.cs (1)
320public override bool Equals(object? obj) =>
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
CodeActions\Preview\ErrorCases\ExceptionInCodeAction.cs (1)
60public override bool Equals(object obj)
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
InteractiveSessionTests.cs (1)
641public override bool Equals(object obj) => true;
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
SourceGeneration\GeneratorDriverTests.cs (1)
1571public override bool Equals(object? obj) => throw _toThrow;
Microsoft.CodeAnalysis.EditorFeatures (8)
Extensibility\NavigationBar\NavigationBarItem.cs (1)
43public abstract override bool Equals(object? obj);
Extensibility\NavigationBar\NavigationBarSelectedItems.cs (1)
27public override bool Equals(object? obj)
InlineHints\InlineHintDataTag.cs (1)
44public override bool Equals(object? obj)
IntelliSense\QuickInfo\QuickInfoHyperLink.cs (1)
27public override bool Equals(object? obj)
NavigationBar\NavigationBarModel.cs (1)
16public override bool Equals(object? obj)
StringIndentation\StringIndentationTag.cs (1)
45public override bool Equals(object? obj)
Structure\StructureTag.cs (1)
83public override bool Equals(object? obj)
Suggestions\SuggestedActions\SuggestedAction.cs (1)
290public override bool Equals(object obj)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Classification\FormattedClassification.cs (1)
32public override bool Equals(object obj)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
Debugger\MemberInfo\MethodInfoImpl.cs (1)
149public override bool Equals(object obj)
Microsoft.CodeAnalysis.Extensions.Package (1)
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
86public override bool Equals([NotNullWhen(true)] object? obj) => obj is SegmentedHashSetEqualityComparer<T>;
Microsoft.CodeAnalysis.ExternalAccess.Copilot (1)
Analyzer\CopilotChecksumWrapper.cs (1)
32public override bool Equals(object? obj)
Microsoft.CodeAnalysis.Features (6)
AddImport\References\Reference.cs (1)
64public override bool Equals(object obj)
EditAndContinue\DeclarationBody.cs (1)
91public override bool Equals(object? obj)
FindUsages\DefinitionItem.DetachedDefinitionItem.cs (1)
49public override bool Equals(object? obj)
MetadataAsSource\DecompilationMetadataAsSourceFileProvider.cs (1)
440public override bool Equals(object? obj)
NavigationBar\NavigationBarItems\RoslynNavigationBarItem.cs (1)
45public abstract override bool Equals(object? obj);
SignatureHelp\AbstractSignatureHelpProvider.SymbolKeySignatureHelpItem.cs (1)
25public override bool Equals(object? obj)
Microsoft.CodeAnalysis.InteractiveHost (1)
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
86public override bool Equals([NotNullWhen(true)] object? obj) => obj is SegmentedHashSetEqualityComparer<T>;
Microsoft.CodeAnalysis.LanguageServer.Protocol (14)
Protocol\CodeDescription.cs (1)
58public override bool Equals(object obj)
Protocol\Diagnostic.cs (1)
159public override bool Equals(object obj)
Protocol\DocumentUri.cs (1)
71public override bool Equals([NotNullWhen(true)] object? obj) => obj is DocumentUri other && this.Equals(other);
Protocol\Extensions\VSImageId.cs (1)
39public override bool Equals(object obj)
Protocol\Extensions\VSProjectContext.cs (1)
87public override bool Equals(object obj)
Protocol\Internal\VSInternalIconMapping.cs (1)
38public override bool Equals(object? obj)
Protocol\Internal\VSInternalKindAndModifier.cs (1)
58public override bool Equals(object obj)
Protocol\Location.cs (1)
48public override bool Equals(object obj)
Protocol\LocationLink.cs (1)
59public override bool Equals(object obj) => Equals(obj as LocationLink);
Protocol\Position.cs (1)
97public override bool Equals(object obj)
Protocol\Range.cs (1)
62public override bool Equals(object obj)
Protocol\SymbolInformation.cs (1)
106public override bool Equals(object obj)
Protocol\TextDocumentIdentifier.cs (1)
62public override bool Equals(object obj)
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\TypeRef.cs (1)
50public override bool Equals(object? obj)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (10)
src\Compilers\Core\Portable\FileSystem\RelativePathResolver.cs (1)
66public override bool Equals(object? obj) => Equals(obj as RelativePathResolver);
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
86public override bool Equals([NotNullWhen(true)] object? obj) => obj is SegmentedHashSetEqualityComparer<T>;
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
253public override bool Equals(object? obj) => Equals(obj as SymbolNamesWithValueOption<TValue>);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (1)
244public override bool Equals(object? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
519public override bool Equals(object? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
365public override bool Equals(object? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
186public override bool Equals(object obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\Option2.cs (1)
93public override bool Equals(object? obj) => Equals(obj as IOption2);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (1)
71public override bool Equals(object? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\PerLanguageOption2.cs (1)
81public override bool Equals(object? obj) => Equals(obj as IOption2);
Microsoft.CodeAnalysis.PublicApiAnalyzers (10)
src\Compilers\Core\Portable\FileSystem\RelativePathResolver.cs (1)
66public override bool Equals(object? obj) => Equals(obj as RelativePathResolver);
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
86public override bool Equals([NotNullWhen(true)] object? obj) => obj is SegmentedHashSetEqualityComparer<T>;
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
253public override bool Equals(object? obj) => Equals(obj as SymbolNamesWithValueOption<TValue>);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (1)
244public override bool Equals(object? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
519public override bool Equals(object? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
365public override bool Equals(object? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
186public override bool Equals(object obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\Option2.cs (1)
93public override bool Equals(object? obj) => Equals(obj as IOption2);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (1)
71public override bool Equals(object? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\PerLanguageOption2.cs (1)
81public override bool Equals(object? obj) => Equals(obj as IOption2);
Microsoft.CodeAnalysis.ResxSourceGenerator (10)
src\Compilers\Core\Portable\FileSystem\RelativePathResolver.cs (1)
66public override bool Equals(object? obj) => Equals(obj as RelativePathResolver);
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
86public override bool Equals([NotNullWhen(true)] object? obj) => obj is SegmentedHashSetEqualityComparer<T>;
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
253public override bool Equals(object? obj) => Equals(obj as SymbolNamesWithValueOption<TValue>);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (1)
244public override bool Equals(object? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
519public override bool Equals(object? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
365public override bool Equals(object? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
186public override bool Equals(object obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\Option2.cs (1)
93public override bool Equals(object? obj) => Equals(obj as IOption2);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (1)
71public override bool Equals(object? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\PerLanguageOption2.cs (1)
81public override bool Equals(object? obj) => Equals(obj as IOption2);
Microsoft.CodeAnalysis.Scripting (2)
src\Compilers\Core\Portable\FileSystem\RelativePathResolver.cs (1)
66public override bool Equals(object? obj) => Equals(obj as RelativePathResolver);
src\Compilers\Shared\GlobalAssemblyCacheHelpers\GacFileResolver.cs (1)
93public override bool Equals(object obj) => Equals(obj as GacFileResolver);
Microsoft.CodeAnalysis.Test.Utilities (1)
Diagnostics\DiagnosticDescription.cs (1)
247public override bool Equals(object obj)
Microsoft.CodeAnalysis.Threading.Package (1)
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
86public override bool Equals([NotNullWhen(true)] object? obj) => obj is SegmentedHashSetEqualityComparer<T>;
Microsoft.CodeAnalysis.UnitTests (7)
Collections\GenericParameterHelper.cs (1)
29public override bool Equals(object? obj)
Collections\HashSet\TestingTypes.cs (2)
35public override bool Equals(object? obj) 66public override bool Equals(object? obj)
Collections\ImmutableListTestBase.cs (1)
586public override bool Equals(object? obj)
Collections\ImmutableSegmentedDictionaryTest.cs (1)
388public override bool Equals(object? obj)
MetadataReferences\FusionAssemblyPortabilityPolicy.cs (1)
82public override bool Equals(object obj)
PEWriter\UsedNamespaceOrTypeTests.cs (1)
30public override bool Equals(object obj) => (obj as EqualsProxy)?.Name.Equals(Name) == true;
Microsoft.CodeAnalysis.VisualBasic (8)
BoundTree\UnboundLambda.vb (1)
190Public Overrides Function Equals(obj As Object) As Boolean
Emit\NamedTypeReference.vb (1)
125Public NotOverridable Overrides Function Equals(obj As Object) As Boolean
Emit\ParameterTypeInformation.vb (1)
51Public Overrides Function Equals(obj As Object) As Boolean
Emit\SymbolAdapter.vb (1)
156Public NotOverridable Overrides Function Equals(obj As Object) As Boolean
Emit\TypeMemberReference.vb (1)
44Public NotOverridable Overrides Function Equals(obj As Object) As Boolean
GlobalImport.vb (1)
141Public Overrides Function Equals(obj As Object) As Boolean
Symbols\CustomModifier.vb (1)
40Public MustOverride Overrides Function Equals(obj As Object) As Boolean
Symbols\Symbol.vb (1)
834Public Overrides Function [Equals](obj As Object) As Boolean
Microsoft.CodeAnalysis.Workspaces (26)
CodeStyle\CodeStyleOption.cs (1)
69public override bool Equals(object? obj)
Diagnostics\DiagnosticData.cs (1)
107public override bool Equals(object? obj)
FindSymbols\IStreamingFindReferencesProgress.cs (1)
44public override bool Equals(object? obj)
Options\Option.cs (1)
96public override bool Equals(object? obj) => Equals(obj as IOption2);
Options\PerLanguageOption.cs (1)
88public override bool Equals(object? obj) => Equals(obj as IOption2);
Remote\RemoteArguments.cs (2)
32public override bool Equals(object? obj) 208public override bool Equals(object? obj)
src\Compilers\Core\Portable\FileSystem\RelativePathResolver.cs (1)
66public override bool Equals(object? obj) => Equals(obj as RelativePathResolver);
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
86public override bool Equals([NotNullWhen(true)] object? obj) => obj is SegmentedHashSetEqualityComparer<T>;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (1)
244public override bool Equals(object? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
519public override bool Equals(object? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
365public override bool Equals(object? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
186public override bool Equals(object obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\Option2.cs (1)
93public override bool Equals(object? obj) => Equals(obj as IOption2);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (1)
71public override bool Equals(object? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\PerLanguageOption2.cs (1)
81public override bool Equals(object? obj) => Equals(obj as IOption2);
SymbolSearch\ISymbolSearchService.cs (1)
119public override bool Equals(object? obj)
Workspace\Solution\DocumentId.cs (1)
68public override bool Equals(object? obj)
Workspace\Solution\ProjectCone.cs (1)
29public override bool Equals(object? obj)
Workspace\Solution\ProjectId.cs (1)
77public override bool Equals(object? obj)
Workspace\Solution\ProjectReference.cs (1)
40public override bool Equals(object obj)
Workspace\Solution\ProjectState.cs (1)
610public override bool Equals(object? obj)
Workspace\Solution\SolutionId.cs (1)
61public override bool Equals(object obj)
Workspace\Solution\SourceGeneratorExecutionVersion.cs (1)
79public override bool Equals([NotNullWhen(true)] object? obj)
Workspace\Solution\StateChecksums.cs (1)
369public override bool Equals(object? obj)
Workspace\Solution\TextDocumentStates.cs (1)
278public override bool Equals(object? obj)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
86public override bool Equals([NotNullWhen(true)] object? obj) => obj is SegmentedHashSetEqualityComparer<T>;
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
ObjectSerializationTests.cs (1)
178public override Boolean Equals(Object obj)
SolutionTests\SolutionWithSourceGeneratorTests.cs (1)
114public override bool Equals(object? obj) => Equals(obj as AnalyzerReference);
Microsoft.CommonLanguageServerProtocol.Framework.Package (1)
TypeRef.cs (1)
50public override bool Equals(object? obj)
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\Semantics\WithType.cs (1)
80public override bool Equals(object obj)
Microsoft.DotNet.Build.Manifest (1)
ArtifactModel.cs (1)
93public override bool Equals(object obj)
Microsoft.DotNet.Build.Tasks.Feed (1)
src\model\TargetFeedConfig.cs (1)
96public override bool Equals(object obj)
Microsoft.DotNet.Build.Tasks.Packaging (1)
PackageReport.cs (1)
147public override bool Equals(object other)
Microsoft.DotNet.Build.Tasks.Workloads (1)
Swix\SwixComponent.cs (1)
136public override bool Equals(object? obj)
Microsoft.DotNet.XUnitAssert.Tests (4)
EqualityAssertsTests.cs (4)
4364 public override bool Equals(object? obj) => 4442 public override bool Equals(object? obj) => Value == ((ComparableThrower?)obj)!.Value; 4547 public override bool Equals(object? obj) => Value == ((IntWrapper?)obj)!.Value; 4627 public override bool Equals(object? obj) => result;
Microsoft.Extensions.AI.Abstractions (4)
ChatCompletion\AutoChatToolMode.cs (1)
24public override bool Equals(object? obj) => obj is AutoChatToolMode;
ChatCompletion\ChatResponseFormatText.cs (1)
23public override bool Equals(object? obj) => obj is ChatResponseFormatText;
ChatCompletion\NoneChatToolMode.cs (1)
24public override bool Equals(object? obj) => obj is NoneChatToolMode;
ChatCompletion\RequiredChatToolMode.cs (1)
55public override bool Equals(object? obj) =>
Microsoft.Extensions.AI.Evaluation.Safety (1)
ContentSafetyService.UrlCacheKey.cs (1)
37public override bool Equals(object? other)
Microsoft.Extensions.Compliance.Abstractions (1)
Classification\DataClassificationSet.cs (1)
97public override bool Equals(object? obj) => Equals(obj as DataClassificationSet);
Microsoft.Extensions.FileSystemGlobbing (1)
Internal\PathSegments\LiteralPathSegment.cs (1)
31public override bool Equals([NotNullWhen(true)] object? obj)
Microsoft.Extensions.Http.Resilience.Tests (2)
artifacts\obj\Microsoft.Extensions.Http.Resilience.Tests\Debug\net9.0\Protos\Greet.cs (2)
105public override bool Equals(object other) { 298public override bool Equals(object other) {
Microsoft.Extensions.ServiceDiscovery (1)
UriEndPoint.cs (1)
20public override bool Equals(object? obj)
Microsoft.Interop.ComInterfaceGenerator (1)
ComMethodContext.cs (1)
56public override bool Equals(object obj) => obj is ComMethodContext other && Equals(other);
Microsoft.Maui.Controls (10)
Accelerator.cs (1)
85 public override bool Equals(object obj)
AnimatableKey.cs (1)
29 public override bool Equals(object obj)
GradientStop.cs (1)
42 public override bool Equals(object obj)
ImageBrush.cs (1)
28 public override bool Equals(object? obj) =>
Routing.cs (1)
285 public override bool Equals(object obj)
Shell\ShellAppearance.cs (1)
102 public override bool Equals(object obj)
SolidColorBrush.cs (1)
45 public override bool Equals(object obj)
VisualStateManager.cs (3)
349 public override bool Equals(object obj) => Equals(obj as VisualStateGroupList); 567 public override bool Equals(object obj) => Equals(obj as VisualStateGroup); 651 public override bool Equals(object obj) => Equals(obj as VisualState);
Microsoft.Maui.Controls.Maps (1)
Pin.cs (1)
82 public override bool Equals(object? obj)
Microsoft.Maui.Controls.SourceGen (1)
src\Controls\src\Xaml\XamlNode.cs (1)
58 public override bool Equals(object obj)
Microsoft.Maui.Controls.Xaml (1)
XamlNode.cs (1)
58 public override bool Equals(object obj)
Microsoft.Maui.Essentials (1)
Types\Location.shared.cs (1)
251 public override bool Equals(object obj)
Microsoft.Maui.Graphics (4)
Color.cs (1)
106 public override bool Equals(object obj)
Insets.cs (1)
65 public override bool Equals(object obj)
InsetsF.cs (1)
65 public override bool Equals(object obj)
PathF.cs (1)
1290 public override bool Equals(object obj)
Microsoft.Maui.Maps (1)
Primitives\MapSpan.cs (1)
43 public override bool Equals(object? obj)
Microsoft.ML.AutoML (4)
Experiment\SuggestedPipeline.cs (1)
40public override bool Equals(object obj)
Sweepers\Parameters.cs (3)
94public override bool Equals(object obj) 140public override bool Equals(object obj) 183public override bool Equals(object obj)
Microsoft.ML.Core (1)
Utilities\SummaryStatistics.cs (1)
20public override bool Equals(object obj)
Microsoft.ML.Data (4)
Data\DataViewTypeManager.cs (1)
239public override bool Equals(object obj)
EntryPoints\EntryPointNode.cs (3)
1222public override bool Equals(object obj) 1248public override bool Equals(object obj) 1276public override bool Equals(object obj)
Microsoft.ML.DataView (2)
KeyDataViewType.cs (1)
156public override bool Equals(object other)
VectorType.cs (1)
141public override bool Equals(object other)
Microsoft.ML.OnnxConverter (19)
OnnxMl.cs (19)
511public override bool Equals(object other) 1005public override bool Equals(object other) 1319public override bool Equals(object other) 1726public override bool Equals(object other) 2049public override bool Equals(object other) 2244public override bool Equals(object other) 2547public override bool Equals(object other) 3050public override bool Equals(object other) 3497public override bool Equals(object other) 3727public override bool Equals(object other) 3934public override bool Equals(object other) 4152public override bool Equals(object other) 4487public override bool Equals(object other) 4817public override bool Equals(object other) 5009public override bool Equals(object other) 5199public override bool Equals(object other) 5403public override bool Equals(object other) 5608public override bool Equals(object other) 5819public override bool Equals(object other)
Microsoft.ML.OnnxTransformer (19)
src\Microsoft.ML.OnnxConverter\OnnxMl.cs (19)
511public override bool Equals(object other) 1005public override bool Equals(object other) 1319public override bool Equals(object other) 1726public override bool Equals(object other) 2049public override bool Equals(object other) 2244public override bool Equals(object other) 2547public override bool Equals(object other) 3050public override bool Equals(object other) 3497public override bool Equals(object other) 3727public override bool Equals(object other) 3934public override bool Equals(object other) 4152public override bool Equals(object other) 4487public override bool Equals(object other) 4817public override bool Equals(object other) 5009public override bool Equals(object other) 5199public override bool Equals(object other) 5403public override bool Equals(object other) 5608public override bool Equals(object other) 5819public override bool Equals(object other)
Microsoft.ML.Predictor.Tests (1)
CmdLine\CmdLineReverseTest.cs (1)
145public override bool Equals(object obj)
Microsoft.ML.Sweeper (3)
Parameters.cs (3)
102public override bool Equals(object obj) 148public override bool Equals(object obj) 191public override bool Equals(object obj)
Microsoft.ML.TestFramework (1)
SubComponent.cs (1)
139public override bool Equals(object obj)
Microsoft.ML.Tokenizers (6)
SentencepieceModel.cs (6)
1596public override bool Equals(object other) { 3083public override bool Equals(object other) { 3440public override bool Equals(object other) { 3706public override bool Equals(object other) { 4000public override bool Equals(object other) { 4435public override bool Equals(object other) {
Microsoft.Net.Http.Headers (12)
CacheControlHeaderValue.cs (1)
399public override bool Equals(object? obj)
ContentDispositionHeaderValue.cs (1)
231public override bool Equals(object? obj)
ContentRangeHeaderValue.cs (1)
142public override bool Equals(object? obj)
CookieHeaderValue.cs (1)
194public override bool Equals(object? obj)
EntityTagHeaderValue.cs (1)
106public override bool Equals(object? obj)
MediaTypeHeaderValue.cs (1)
474public override bool Equals(object? obj)
NameValueHeaderValue.cs (1)
138public override bool Equals(object? obj)
RangeConditionHeaderValue.cs (1)
82public override bool Equals(object? obj)
RangeHeaderValue.cs (1)
103public override bool Equals(object? obj)
RangeItemHeaderValue.cs (1)
82public override bool Equals(object? obj)
SetCookieHeaderValue.cs (1)
714public override bool Equals(object? obj)
StringWithQualityHeaderValue.cs (1)
80public override bool Equals(object? obj)
Microsoft.VisualBasic.Core (13)
Microsoft\VisualBasic\CompilerServices\IDOBinder.vb (13)
361Public Overrides Function Equals(ByVal _other As Object) As Boolean 439Public Overrides Function Equals(ByVal _other As Object) As Boolean 516Public Overrides Function Equals(ByVal _other As Object) As Boolean 585Public Overrides Function Equals(ByVal _other As Object) As Boolean 654Public Overrides Function Equals(ByVal _other As Object) As Boolean 706Public Overrides Function Equals(ByVal _other As Object) As Boolean 765Public Overrides Function Equals(ByVal _other As Object) As Boolean 798Public Overrides Function Equals(ByVal _other As Object) As Boolean 854Public Overrides Function Equals(ByVal _other As Object) As Boolean 902Public Overrides Function Equals(ByVal _other As Object) As Boolean 953Public Overrides Function Equals(ByVal _other As Object) As Boolean 1021Public Overrides Function Equals(ByVal _other As Object) As Boolean 1096Public Overrides Function Equals(ByVal _other As Object) As Boolean
Microsoft.VisualStudio.LanguageServices (2)
DocumentOutline\DocumentSymbolDataViewModel.cs (1)
78public override bool Equals(object obj)
InheritanceMargin\InheritanceMarginTag.cs (1)
61public override bool Equals(object? obj)
MSBuild (1)
AssemblyLoadInfo.cs (1)
83public override bool Equals(Object obj)
MSBuildTaskHost (1)
AssemblyLoadInfo.cs (1)
83public override bool Equals(Object obj)
Mvc.Api.Analyzers.Test (1)
TestFiles\MvcFactsTest\IsControllerActionTests.cs (1)
48public override bool Equals(object obj) => false;
MyFrontend (9)
artifacts\obj\MyFrontend\Debug\net8.0\Basket.cs (9)
127public override bool Equals(object other) { 337public override bool Equals(object other) { 561public override bool Equals(object other) { 825public override bool Equals(object other) { 1137public override bool Equals(object other) { 1322public override bool Equals(object other) { 1496public override bool Equals(object other) { 1681public override bool Equals(object other) { 1879public override bool Equals(object other) {
PresentationBuildTasks (2)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (1)
6864public override bool Equals(object o)
src\Microsoft.DotNet.Wpf\src\WindowsBase\System\IO\Packaging\CompoundFile\VersionPair.cs (1)
239public override bool Equals(Object obj)
PresentationCore (19)
MS\Internal\DpiScale2.cs (1)
165public override bool Equals(object obj)
MS\Internal\FontCache\CanonicalFontFamilyReference.cs (1)
120public override bool Equals(object obj)
MS\Internal\FontFace\FontFamilyIdentifier.cs (1)
440public abstract override bool Equals(object obj);
MS\Internal\Ink\ExtendedProperty.cs (1)
37public override bool Equals(object obj)
MS\Internal\Ink\ExtendedPropertyCollection.cs (1)
22public override bool Equals(object o)
MS\Internal\Shaping\OpenTypeLayoutCache.cs (1)
1130public override bool Equals(object value)
MS\Internal\Shaping\ShapeTypeface.cs (2)
44public override bool Equals(object o) 130public override bool Equals(object o)
MS\Internal\TextFormatting\GenericTextProperties.cs (1)
87public override bool Equals(object o)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
275public override bool Equals(object o)
System\Windows\Ink\DrawingAttributes.cs (1)
498public override bool Equals(object o)
System\Windows\Media\Animation\TimelineClockCollection.cs (1)
179public override bool Equals(object obj)
System\Windows\Media\CharacterMetrics.cs (1)
271public override bool Equals(object obj)
System\Windows\Media\ColorContext.cs (1)
401public override bool Equals(object obj)
System\Windows\Media\FamilyTypeface.cs (1)
252public override bool Equals(object o)
System\Windows\Media\FontFamily.cs (1)
271public override bool Equals(object o)
System\Windows\Media\GlyphTypeface.cs (1)
183public override bool Equals(object o)
System\Windows\Media\textformatting\NumberSubstitution.cs (1)
243public override bool Equals(object obj)
System\Windows\Media\Typeface.cs (1)
681public override bool Equals(object o)
PresentationFramework (32)
MS\Internal\Annotations\Anchoring\PathNode.cs (1)
54public override bool Equals(Object obj)
MS\Internal\Annotations\Component\AdornerPresentationContext.cs (1)
262public override bool Equals(object o)
MS\Internal\Annotations\TextAnchor.cs (1)
162public override bool Equals(object obj)
MS\Internal\AppModel\BamlStream.cs (1)
167public override bool Equals(
MS\Internal\Data\ValueTable.cs (1)
327public override bool Equals(object o)
MS\Internal\IO\Packaging\ContentDescriptor.cs (1)
32public override bool Equals( object other )
MS\Internal\Navigation\BindStream.cs (1)
242public override bool Equals(
MS\Internal\Text\TypographyProperties.cs (1)
684public override bool Equals(object other)
MS\Internal\WeakHashtable.cs (1)
206public override bool Equals(object o)
MS\Internal\WeakObjectHashtable.cs (1)
215public override bool Equals(object o)
MS\Internal\WindowsRuntime\Generated\Windows.Data.Text.cs (3)
52public override bool Equals(object obj) => obj is AlternateWordForm that && this == that; 270public override bool Equals(object obj) => obj is WordSegment that && this == that; 375public override bool Equals(object obj) => obj is WordsSegmenter that && this == that;
MS\Internal\WindowsRuntime\Generated\Windows.Globalization.cs (1)
147public override bool Equals(object obj) => obj is Language that && this == that;
System\Windows\Annotations\LocatorPart.cs (1)
76public override bool Equals(object obj)
System\Windows\ComponentResourceKey.cs (1)
99public override bool Equals(object o)
System\Windows\Controls\Grid.cs (1)
3615public override bool Equals(object obj)
System\Windows\Controls\ItemsControl.cs (1)
3833public override bool Equals(object o)
System\Windows\Controls\ValidationResult.cs (1)
91public override bool Equals(object obj)
System\Windows\Data\XmlNamespaceMapping.cs (1)
76public override bool Equals(object obj)
System\Windows\Documents\FixedHighlight.cs (1)
59public override bool Equals(object oCompare)
System\Windows\Documents\FlowNode.cs (1)
87public override bool Equals(object o)
System\Windows\Documents\Serialization\SerializerDescriptor.cs (1)
332public override bool Equals(object obj)
System\Windows\Markup\Localizer\BamlLocalizableResource.cs (1)
164public override bool Equals(object other)
System\Windows\Markup\Localizer\BamlLocalizableResourceKey.cs (1)
114public override bool Equals(object other)
System\Windows\Markup\Primitives\MarkupWriter.cs (2)
261public override bool Equals(object obj) 1284public override bool Equals(object obj)
System\Windows\Media\Animation\Storyboard.cs (1)
197public override bool Equals(object o)
System\Windows\StyleHelper.cs (1)
6109public override bool Equals(object o)
System\Windows\SystemResourceKey.cs (1)
1989public override bool Equals(object o)
System\Windows\SystemThemeKey.cs (1)
52public override bool Equals(object o)
System\Windows\TemplateKey.cs (1)
103public override bool Equals(object o)
PresentationUI (2)
MS\Internal\Documents\Application\CriticalFileToken.cs (1)
87public override bool Equals(object obj)
MS\Internal\Documents\Application\StreamProxy.cs (1)
237public override bool Equals(object obj)
Roslyn.Diagnostics.Analyzers (10)
src\Compilers\Core\Portable\FileSystem\RelativePathResolver.cs (1)
66public override bool Equals(object? obj) => Equals(obj as RelativePathResolver);
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
86public override bool Equals([NotNullWhen(true)] object? obj) => obj is SegmentedHashSetEqualityComparer<T>;
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
253public override bool Equals(object? obj) => Equals(obj as SymbolNamesWithValueOption<TValue>);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (1)
244public override bool Equals(object? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
519public override bool Equals(object? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
365public override bool Equals(object? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
186public override bool Equals(object obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\Option2.cs (1)
93public override bool Equals(object? obj) => Equals(obj as IOption2);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (1)
71public override bool Equals(object? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\PerLanguageOption2.cs (1)
81public override bool Equals(object? obj) => Equals(obj as IOption2);
Sandbox (9)
artifacts\obj\Sandbox\Release\net10.0\Greet.cs (3)
107public override bool Equals(object other) { 310public override bool Equals(object other) { 537public override bool Equals(object other) {
artifacts\obj\Sandbox\Release\net10.0\Transcoding.cs (6)
246public override bool Equals(object other) { 564public override bool Equals(object other) { 976public override bool Equals(object other) { 1573public override bool Equals(object other) { 1890public override bool Equals(object other) { 2356public override bool Equals(object other) {
SocialWeather (1)
Protobuf\WeatherReport.cs (1)
141public override bool Equals(object other) {
Stress.TelemetryService (42)
artifacts\obj\Stress.TelemetryService\Debug\net8.0\opentelemetry\proto\collector\logs\v1\LogsService.cs (3)
121public override bool Equals(object other) { 326public override bool Equals(object other) { 561public override bool Equals(object other) {
artifacts\obj\Stress.TelemetryService\Debug\net8.0\opentelemetry\proto\collector\metrics\v1\MetricsService.cs (3)
123public override bool Equals(object other) { 328public override bool Equals(object other) { 563public override bool Equals(object other) {
artifacts\obj\Stress.TelemetryService\Debug\net8.0\opentelemetry\proto\collector\trace\v1\TraceService.cs (3)
122public override bool Equals(object other) { 327public override bool Equals(object other) { 562public override bool Equals(object other) {
artifacts\obj\Stress.TelemetryService\Debug\net8.0\opentelemetry\proto\common\v1\Common.cs (5)
315public override bool Equals(object other) { 694public override bool Equals(object other) { 894public override bool Equals(object other) { 1099public override bool Equals(object other) { 1380public override bool Equals(object other) {
artifacts\obj\Stress.TelemetryService\Debug\net8.0\opentelemetry\proto\logs\v1\Logs.cs (4)
215public override bool Equals(object other) { 442public override bool Equals(object other) { 726public override bool Equals(object other) { 1165public override bool Equals(object other) {
artifacts\obj\Stress.TelemetryService\Debug\net8.0\opentelemetry\proto\metrics\v1\Metrics.cs (16)
315public override bool Equals(object other) { 542public override bool Equals(object other) { 826public override bool Equals(object other) { 1295public override bool Equals(object other) { 1741public override bool Equals(object other) { 1965public override bool Equals(object other) { 2221public override bool Equals(object other) { 2453public override bool Equals(object other) { 2672public override bool Equals(object other) { 3023public override bool Equals(object other) { 3607public override bool Equals(object other) { 4318public override bool Equals(object other) { 4861public override bool Equals(object other) { 5200public override bool Equals(object other) { 5557public override bool Equals(object other) { 5931public override bool Equals(object other) {
artifacts\obj\Stress.TelemetryService\Debug\net8.0\opentelemetry\proto\resource\v1\Resource.cs (1)
129public override bool Equals(object other) {
artifacts\obj\Stress.TelemetryService\Debug\net8.0\opentelemetry\proto\trace\v1\Trace.cs (7)
161public override bool Equals(object other) { 388public override bool Equals(object other) { 672public override bool Equals(object other) { 1198public override bool Equals(object other) { 1811public override bool Equals(object other) { 2147public override bool Equals(object other) { 2459public override bool Equals(object other) {
System.CodeDom (1)
System\CodeDom\Compiler\CompilerInfo.cs (1)
88public override bool Equals(object o)
System.Collections (2)
System\Collections\Generic\SortedDictionary.cs (1)
852public override bool Equals(object? obj)
System\Collections\Generic\SortedSetEqualityComparer.cs (1)
52public override bool Equals([NotNullWhen(true)] object? obj)
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\UIHintAttribute.cs (1)
122public override bool Equals([NotNullWhen(true)] object? obj)
System.ComponentModel.Composition (2)
System\ComponentModel\Composition\ReflectionModel\GenericSpecializationPartCreationInfo.cs (1)
530public override bool Equals([NotNullWhen(true)] object? obj)
System\ComponentModel\Composition\ReflectionModel\ReflectionComposablePartDefinition.cs (1)
325public override bool Equals(object? obj)
System.ComponentModel.TypeConverter (3)
System\ComponentModel\Design\CommandID.cs (1)
33public override bool Equals([NotNullWhen(true)] object? obj)
System\ComponentModel\MemberDescriptor.cs (1)
243public override bool Equals([NotNullWhen(true)] object? obj)
System\ComponentModel\WeakHashtable.cs (1)
154public override bool Equals(object? o)
System.Composition.Runtime (1)
System\Composition\Hosting\Core\CompositionContract.cs (1)
76public override bool Equals(object obj)
System.Configuration.ConfigurationManager (2)
System\Configuration\ConfigurationElement.cs (1)
672public override bool Equals(object compareTo)
System\Configuration\Internal\FileVersion.cs (1)
21public override bool Equals(object obj)
System.Data.Common (5)
src\libraries\Common\src\System\Data\Common\DbConnectionPoolKey.cs (1)
42public override bool Equals([NotNullWhen(true)] object? obj)
System\Data\DataRowView.cs (1)
31public override bool Equals(object? other) => ReferenceEquals(this, other);
System\Data\ForeignKeyConstraint.cs (1)
857public override bool Equals([NotNullWhen(true)] object? key)
System\Data\UniqueConstraint.cs (1)
392public override bool Equals([NotNullWhen(true)] object? key2)
System\Data\XmlToDatasetMap.cs (1)
29public override bool Equals([NotNullWhen(true)] object? obj)
System.Data.Odbc (2)
Common\System\Data\ProviderBase\DbConnectionPoolIdentity.cs (1)
33public override bool Equals(object? value)
src\libraries\Common\src\System\Data\Common\DbConnectionPoolKey.cs (1)
42public override bool Equals([NotNullWhen(true)] object? obj)
System.DirectoryServices.AccountManagement (1)
artifacts\obj\System.DirectoryServices.AccountManagement\Debug\net10.0\System.DirectoryServices.AccountManagement.notsupported.cs (1)
206public override bool Equals(object o) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServicesAccountManagement_PlatformNotSupported); }
System.Drawing.Common (6)
Special\NotSupported.cs (6)
349public override bool Equals([System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] object? obj) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 407public override bool Equals([System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] object? obj) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 1781public override bool Equals([System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] object? obj) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 2396public override bool Equals([System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] object? o) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 2519public override bool Equals([System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] object? o) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 2725public override bool Equals([System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] object? obj) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
System.Linq.Expressions (4)
System\Dynamic\BindingRestrictions.cs (3)
245public override bool Equals([NotNullWhen(true)] object? obj) 268public override bool Equals([NotNullWhen(true)] object? obj) 290public override bool Equals([NotNullWhen(true)] object? obj)
System\Dynamic\CallInfo.cs (1)
86public override bool Equals([NotNullWhen(true)] object? obj)
System.Management (1)
artifacts\obj\System.Management\Debug\net10.0\System.Management.notsupported.cs (1)
152public override bool Equals(object obj) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemManagement); }
System.Memory.Data (1)
System\BinaryData.cs (1)
514public override bool Equals([NotNullWhen(true)] object? obj) => ReferenceEquals(this, obj);
System.Net.Http (20)
src\libraries\Common\src\System\Net\CredentialCacheKey.cs (1)
96public override bool Equals([NotNullWhen(true)] object? obj) => Equals(obj as CredentialCacheKey);
System\Net\Http\Headers\AuthenticationHeaderValue.cs (1)
63public override bool Equals([NotNullWhen(true)] object? obj)
System\Net\Http\Headers\CacheControlHeaderValue.cs (1)
307public override bool Equals([NotNullWhen(true)] object? obj) =>
System\Net\Http\Headers\ContentDispositionHeaderValue.cs (1)
159public override bool Equals([NotNullWhen(true)] object? obj)
System\Net\Http\Headers\ContentRangeHeaderValue.cs (1)
94public override bool Equals([NotNullWhen(true)] object? obj) =>
System\Net\Http\Headers\EntityTagHeaderValue.cs (1)
56public override bool Equals([NotNullWhen(true)] object? obj) =>
System\Net\Http\Headers\MediaTypeHeaderValue.cs (1)
130public override bool Equals([NotNullWhen(true)] object? obj) =>
System\Net\Http\Headers\NameValueHeaderValue.cs (1)
81public override bool Equals([NotNullWhen(true)] object? obj)
System\Net\Http\Headers\ProductHeaderValue.cs (1)
60public override bool Equals([NotNullWhen(true)] object? obj)
System\Net\Http\Headers\ProductInfoHeaderValue.cs (1)
54public override bool Equals([NotNullWhen(true)] object? obj)
System\Net\Http\Headers\RangeConditionHeaderValue.cs (1)
46public override bool Equals([NotNullWhen(true)] object? obj) =>
System\Net\Http\Headers\RangeHeaderValue.cs (1)
84public override bool Equals([NotNullWhen(true)] object? obj)
System\Net\Http\Headers\RangeItemHeaderValue.cs (1)
69public override bool Equals([NotNullWhen(true)] object? obj) =>
System\Net\Http\Headers\RetryConditionHeaderValue.cs (1)
49public override bool Equals([NotNullWhen(true)] object? obj) =>
System\Net\Http\Headers\StringWithQualityHeaderValue.cs (1)
53public override bool Equals([NotNullWhen(true)] object? obj) =>
System\Net\Http\Headers\TransferCodingHeaderValue.cs (1)
120public override bool Equals([NotNullWhen(true)] object? obj)
System\Net\Http\Headers\ViaHeaderValue.cs (1)
102public override bool Equals([NotNullWhen(true)] object? obj) =>
System\Net\Http\Headers\WarningHeaderValue.cs (1)
98public override bool Equals([NotNullWhen(true)] object? obj) =>
System\Net\Http\HttpMethod.cs (1)
59public override bool Equals([NotNullWhen(true)] object? obj) =>
System\Net\Http\SocketsHttpHandler\HttpAuthority.cs (1)
47public override bool Equals([NotNullWhen(true)] object? obj)
System.Net.HttpListener (1)
System\Net\Managed\ListenerPrefix.cs (1)
84public override bool Equals([NotNullWhen(true)] object? o)
System.Net.Mail (3)
System\Net\Mail\MailAddress.cs (1)
271public override bool Equals([NotNullWhen(true)] object? value)
System\Net\Mime\ContentDisposition.cs (1)
244public override bool Equals([NotNullWhen(true)] object? rparam)
System\Net\Mime\ContentType.cs (1)
212public override bool Equals([NotNullWhen(true)] object? rparam) =>
System.Net.NetworkInformation (1)
System\Net\NetworkInformation\PhysicalAddress.cs (1)
60public override bool Equals([NotNullWhen(true)] object? comparand) =>
System.Net.Primitives (6)
src\libraries\Common\src\System\Net\CredentialCacheKey.cs (1)
96public override bool Equals([NotNullWhen(true)] object? obj) => Equals(obj as CredentialCacheKey);
src\libraries\Common\src\System\Net\SocketAddress.cs (1)
141public override bool Equals(object? comparand) =>
System\Net\Cookie.cs (1)
623public override bool Equals([NotNullWhen(true)] object? comparand)
System\Net\DnsEndPoint.cs (1)
36public override bool Equals([NotNullWhen(true)] object? comparand) =>
System\Net\IPAddress.cs (1)
680public override bool Equals([NotNullWhen(true)] object? comparand)
System\Net\IPEndPoint.cs (1)
172public override bool Equals([NotNullWhen(true)] object? comparand)
System.Net.Sockets (2)
System\Net\Sockets\LingerOption.cs (1)
45public override bool Equals(object? comparand)
System\Net\Sockets\UnixDomainSocketEndPoint.cs (1)
139public override bool Equals([NotNullWhen(true)] object? obj)
System.Private.CoreLib (52)
src\libraries\System.Private.CoreLib\src\System\ApplicationId.cs (1)
71public override bool Equals([NotNullWhen(true)] object? o) =>
src\libraries\System.Private.CoreLib\src\System\Attribute.cs (1)
21public override bool Equals([NotNullWhen(true)] object? obj)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Comparer.cs (4)
70public override bool Equals([NotNullWhen(true)] object? obj) => 105public override bool Equals([NotNullWhen(true)] object? obj) => 123public override bool Equals([NotNullWhen(true)] object? obj) => 141public override bool Equals([NotNullWhen(true)] object? obj) =>
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\EqualityComparer.cs (7)
103public override bool Equals(object? obj) => 136public override bool Equals([NotNullWhen(true)] object? obj) => 176public override bool Equals([NotNullWhen(true)] object? obj) => 205public override bool Equals([NotNullWhen(true)] object? obj) => 226public override bool Equals([NotNullWhen(true)] object? obj) => 259public override bool Equals([NotNullWhen(true)] object? obj) => 317public override bool Equals(object? obj) => obj is StringEqualityComparer;
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\HashSetEqualityComparer.cs (1)
75public override bool Equals([NotNullWhen(true)] object? obj) => obj is HashSetEqualityComparer<T>;
src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.cs (1)
1513public override bool Equals([NotNullWhen(true)] object? value)
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureInfo.cs (1)
636public override bool Equals([NotNullWhen(true)] object? value)
src\libraries\System.Private.CoreLib\src\System\Globalization\IdnMapping.cs (1)
146public override bool Equals([NotNullWhen(true)] object? obj) =>
src\libraries\System.Private.CoreLib\src\System\Globalization\RegionInfo.cs (1)
184public override bool Equals([NotNullWhen(true)] object? value)
src\libraries\System.Private.CoreLib\src\System\Globalization\SortKey.cs (1)
62public override bool Equals([NotNullWhen(true)] object? value) =>
src\libraries\System.Private.CoreLib\src\System\Globalization\SortVersion.cs (1)
42public override bool Equals([NotNullWhen(true)] object? obj)
src\libraries\System.Private.CoreLib\src\System\Globalization\StringInfo.cs (1)
30public override bool Equals([NotNullWhen(true)] object? value)
src\libraries\System.Private.CoreLib\src\System\Globalization\TextInfo.cs (1)
493public override bool Equals([NotNullWhen(true)] object? obj)
src\libraries\System.Private.CoreLib\src\System\Reflection\Assembly.cs (1)
180public override bool Equals(object? o) => base.Equals(o);
src\libraries\System.Private.CoreLib\src\System\Reflection\MemberInfo.cs (1)
43public override bool Equals(object? obj) => base.Equals(obj);
src\libraries\System.Private.CoreLib\src\System\Reflection\Module.cs (1)
145public override bool Equals(object? o) => base.Equals(o);
src\libraries\System.Private.CoreLib\src\System\Reflection\Pointer.cs (1)
43public override bool Equals([NotNullWhen(true)] object? obj)
src\libraries\System.Private.CoreLib\src\System\Runtime\Versioning\FrameworkName.cs (1)
62public override bool Equals([NotNullWhen(true)] object? obj)
src\libraries\System.Private.CoreLib\src\System\Security\PermissionSet.cs (1)
32public override bool Equals(object? o) => base.Equals(o);
src\libraries\System.Private.CoreLib\src\System\String.Comparison.cs (1)
613public override bool Equals([NotNullWhen(true)] object? obj)
src\libraries\System.Private.CoreLib\src\System\StringComparer.cs (2)
293public override bool Equals([NotNullWhen(true)] object? obj) 412public override bool Equals([NotNullWhen(true)] object? obj)
src\libraries\System.Private.CoreLib\src\System\Text\DecoderExceptionFallback.cs (1)
21public override bool Equals([NotNullWhen(true)] object? value) =>
src\libraries\System.Private.CoreLib\src\System\Text\DecoderReplacementFallback.cs (1)
72public override bool Equals([NotNullWhen(true)] object? value) =>
src\libraries\System.Private.CoreLib\src\System\Text\EncoderExceptionFallback.cs (1)
25public override bool Equals([NotNullWhen(true)] object? value) =>
src\libraries\System.Private.CoreLib\src\System\Text\EncoderReplacementFallback.cs (1)
72public override bool Equals([NotNullWhen(true)] object? value) =>
src\libraries\System.Private.CoreLib\src\System\Text\Encoding.cs (1)
1052public override bool Equals([NotNullWhen(true)] object? value) =>
src\libraries\System.Private.CoreLib\src\System\Text\EncodingInfo.cs (1)
63public override bool Equals([NotNullWhen(true)] object? value) => value is EncodingInfo that && CodePage == that.CodePage;
src\libraries\System.Private.CoreLib\src\System\Text\UTF7Encoding.cs (1)
833public override bool Equals([NotNullWhen(true)] object? value) => value is DecoderUTF7Fallback;
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.AdjustmentRule.cs (1)
62public override bool Equals([NotNullWhen(true)] object? obj) =>
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.cs (1)
862public override bool Equals([NotNullWhen(true)] object? obj) => Equals(obj as TimeZoneInfo);
src\libraries\System.Private.CoreLib\src\System\Tuple.cs (8)
116public override bool Equals([NotNullWhen(true)] object? obj) 236public override bool Equals([NotNullWhen(true)] object? obj) 361public override bool Equals([NotNullWhen(true)] object? obj) 496public override bool Equals([NotNullWhen(true)] object? obj) 641public override bool Equals([NotNullWhen(true)] object? obj) 796public override bool Equals([NotNullWhen(true)] object? obj) 961public override bool Equals([NotNullWhen(true)] object? obj) 1141public override bool Equals([NotNullWhen(true)] object? obj)
src\libraries\System.Private.CoreLib\src\System\Version.cs (1)
138public override bool Equals([NotNullWhen(true)] object? obj)
src\System\Delegate.CoreCLR.cs (1)
88public override bool Equals([NotNullWhen(true)] object? obj)
src\System\Reflection\Emit\SignatureHelper.cs (1)
841public override bool Equals(object? obj) =>
src\System\ValueType.cs (1)
27public override unsafe bool Equals([NotNullWhen(true)] object? obj)
System.Private.DataContractSerialization (5)
System\Runtime\Serialization\DataContract.cs (2)
2068public sealed override bool Equals(object? obj) 2480public override bool Equals(object? other)
System\Xml\PrefixHandle.cs (1)
239public override bool Equals([NotNullWhen(true)] object? obj)
System\Xml\StringHandle.cs (1)
285public override bool Equals([NotNullWhen(true)] object? obj)
System\Xml\UniqueId.cs (1)
324public override bool Equals([NotNullWhen(true)] object? obj)
System.Private.Uri (2)
System\Uri.cs (1)
1678public override bool Equals([NotNullWhen(true)] object? comparand)
System\UriBuilder.cs (1)
253public override bool Equals([NotNullWhen(true)] object? rparam) => rparam is not null && Uri.Equals(rparam.ToString());
System.Private.Windows.Core (2)
System\Private\Windows\BinaryFormat\Serializer\BinaryObjectString.cs (1)
37public override bool Equals(object? obj)
System\Private\Windows\BinaryFormat\Serializer\ObjectNull.cs (1)
28public override bool Equals(object? obj) => obj is ObjectNull;
System.Private.Xml (15)
System\Xml\Cache\XPathNodeInfoAtom.cs (1)
284public override bool Equals([NotNullWhen(true)] object? other)
System\Xml\Schema\BitSet.cs (1)
152public override bool Equals([NotNullWhen(true)] object? obj)
System\Xml\Schema\Chameleonkey.cs (1)
53public override bool Equals([NotNullWhen(true)] object? obj)
System\Xml\Schema\ConstraintStruct.cs (1)
489public override bool Equals([NotNullWhen(true)] object? other)
System\Xml\Serialization\Compilation.cs (1)
676public override bool Equals([NotNullWhen(true)] object? o)
System\Xml\Serialization\NameTable.cs (1)
23public override bool Equals([NotNullWhen(true)] object? other)
System\Xml\Serialization\SourceInfo.cs (1)
257public override bool Equals([NotNullWhen(true)] object? obj)
System\Xml\Serialization\XmlSerializer.cs (1)
1028public override bool Equals([NotNullWhen(true)] object? obj)
System\Xml\XmlQualifiedName.cs (1)
74public override bool Equals([NotNullWhen(true)] object? other)
System\Xml\Xsl\QIL\QilName.cs (1)
95public override bool Equals([NotNullWhen(true)] object? other)
System\Xml\Xsl\Runtime\EarlyBoundInfo.cs (1)
53public override bool Equals([NotNullWhen(true)] object? obj)
System\Xml\Xsl\Runtime\WhitespaceRuleLookup.cs (1)
171public override bool Equals([NotNullWhen(true)] object? obj)
System\Xml\Xsl\Runtime\XmlCollation.cs (1)
345public override bool Equals([NotNullWhen(true)] object? obj)
System\Xml\Xsl\Runtime\XmlExtensionFunction.cs (1)
305public override bool Equals([NotNullWhen(true)] object? other)
System\Xml\Xsl\XmlQueryType.cs (1)
322public override bool Equals([NotNullWhen(true)] object? obj)
System.Private.Xml.Linq (2)
System\Xml\Linq\XName.cs (1)
120public override bool Equals([NotNullWhen(true)] object? obj)
System\Xml\Linq\XNamespace.cs (1)
159public override bool Equals([NotNullWhen(true)] object? obj)
System.Reflection.Context (2)
System\Reflection\Context\Projection\ProjectingParameterInfo.cs (1)
63public override bool Equals([NotNullWhen(true)] object? o)
System\Reflection\Context\Virtual\VirtualParameter.cs (1)
43public override bool Equals([NotNullWhen(true)] object? obj)
System.Reflection.MetadataLoadContext (2)
System\Reflection\TypeLoading\General\RoAssemblyName.cs (1)
69public sealed override bool Equals([NotNullWhen(true)] object? obj) => obj is RoAssemblyName other && Equals(other);
System\Reflection\TypeLoading\Parameters\RoParameter.cs (1)
44public sealed override bool Equals(object? obj)
System.Runtime.Serialization.Formatters (1)
System\Runtime\Serialization\MemberHolder.cs (1)
24public override bool Equals([NotNullWhen(true)] object? obj)
System.Security.AccessControl (1)
artifacts\obj\System.Security.AccessControl\Debug\net10.0\System.Security.AccessControl.notsupported.cs (1)
273public sealed override bool Equals([System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] object? o) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl); }
System.Security.Cryptography (16)
src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsaAlgorithm.cs (1)
224public override bool Equals([NotNullWhen(true)] object? obj) => obj is CompositeMLDsaAlgorithm alg && alg.Name == Name;
src\libraries\Common\src\System\Security\Cryptography\MLDsaAlgorithm.cs (1)
136public override bool Equals([NotNullWhen(true)] object? obj) => obj is MLDsaAlgorithm alg && alg.Name == Name;
src\libraries\Common\src\System\Security\Cryptography\MLKemAlgorithm.cs (1)
124public override bool Equals([NotNullWhen(true)] object? obj) => obj is MLKemAlgorithm alg && alg.Name == Name;
src\libraries\Common\src\System\Security\Cryptography\SlhDsaAlgorithm.cs (1)
217public override bool Equals([NotNullWhen(true)] object? obj) => obj is SlhDsaAlgorithm alg && alg.Name == Name;
System\Security\Cryptography\CngAlgorithm.cs (1)
55public override bool Equals([NotNullWhen(true)] object? obj)
System\Security\Cryptography\CngAlgorithmGroup.cs (1)
56public override bool Equals([NotNullWhen(true)] object? obj)
System\Security\Cryptography\CngKeyBlobFormat.cs (1)
56public override bool Equals([NotNullWhen(true)] object? obj)
System\Security\Cryptography\CngProvider.cs (1)
53public override bool Equals([NotNullWhen(true)] object? obj)
System\Security\Cryptography\DSAWrapper.cs (1)
153public override bool Equals(object? obj) => _wrapped.Equals(obj);
System\Security\Cryptography\ECDiffieHellmanWrapper.cs (2)
155public override bool Equals(object? obj) => _wrapped.Equals(obj); 209public override bool Equals(object? obj) => _wrapped.Equals(obj);
System\Security\Cryptography\ECDsaWrapper.cs (1)
178public override bool Equals(object? obj) => _wrapped.Equals(obj);
System\Security\Cryptography\RSAEncryptionPadding.cs (1)
103public override bool Equals([NotNullWhen(true)] object? obj)
System\Security\Cryptography\RSASignaturePadding.cs (1)
57public override bool Equals([NotNullWhen(true)] object? obj)
System\Security\Cryptography\RSAWrapper.cs (1)
218public override bool Equals(object? obj) => _wrapped.Equals(obj);
System\Security\Cryptography\X509Certificates\X509Certificate.cs (1)
299public override bool Equals([NotNullWhen(true)] object? obj) => obj is X509Certificate other && Equals(other);
System.Security.Permissions (24)
System\Net\EndpointPermission.cs (1)
12public override bool Equals(object obj) { return false; }
System\Security\CodeAccessPermission.cs (1)
17public override bool Equals(object obj) => base.Equals(obj);
System\Security\Permissions\KeyContainerPermissionAccessEntry.cs (1)
24public override bool Equals(object o) { return false; }
System\Security\Permissions\PrincipalPermission.cs (1)
199public override bool Equals(object obj)
System\Security\Permissions\StrongNamePublicKeyBlob.cs (1)
12public override bool Equals(object o) => base.Equals(o);
System\Security\Policy\AllMembershipCondition.cs (1)
11public override bool Equals(object o) => base.Equals(o);
System\Security\Policy\ApplicationDirectory.cs (1)
11public override bool Equals(object o) => base.Equals(o);
System\Security\Policy\ApplicationDirectoryMembershipCondition.cs (1)
11public override bool Equals(object o) => base.Equals(o);
System\Security\Policy\CodeConnectAccess.cs (1)
17public override bool Equals(object o) => base.Equals(o);
System\Security\Policy\CodeGroup.cs (1)
22public override bool Equals(object o) => base.Equals(o);
System\Security\Policy\GacInstalled.cs (1)
14public override bool Equals(object o) => base.Equals(o);
System\Security\Policy\GacMembershipCondition.cs (1)
11public override bool Equals(object o) => base.Equals(o);
System\Security\Policy\HashMembershipCondition.cs (1)
16public override bool Equals(object o) => base.Equals(o);
System\Security\Policy\PolicyStatement.cs (1)
23public override bool Equals(object o) => base.Equals(o);
System\Security\Policy\Publisher.cs (1)
17public override bool Equals(object o) => base.Equals(o);
System\Security\Policy\PublisherMembershipCondition.cs (1)
14public override bool Equals(object o) => base.Equals(o);
System\Security\Policy\Site.cs (1)
16public override bool Equals(object o) => base.Equals(o);
System\Security\Policy\SiteMembershipCondition.cs (1)
12public override bool Equals(object o) => base.Equals(o);
System\Security\Policy\StrongName.cs (1)
19public override bool Equals(object o) => base.Equals(o);
System\Security\Policy\StrongNameMembershipCondition.cs (1)
19public override bool Equals(object o) => base.Equals(o);
System\Security\Policy\Url.cs (1)
15public override bool Equals(object o) => base.Equals(o);
System\Security\Policy\UrlMembershipCondition.cs (1)
12public override bool Equals(object obj) => base.Equals(obj);
System\Security\Policy\Zone.cs (1)
16public override bool Equals(object o) => base.Equals(o);
System\Security\Policy\ZoneMembershipCondition.cs (1)
12public override bool Equals(object o) => base.Equals(o);
System.Security.Principal.Windows (1)
artifacts\obj\System.Security.Principal.Windows\Debug\net10.0\System.Security.Principal.Windows.notsupported.cs (1)
34public abstract override bool Equals(object? o);
System.ServiceModel.NetFramingBase (1)
System\ServiceModel\Channels\FramingEncoders.cs (1)
80public override bool Equals(object o)
System.ServiceModel.Primitives (5)
netstandard.cs (5)
96public override bool Equals(object obj) => default; 637public override bool Equals(object obj) { return default; } 660public override bool Equals(object obj) { return default; } 1186public override bool Equals(object obj) { return default; } 1772public override bool Equals(object obj) { return default; }
System.Speech (4)
artifacts\obj\System.Speech\Debug\net10.0\System.Speech.notsupported.cs (4)
44public override bool Equals(object obj) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemSpeech); } 309public override bool Equals(object obj) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemSpeech); } 651public override bool Equals(object obj) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemSpeech); } 922public override bool Equals(object obj) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemSpeech); }
System.Text.Encoding.CodePages (2)
System\Text\DecoderBestFitFallback.cs (1)
35public override bool Equals([NotNullWhen(true)] object? value) =>
System\Text\EncoderBestFitFallback.cs (1)
35public override bool Equals([NotNullWhen(true)] object? value) =>
System.Text.Json.SourceGeneration (2)
src\libraries\Common\src\SourceGenerators\ImmutableEquatableArray.cs (1)
30public override bool Equals(object? obj)
src\libraries\Common\src\SourceGenerators\TypeRef.cs (1)
39public override bool Equals(object? obj) => Equals(obj as TypeRef);
System.Text.RegularExpressions (2)
System\Text\RegularExpressions\Symbolic\BDD.cs (1)
144public override bool Equals(object? obj) => Equals(obj as BDD);
System\Text\RegularExpressions\Symbolic\MatchingState.cs (1)
171public override bool Equals(object? obj) =>
System.Threading.RateLimiting (1)
System\Threading\RateLimiting\MetadataName.T.cs (1)
43public override bool Equals([NotNullWhen(true)] object? obj)
System.Transactions.Local (1)
System\Transactions\Transaction.cs (1)
317public override bool Equals([NotNullWhen(true)] object? obj)
System.Windows.Forms (15)
System\Windows\Forms\Controls\DataGridView\DataGridView.HitTestInfo.cs (1)
94public override bool Equals(object? value) =>
System\Windows\Forms\Controls\DataGridView\DataGridViewAdvancedBorderStyle.cs (1)
276public override bool Equals(object? other)
System\Windows\Forms\Controls\DataGridView\DataGridViewCellStyle.cs (1)
446public override bool Equals(object? o) =>
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
1132public override bool Equals(object? obj)
System\Windows\Forms\Controls\WebBrowser\HtmlDocument.cs (1)
697public override bool Equals(object? obj) => this == (HtmlDocument?)obj;
System\Windows\Forms\Controls\WebBrowser\HtmlElement.cs (1)
821public override bool Equals(object? obj) => this == (obj as HtmlElement);
System\Windows\Forms\Controls\WebBrowser\HtmlWindow.cs (1)
479public override bool Equals(object? obj) => this == (HtmlWindow?)obj;
System\Windows\Forms\DataBinding\BindingContext.HashKey.cs (1)
30public override bool Equals(object? target)
System\Windows\Forms\Dialogs\TaskDialog\TaskDialogButton.cs (1)
350public override bool Equals(object? obj)
System\Windows\Forms\Input\Cursor.cs (1)
479public override bool Equals(object? obj) => obj is Cursor cursor && this == cursor;
System\Windows\Forms\Input\InputLanguage.cs (1)
257public override bool Equals(object? value)
System\Windows\Forms\Layout\ArrangedElementCollection.cs (1)
24public override bool Equals(object? obj)
System\Windows\Forms\Layout\TableLayout.LayoutInfo.cs (1)
57public override bool Equals(object? obj) =>
System\Windows\Forms\Screen.cs (1)
244public override bool Equals(object? obj) => obj is Screen comp && _hmonitor == comp._hmonitor;
System\Windows\Forms\Scrolling\ScrollableControl.DockPaddingEdgesConverter.cs (1)
185public override bool Equals(object? other)
System.Windows.Forms.Design (3)
System\ComponentModel\Design\EventBindingService.EventPropertyDescriptor.cs (1)
410public override bool Equals(object? otherClosure)
System\Drawing\Design\ToolboxItem.cs (1)
364public override bool Equals(object? obj)
System\Windows\Forms\Design\MaskDescriptor.cs (1)
132public override bool Equals(object? maskDescriptor)
System.Windows.Forms.Tests (1)
System\Windows\Forms\DataGridViewCellStyleTests.cs (1)
1153public override bool Equals(object other) => other is AlwaysEqual;
System.Xaml (6)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
275public override bool Equals(object o)
System\Xaml\AttachableMemberIdentifier.cs (1)
50public override bool Equals(object obj)
System\Xaml\Schema\XamlValueConverter.cs (1)
106public override bool Equals(object obj)
System\Xaml\XamlMember.cs (1)
1037public override bool Equals(object obj)
System\Xaml\XamlObjectReader.cs (1)
3043public override bool Equals(object obj)
System\Xaml\XamlType.cs (1)
1834public override bool Equals(object obj)
Test.Utilities (10)
src\Compilers\Core\Portable\FileSystem\RelativePathResolver.cs (1)
66public override bool Equals(object? obj) => Equals(obj as RelativePathResolver);
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
86public override bool Equals([NotNullWhen(true)] object? obj) => obj is SegmentedHashSetEqualityComparer<T>;
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
253public override bool Equals(object? obj) => Equals(obj as SymbolNamesWithValueOption<TValue>);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (1)
244public override bool Equals(object? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
519public override bool Equals(object? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
365public override bool Equals(object? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
186public override bool Equals(object obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\Option2.cs (1)
93public override bool Equals(object? obj) => Equals(obj as IOption2);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (1)
71public override bool Equals(object? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\PerLanguageOption2.cs (1)
81public override bool Equals(object? obj) => Equals(obj as IOption2);
Text.Analyzers (10)
src\Compilers\Core\Portable\FileSystem\RelativePathResolver.cs (1)
66public override bool Equals(object? obj) => Equals(obj as RelativePathResolver);
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
86public override bool Equals([NotNullWhen(true)] object? obj) => obj is SegmentedHashSetEqualityComparer<T>;
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
253public override bool Equals(object? obj) => Equals(obj as SymbolNamesWithValueOption<TValue>);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (1)
244public override bool Equals(object? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
519public override bool Equals(object? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
365public override bool Equals(object? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
186public override bool Equals(object obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\Option2.cs (1)
93public override bool Equals(object? obj) => Equals(obj as IOption2);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (1)
71public override bool Equals(object? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\PerLanguageOption2.cs (1)
81public override bool Equals(object? obj) => Equals(obj as IOption2);
UIAutomationClient (1)
System\Windows\Automation\AutomationElement.cs (1)
304public override bool Equals(object obj)
UIAutomationTypes (2)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\NativeMethodsCLR.cs (1)
72public override bool Equals( object obj )
System\Windows\Automation\AutomationIdentifier.cs (1)
106public override bool Equals( object obj )
960 references to Equals
Analyzer.Utilities.UnitTests (4)
FlowAnalysis\Analysis\PropertySetAnalysis\PropertySetAnalysisTests.cs (4)
530return PropertySetCallbacks.EvaluateLiteralValues(valueContentAbstractValue, v => v is not null && v.Equals(0)); 595v => v is not null && v.Equals(0)); 603return PropertySetCallbacks.EvaluateLiteralValues(valueContentAbstractValue, v => v is not null && v.Equals(0)); 676return PropertySetCallbacks.EvaluateLiteralValues(valueContentAbstractValue, v => v is not null && v.Equals(2));
Aspire.Dashboard (1)
Components\Pages\ComponentTelemetryContext.cs (1)
81if (!Properties.TryGetValue(name, out var existingValue) || !existingValue.Value.Equals(value.Value))
Aspire.EndToEnd.Tests (1)
tests\Shared\TemplatesTesting\TestExtensions.cs (1)
49if (expected?.Equals(actual) == true)
Aspire.Templates.Tests (1)
tests\Shared\TemplatesTesting\TestExtensions.cs (1)
49if (expected?.Equals(actual) == true)
dotnet-svcutil-lib (19)
CommandLineParser.cs (1)
59System.Diagnostics.Debug.Assert(!s_allSwitches.Any(s => s.Equals(this)), $"A switch with name or abbreviation '{name}+{abbreviation}' has already been crated!");
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (1)
4663if (modifiers[i].Equals(value))
FrameworkFork\Microsoft.Xml\Xml\schema\ConstraintStruct.cs (5)
362return atomicValues1.Length == 1 && atomicValues1.GetValue(0).Equals(other.Value); 366return arr1.Length == 1 && arr1.GetValue(0).Equals(other.Value); 376return atomicValues2.Length == 1 && atomicValues2.GetValue(0).Equals(this.Value); 380return arr2.Length == 1 && arr2.GetValue(0).Equals(this.Value); 385return this.Value.Equals(other.Value);
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaNamespaceManager.cs (1)
54if (entry.Value.Equals(ns))
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\Globals.cs (1)
1081return o != null && ValueOfDBNull != null && ValueOfDBNull.Equals(o);
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBinaryWriterSession.cs (1)
140if (_list[i].Key.Equals(key))
FrameworkFork\System.ServiceModel\Internals\System\Runtime\MruCache.cs (1)
143if (_mruEntry.node != null && key != null && key.Equals(_mruEntry.node.Value))
FrameworkFork\System.ServiceModel\System\IdentityModel\Claims\ClaimComparer.cs (1)
173return obj1.Equals(obj2);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageProperties.cs (2)
785return value.Equals(pair.Value); 848if (!value.Equals(pair.Value))
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketTransportSettings.cs (1)
148return base.Equals(obj);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\TypeLoader.cs (1)
569if (parameterInfo1.Equals(parameterInfo2))
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityUtils.cs (1)
833return CredentialCache.DefaultNetworkCredentials.Equals(credential);
Shared\Options\OptionBase.cs (2)
84get { return _canSerialize && this.Value != null && !this.Value.Equals(this.DefaultValue); } 133if (this.Value == null || !this.Value.Equals(value))
GenerateDocumentationAndConfigFiles (10)
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
1372internal static bool EqualityComparersAreEqual(SegmentedHashSet<T> set1, SegmentedHashSet<T> set2) => set1.Comparer.Equals(set2.Comparer);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IDictionaryExtensions.cs (1)
15dictionary.Keys.All(key => other.ContainsKey(key) && dictionary[key]?.Equals(other[key]) == true);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (2)
24/// Checks if the given method overrides <see cref="object.Equals(object)"/>. 38/// Checks if the given method is <see cref="object.Equals(object)"/>.
src\RoslynAnalyzers\Utilities\Workspaces\SyntaxGeneratorExtensions.cs (1)
337/// Creates a default declaration for an override of <see cref="object.Equals(object)"/>.
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
146else if (operation.Parent is IForToLoopOperation forToLoopOperation && forToLoopOperation.LoopControlVariable.Equals(operation))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (3)
126if (existingConstants[0].Equals(Multiply(existingConstants[1], 2))) 130if (existingConstants[0].Equals(Convert.ChangeType(2, existingConstants[0].GetType())) && 131existingConstants[1].Equals(Convert.ChangeType(1, existingConstants[1].GetType())))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (1)
218=> this.Equals((object)other);
http2cat (2)
src\Shared\Http2cat\Http2Utilities.cs (2)
1015if (!expected.Equals(actual)) 1031if (value1.Equals(value2))
IIS.FunctionalTests (2)
src\Shared\Http2cat\Http2Utilities.cs (2)
1015if (!expected.Equals(actual)) 1031if (value1.Equals(value2))
IIS.LongTests (2)
src\Shared\Http2cat\Http2Utilities.cs (2)
1015if (!expected.Equals(actual)) 1031if (value1.Equals(value2))
IIS.NewHandler.FunctionalTests (2)
src\Shared\Http2cat\Http2Utilities.cs (2)
1015if (!expected.Equals(actual)) 1031if (value1.Equals(value2))
IIS.NewShim.FunctionalTests (2)
src\Shared\Http2cat\Http2Utilities.cs (2)
1015if (!expected.Equals(actual)) 1031if (value1.Equals(value2))
IISExpress.FunctionalTests (2)
src\Shared\Http2cat\Http2Utilities.cs (2)
1015if (!expected.Equals(actual)) 1031if (value1.Equals(value2))
illink (4)
ILLink.RoslynAnalyzer (2)
DataFlow\ControlFlowGraphProxy.cs (1)
229if (catchOrFilter.Equals(region))
src\tools\illink\src\ILLink.Shared\DataFlow\ValueSet.cs (1)
71if (!item.Equals(other))
Metrics (9)
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
1372internal static bool EqualityComparersAreEqual(SegmentedHashSet<T> set1, SegmentedHashSet<T> set2) => set1.Comparer.Equals(set2.Comparer);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IDictionaryExtensions.cs (1)
15dictionary.Keys.All(key => other.ContainsKey(key) && dictionary[key]?.Equals(other[key]) == true);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (2)
24/// Checks if the given method overrides <see cref="object.Equals(object)"/>. 38/// Checks if the given method is <see cref="object.Equals(object)"/>.
src\RoslynAnalyzers\Utilities\Workspaces\SyntaxGeneratorExtensions.cs (1)
337/// Creates a default declaration for an override of <see cref="object.Equals(object)"/>.
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
146else if (operation.Parent is IForToLoopOperation forToLoopOperation && forToLoopOperation.LoopControlVariable.Equals(operation))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (3)
126if (existingConstants[0].Equals(Multiply(existingConstants[1], 2))) 130if (existingConstants[0].Equals(Convert.ChangeType(2, existingConstants[0].GetType())) && 131existingConstants[1].Equals(Convert.ChangeType(1, existingConstants[1].GetType())))
Metrics.Legacy (9)
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
1372internal static bool EqualityComparersAreEqual(SegmentedHashSet<T> set1, SegmentedHashSet<T> set2) => set1.Comparer.Equals(set2.Comparer);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IDictionaryExtensions.cs (1)
15dictionary.Keys.All(key => other.ContainsKey(key) && dictionary[key]?.Equals(other[key]) == true);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (2)
24/// Checks if the given method overrides <see cref="object.Equals(object)"/>. 38/// Checks if the given method is <see cref="object.Equals(object)"/>.
src\RoslynAnalyzers\Utilities\Workspaces\SyntaxGeneratorExtensions.cs (1)
337/// Creates a default declaration for an override of <see cref="object.Equals(object)"/>.
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
146else if (operation.Parent is IForToLoopOperation forToLoopOperation && forToLoopOperation.LoopControlVariable.Equals(operation))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (3)
126if (existingConstants[0].Equals(Multiply(existingConstants[1], 2))) 130if (existingConstants[0].Equals(Convert.ChangeType(2, existingConstants[0].GetType())) && 131existingConstants[1].Equals(Convert.ChangeType(1, existingConstants[1].GetType())))
Microsoft.AspNetCore.Components (1)
ChangeDetection.cs (1)
35|| !oldValue.Equals(newValue)) // Somebody says they are different
Microsoft.AspNetCore.Components.Server.Tests (3)
Circuits\CircuitHostTest.cs (3)
442It.Is<object[]>(args => args[0].Equals(circuitHost.CircuitId.Secret) && 443args[1].Equals(rootComponents) && 444args[2].Equals(applicationState)),
Microsoft.AspNetCore.Components.Web (1)
Forms\InputRadio.cs (1)
71builder.AddAttribute(6, "checked", Context.CurrentValue?.Equals(Value) == true ? GetToggledTrueValue() : null);
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (1)
ConverterTests\JsonConverterReadTests.cs (1)
666Assert.True(objectNew.Equals(objectOld));
Microsoft.AspNetCore.HeaderParsing.Tests (4)
HostHeaderValueTests.cs (4)
32Assert.True(sameAsHost1.Equals((object)host1)); 33Assert.False(differentHost.Equals((object)host1)); 34Assert.False(differentPort.Equals((object)host1)); 35Assert.False(differentPort.Equals(new object()));
Microsoft.AspNetCore.Html.Abstractions.Tests (1)
HtmlContentBuilderTest.cs (1)
264return base.Equals(obj);
Microsoft.AspNetCore.Http.Abstractions (20)
EndpointFilterInvocationContextOfT.Generated.cs (20)
66if (Arguments[i]?.Equals(item) == true) 104if (Arguments[i]?.Equals(item) == true) 194if (Arguments[i]?.Equals(item) == true) 233if (Arguments[i]?.Equals(item) == true) 329if (Arguments[i]?.Equals(item) == true) 369if (Arguments[i]?.Equals(item) == true) 471if (Arguments[i]?.Equals(item) == true) 512if (Arguments[i]?.Equals(item) == true) 620if (Arguments[i]?.Equals(item) == true) 662if (Arguments[i]?.Equals(item) == true) 776if (Arguments[i]?.Equals(item) == true) 819if (Arguments[i]?.Equals(item) == true) 939if (Arguments[i]?.Equals(item) == true) 983if (Arguments[i]?.Equals(item) == true) 1109if (Arguments[i]?.Equals(item) == true) 1154if (Arguments[i]?.Equals(item) == true) 1286if (Arguments[i]?.Equals(item) == true) 1332if (Arguments[i]?.Equals(item) == true) 1470if (Arguments[i]?.Equals(item) == true) 1517if (Arguments[i]?.Equals(item) == true)
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Filters\SaveTempDataPropertyFilterBase.cs (1)
52if (newValue != null && !newValue.Equals(originalValue))
Microsoft.AspNetCore.Owin.Tests (1)
OwinEnvironmentTests.cs (1)
217responseBody.Equals(httpContext.Response.Body);
Microsoft.AspNetCore.RateLimiting (1)
DefaultKeyTypeEqualityComparer.cs (1)
23return string.Equals(x.PolicyName, y.PolicyName, StringComparison.Ordinal) && xKey.Equals(yKey);
Microsoft.AspNetCore.Routing (1)
Template\TemplateBinder.cs (1)
666return a.Equals(b);
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (2)
src\Shared\Http2cat\Http2Utilities.cs (2)
1015if (!expected.Equals(actual)) 1031if (value1.Equals(value2))
Microsoft.AspNetCore.Server.IIS (1)
Core\WrappingStream.cs (1)
111=> _inner.Equals(obj);
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\Infrastructure\WrappingStream.cs (1)
110=> _inner.Equals(obj);
Internal\KestrelServerImpl.cs (1)
210if (!configuredEndpoint.Equals(options.EndPoint))
Microsoft.AspNetCore.SignalR.Client.Core (1)
HubConnectionBuilder.cs (1)
71return base.Equals(obj);
Microsoft.Build (10)
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (1)
852ErrorUtilities.VerifyThrow((itemVectorTransforms == null) || (itemVectorCollection.Equals(itemVectorTransforms)) || (itemVectorPartition.Count == 1),
BackEnd\Components\Scheduler\SchedulableRequest.cs (1)
707return base.Equals(obj);
Evaluation\Evaluator.cs (1)
1522if (fallbackSearchPathMatch.Equals(ProjectImportPathMatch.None))
Evaluation\Expander.cs (2)
4125if (args[i].Equals("out _")) 4139else if (!toReturn.Equals(currentReturnValue))
Graph\GraphBuilder.cs (1)
476if (node.Equals(referenceNode))
Instance\ImmutableProjectCollections\ImmutableGlobalPropertiesCollectionConverter.cs (1)
191return actualInstance.Equals(item);
Instance\ImmutableProjectCollections\ImmutableItemDefinitionsListConverter.cs (1)
146if (foundItem is not null && foundItem.Equals(item))
Instance\ImmutableProjectCollections\ImmutableItemDictionary.cs (1)
205if (foundItem is not null && foundItem.Equals(item))
Logging\BaseConsoleLogger.cs (1)
857else if (p1.Equals(p2))
Microsoft.Build.Engine.UnitTests (8)
BackEnd\TranslationHelpers.cs (1)
178if (leftProp != null && !prop.GetValue(left, null).Equals(prop.GetValue(right, null)))
Construction\ElementLocation_Tests.cs (5)
87Assert.True(location1.Equals(location6)); 88Assert.True(location2.Equals(location5)); 89Assert.False(location3.Equals(location1)); 90Assert.False(location4.Equals(location2)); 91Assert.False(location4.Equals(location6));
Evaluation\Evaluator_Tests.cs (2)
1977else if (!property.Equals(propertyFromAllEvaluated)) 2141else if (!property.Equals(propertyFromAllEvaluated))
Microsoft.Cci.Extensions (6)
Differs\ListMerger.cs (4)
43if (list0[list0Index].Equals(list1[list1Index])) 52int findIndex0 = Array.FindIndex(list0, list0Index, list0End - list0Index, t => list1[list1Index].Equals(t)); 64int findIndex1 = Array.FindIndex(list1, list1Index, list1End - list1Index, t => list0[list0Index].Equals(t)); 77Contract.Assert(!list0[list0Index].Equals(list1[list1Index]));
Extensions\CSharp\CSharpCciExtensions.cs (1)
657return ((ITypeDefinition)method.ContainingType).ExplicitImplementationOverrides.Where(mi => mi.ImplementingMethod.Equals(method)).FirstOrDefault();
Writers\CSharp\CSDeclarationWriter.Enums.cs (1)
28if (enumFieldValue != null && enumFieldValue.Equals(constant.Value))
Microsoft.CodeAnalysis (12)
InternalUtilities\ConcurrentLruCache.cs (1)
126else if (!result.Value.Equals(value))
MetadataReader\MetadataDecoder.cs (1)
2384return !methodParam.IsByRef && methodParam.Type.Equals(eventType);
PEWriter\SymbolEquivalentEqualityComparer.cs (2)
39return xSymbol.Equals(ySymbol); 74return xSymbol.Equals(ySymbol);
PEWriter\UsedNamespaceOrType.cs (4)
101return xSymbol.Equals(ySymbol); 108return x.Equals(y); 140return xSymbol.Equals(ySymbol); 147return x.Equals(y);
ReferenceManager\AssemblyData.cs (1)
76return base.Equals(obj);
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
1372internal static bool EqualityComparersAreEqual(SegmentedHashSet<T> set1, SegmentedHashSet<T> set2) => set1.Comparer.Equals(set2.Comparer);
SwitchConstantValueHelper.cs (1)
127return first.Equals(second);
SymbolDisplay\FormattedSymbol.cs (1)
42_symbol.Equals(other._symbol) &&
Microsoft.CodeAnalysis.Analyzers (10)
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
1372internal static bool EqualityComparersAreEqual(SegmentedHashSet<T> set1, SegmentedHashSet<T> set2) => set1.Comparer.Equals(set2.Comparer);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IDictionaryExtensions.cs (1)
15dictionary.Keys.All(key => other.ContainsKey(key) && dictionary[key]?.Equals(other[key]) == true);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (2)
24/// Checks if the given method overrides <see cref="object.Equals(object)"/>. 38/// Checks if the given method is <see cref="object.Equals(object)"/>.
src\RoslynAnalyzers\Utilities\Workspaces\SyntaxGeneratorExtensions.cs (1)
337/// Creates a default declaration for an override of <see cref="object.Equals(object)"/>.
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
146else if (operation.Parent is IForToLoopOperation forToLoopOperation && forToLoopOperation.LoopControlVariable.Equals(operation))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (3)
126if (existingConstants[0].Equals(Multiply(existingConstants[1], 2))) 130if (existingConstants[0].Equals(Convert.ChangeType(2, existingConstants[0].GetType())) && 131existingConstants[1].Equals(Convert.ChangeType(1, existingConstants[1].GetType())))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (1)
218=> this.Equals((object)other);
Microsoft.CodeAnalysis.AnalyzerUtilities (9)
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
1372internal static bool EqualityComparersAreEqual(SegmentedHashSet<T> set1, SegmentedHashSet<T> set2) => set1.Comparer.Equals(set2.Comparer);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IDictionaryExtensions.cs (1)
15dictionary.Keys.All(key => other.ContainsKey(key) && dictionary[key]?.Equals(other[key]) == true);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (2)
24/// Checks if the given method overrides <see cref="object.Equals(object)"/>. 38/// Checks if the given method is <see cref="object.Equals(object)"/>.
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AnalysisEntityBasedPredicateAnalysisData.cs (1)
206if (!existingValue!.Equals(mergedValue))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
146else if (operation.Parent is IForToLoopOperation forToLoopOperation && forToLoopOperation.LoopControlVariable.Equals(operation))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (3)
126if (existingConstants[0].Equals(Multiply(existingConstants[1], 2))) 130if (existingConstants[0].Equals(Convert.ChangeType(2, existingConstants[0].GetType())) && 131existingConstants[1].Equals(Convert.ChangeType(1, existingConstants[1].GetType())))
Microsoft.CodeAnalysis.BannedApiAnalyzers (9)
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
1372internal static bool EqualityComparersAreEqual(SegmentedHashSet<T> set1, SegmentedHashSet<T> set2) => set1.Comparer.Equals(set2.Comparer);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IDictionaryExtensions.cs (1)
15dictionary.Keys.All(key => other.ContainsKey(key) && dictionary[key]?.Equals(other[key]) == true);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (2)
24/// Checks if the given method overrides <see cref="object.Equals(object)"/>. 38/// Checks if the given method is <see cref="object.Equals(object)"/>.
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
146else if (operation.Parent is IForToLoopOperation forToLoopOperation && forToLoopOperation.LoopControlVariable.Equals(operation))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (3)
126if (existingConstants[0].Equals(Multiply(existingConstants[1], 2))) 130if (existingConstants[0].Equals(Convert.ChangeType(2, existingConstants[0].GetType())) && 131existingConstants[1].Equals(Convert.ChangeType(1, existingConstants[1].GetType())))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (1)
218=> this.Equals((object)other);
Microsoft.CodeAnalysis.CodeStyle (5)
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
1372internal static bool EqualityComparersAreEqual(SegmentedHashSet<T> set1, SegmentedHashSet<T> set2) => set1.Comparer.Equals(set2.Comparer);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
146else if (operation.Parent is IForToLoopOperation forToLoopOperation && forToLoopOperation.LoopControlVariable.Equals(operation))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (3)
126if (existingConstants[0].Equals(Multiply(existingConstants[1], 2))) 130if (existingConstants[0].Equals(Convert.ChangeType(2, existingConstants[0].GetType())) && 131existingConstants[1].Equals(Convert.ChangeType(1, existingConstants[1].GetType())))
Microsoft.CodeAnalysis.CodeStyle.Fixes (4)
src\Analyzers\Core\CodeFixes\AddExplicitCast\Fixer.cs (2)
159if (arguments[i].Equals(targetArgument)) 165if (arguments[i].Equals(targetArgument))
src\Analyzers\Core\CodeFixes\AddExplicitCast\InheritanceDistanceComparer.cs (1)
43if (!x.syntax.Equals(y.syntax))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (1)
218=> this.Equals((object)other);
Microsoft.CodeAnalysis.Collections.Package (1)
Segmented\SegmentedHashSet`1.cs (1)
1372internal static bool EqualityComparersAreEqual(SegmentedHashSet<T> set1, SegmentedHashSet<T> set2) => set1.Comparer.Equals(set2.Comparer);
Microsoft.CodeAnalysis.CSharp (10)
Binder\DecisionDagBuilder.cs (4)
854!existingState.RemainingValues.All(kv => newRemainingValues.TryGetValue(kv.Key, out IValueSet? values) && kv.Value.Equals(values))) 2035this.RemainingTests.Equals(other.RemainingTests); 2045return newRemainingTests.Equals(RemainingTests) 2317public override bool Equals(object? obj) => this == obj || obj is Not n && Negated.Equals(n.Negated);
Binder\SwitchBinder_Patterns.cs (1)
31Debug.Assert(SwitchSyntax.Equals(node));
FlowAnalysis\NullableWalker.PlaceholderLocal.cs (1)
44return obj is PlaceholderLocal other && _identifier.Equals(other._identifier);
Utilities\ValueSetFactory.EnumeratedValueSetFactory.cs (1)
44return _tc.FromConstantValue(left).Equals(_tc.FromConstantValue(right));
Utilities\ValueSetFactory.FloatingValueSet.cs (1)
162this._numbers.Equals(other._numbers);
Utilities\ValueSetFactory.NintValueSet.cs (1)
125this._values.Equals(other._values);
Utilities\ValueSetFactory.NuintValueSet.cs (1)
108this._values.Equals(other._values);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (5)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (1)
143if (constructor.Equals(primaryConstructor))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (4)
1727if (name.Equals(nameof(Task<int>.ConfigureAwait)) && 1733else if (name.Equals(nameof(Task<int>.ContinueWith))) 1745else if (name.Equals(nameof(Enumerable.Select)) || 1746name.Equals(nameof(Enumerable.Where)))
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (36)
CodeGen\CodeGenTupleTest.cs (34)
11673Assert.False(members2.Any(u => u.Equals(m))); 11674Assert.False(members2.Any(u => m.Equals(u))); 13592Assert.True(t1.Equals(t2)); 13599Assert.False(t1.Equals(t3)); 13604Assert.True(t3.Equals(t4)); 13607Assert.False(t5.Equals(t3)); 13615Assert.True(t6.Equals(t7)); 13618Assert.False(t1.Equals(t6)); 13625Assert.False(t1.Equals(t8)); 13630Assert.False(t6.Equals(t8)); 13641Assert.True(t1.Equals(t2)); 13651Assert.False(t1.Equals(t3)); 13656Assert.True(t3.Equals(t4)); 13659Assert.False(t5.Equals(t3)); 13669Assert.True(t6.Equals(t7)); 13672Assert.False(t1.Equals(t6)); 13680Assert.False(t1.Equals(t8)); 13685Assert.False(t6.Equals(t8)); 13695Assert.True(t9.Equals(t10)); 13704Assert.False(t1.Equals(t11)); 13708Assert.False(t1.Equals(t11)); 13710Assert.False(t11.Equals(t1)); 13761Assert.False(t1.Equals(t12)); 13770Assert.False(t1.Equals(t12)); 13772Assert.False(t12.Equals(t1)); 13831Assert.True(t1.Equals(t2)); 13838Assert.False(t1.Equals(t3)); 13843Assert.True(t3.Equals(t4)); 13846Assert.False(t5.Equals(t3)); 13854Assert.True(t6.Equals(t7)); 13857Assert.False(t1.Equals(t6)); 13864Assert.False(t1.Equals(t8)); 13869Assert.False(t6.Equals(t8)); 15879return x.GetSyntax().Equals(y.GetSyntax());
Emit\DynamicAnalysis\DynamicInstrumentationTests.cs (2)
2454diagnostic.Arguments[0].Equals("System.Guid") && diagnostic.Arguments[1].Equals(".ctor"))
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (5)
Diagnostics\GetDiagnosticsTests.cs (5)
572Assert.True(diagnostics[0].Location.SourceTree.Equals(syntaxTree1)); 573Assert.True(diagnostics[1].Location.SourceTree.Equals(syntaxTree2)); 574Assert.True(diagnostics[2].Location.SourceTree.Equals(syntaxTree3)); 598Assert.True(diagnostics[0].Location.SourceTree.Equals(syntaxTree1)); 599Assert.True(diagnostics[1].Location.SourceTree.Equals(syntaxTree2));
Microsoft.CodeAnalysis.CSharp.Features (4)
CodeRefactorings\InlineMethod\CSharpInlineMethodRefactoringProvider.cs (3)
110=> syntaxNode.Equals(conditionalExpressionSyntax.WhenTrue) || 111syntaxNode.Equals(conditionalExpressionSyntax.WhenFalse), 113=> syntaxNode.Equals(binaryExpressionSyntax.Right),
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (1)
143if (constructor.Equals(primaryConstructor))
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\SemanticErrorTests.cs (1)
21144var compatibleExpected = fullExpected.Where(d => !d.Code.Equals((int)ErrorCode.WRN_NubExprIsConstBool2)).ToArray();
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (9)
SymbolDisplay\SymbolDisplayTests.cs (2)
5431Assert.False(new FormattedSymbol(sA, f1).Equals((object)sA)); 5432Assert.False(new FormattedSymbol(sA, f1).Equals(null));
Symbols\ConversionTests.cs (6)
247Assert.False(f1Type.Equals(f2Type)); 253Assert.False(f3Type.Equals(f4Type)); 259Assert.False(f6Type.Equals(f7Type)); 260Assert.False(f6Type.Equals(f8Type)); 261Assert.False(f7Type.Equals(f8Type)); 278Assert.False(g1Type.Equals(g2Type));
Symbols\Metadata\PE\MissingTypeReferences.cs (1)
379Assert.False(missingAssembly.Equals(null));
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
Extensions.cs (2)
429return expected.Equals(arg.Value); 464return expected == null ? arg.Value == null : expected.Equals(arg.Value);
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (4)
1727if (name.Equals(nameof(Task<int>.ConfigureAwait)) && 1733else if (name.Equals(nameof(Task<int>.ContinueWith))) 1745else if (name.Equals(nameof(Enumerable.Select)) || 1746name.Equals(nameof(Enumerable.Where)))
Microsoft.CodeAnalysis.EditorFeatures (26)
Classification\Semantic\AbstractSemanticOrEmbeddedClassificationViewTaggerProvider.cs (2)
80static option => option.Equals(ClassificationOptionsStorage.ClassifyReassignedVariables) || option.Equals(ClassificationOptionsStorage.ClassifyObsoleteSymbols)));
EditorConfigSettings\Updater\SettingsUpdateHelper.cs (1)
126return updatedText.Equals(originalText) ? null : updatedText;
EditorConfigSettings\Updater\SettingsUpdaterBase.cs (1)
93if (newText is null || newText.Equals(originalText))
InlineHints\InlineHintsDataTaggerProvider.cs (13)
52option.Equals(InlineHintsOptionsStorage.EnabledForParameters) || 53option.Equals(InlineHintsOptionsStorage.ForLiteralParameters) || 54option.Equals(InlineHintsOptionsStorage.ForIndexerParameters) || 55option.Equals(InlineHintsOptionsStorage.ForObjectCreationParameters) || 56option.Equals(InlineHintsOptionsStorage.ForOtherParameters) || 57option.Equals(InlineHintsOptionsStorage.SuppressForParametersThatMatchMethodIntent) || 58option.Equals(InlineHintsOptionsStorage.SuppressForParametersThatDifferOnlyBySuffix) || 59option.Equals(InlineHintsOptionsStorage.SuppressForParametersThatMatchArgumentName) || 60option.Equals(InlineHintsOptionsStorage.EnabledForTypes) || 61option.Equals(InlineHintsOptionsStorage.ForImplicitVariableTypes) || 62option.Equals(InlineHintsOptionsStorage.ForLambdaParameterTypes) || 63option.Equals(InlineHintsOptionsStorage.ForImplicitObjectCreation) || 64option.Equals(InlineHintsOptionsStorage.ForCollectionExpressions)));
Structure\AbstractStructureTaggerProvider.cs (9)
160option.Equals(BlockStructureOptionsStorage.ShowBlockStructureGuidesForCodeLevelConstructs) || 161option.Equals(BlockStructureOptionsStorage.ShowBlockStructureGuidesForDeclarationLevelConstructs) || 162option.Equals(BlockStructureOptionsStorage.ShowBlockStructureGuidesForCommentsAndPreprocessorRegions) || 163option.Equals(BlockStructureOptionsStorage.ShowOutliningForCodeLevelConstructs) || 164option.Equals(BlockStructureOptionsStorage.ShowOutliningForDeclarationLevelConstructs) || 165option.Equals(BlockStructureOptionsStorage.ShowOutliningForCommentsAndPreprocessorRegions) || 166option.Equals(BlockStructureOptionsStorage.CollapseRegionsWhenCollapsingToDefinitions) || 167option.Equals(BlockStructureOptionsStorage.CollapseLocalFunctionsWhenCollapsingToDefinitions))); 247return latestTag.Equals(previousTag);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities2 (2)
Intellisense\MockCompletionPresenter.vb (2)
57_filters = _filters.Select(Function(n) If(n.Filter.Equals(targetFilter), n.WithSelected(isSelected), n)).ToImmutableArray() 81If itemToSelect IsNot Nothing AndAlso Not _presentedItems.Any(Function(n) n.CompletionItem.Equals(itemToSelect)) AndAlso Not thisIsSuggestionItem Then
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (7)
IntelliSense\CSharpCompletionCommandHandlerTests.vb (7)
8661Dim expectingItem = state.GetCompletionItems().First(Function(item) item.DisplayText.Equals("C11")) 8698Dim expectingItem = state.GetCompletionItems().First(Function(item) item.DisplayText.Equals("DDD")) 8737Dim expectingItem = state.GetCompletionItems().First(Function(item) item.DisplayText.Equals("DDD")) 8774Dim expectingItem = state.GetCompletionItems().First(Function(item) item.DisplayText.Equals("DDD")) 8807Dim expectingItem = state.GetCompletionItems().First(Function(item) item.DisplayText.Equals("C11")) 8840Dim expectingItem = state.GetCompletionItems().First(Function(item) item.DisplayText.Equals("AA")) 8873Dim expectingItem = state.GetCompletionItems().First(Function(item) item.DisplayText.Equals("AA"))
Microsoft.CodeAnalysis.Extensions.Package (1)
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
1372internal static bool EqualityComparersAreEqual(SegmentedHashSet<T> set1, SegmentedHashSet<T> set2) => set1.Comparer.Equals(set2.Comparer);
Microsoft.CodeAnalysis.Features (9)
GenerateEqualsAndGetHashCodeFromMembers\IGenerateEqualsAndGetHashCodeService.cs (3)
15/// Service that can be used to generate <see cref="object.Equals(object)"/> and 26/// Generates an override of <see cref="object.Equals(object)"/> that works by comparing the 32/// Generates an override of <see cref="object.Equals(object)"/> that works by delegating to
IntroduceParameter\IntroduceParameterDocumentRewriter.cs (1)
640if (!match.Equals(_expression))
MetadataAsSource\AbstractMetadataAsSourceService.AbstractWrappedSymbol.cs (1)
108=> Equals((object)other);
PullMemberUp\MembersPuller.cs (1)
243if (declaration.Equals(eventDeclaration) && !isEventHasExplicitAddOrRemoveMethod)
src\Analyzers\Core\CodeFixes\AddExplicitCast\Fixer.cs (2)
159if (arguments[i].Equals(targetArgument)) 165if (arguments[i].Equals(targetArgument))
src\Analyzers\Core\CodeFixes\AddExplicitCast\InheritanceDistanceComparer.cs (1)
43if (!x.syntax.Equals(y.syntax))
Microsoft.CodeAnalysis.InteractiveHost (1)
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
1372internal static bool EqualityComparersAreEqual(SegmentedHashSet<T> set1, SegmentedHashSet<T> set2) => set1.Comparer.Equals(set2.Comparer);
Microsoft.CodeAnalysis.LanguageServer.Protocol (6)
Handler\PullHandlers\VersionedPullCache.CacheItem.cs (2)
75if (cheapVersion != null && cheapVersion.Equals(_lastResult.Value.cheapVersion)) 87if (expensiveVersion != null && expensiveVersion.Equals(_lastResult.Value.expensiveVersion))
Protocol\Diagnostic.cs (2)
152: this.Tags.Equals(other.Tags) || this.Tags.SequenceEqual(other.Tags)) 155: this.Data.Equals(other.Data));
Protocol\Position.cs (1)
93/// Overrides base class method <see cref="object.Equals(object)"/>. Two positions are equal if their line and character are the same.
Protocol\SymbolInformation.cs (1)
120: (this.Tags.Equals(other.Tags) || this.Tags.SequenceEqual(other.Tags)))
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (9)
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
1372internal static bool EqualityComparersAreEqual(SegmentedHashSet<T> set1, SegmentedHashSet<T> set2) => set1.Comparer.Equals(set2.Comparer);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IDictionaryExtensions.cs (1)
15dictionary.Keys.All(key => other.ContainsKey(key) && dictionary[key]?.Equals(other[key]) == true);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (2)
24/// Checks if the given method overrides <see cref="object.Equals(object)"/>. 38/// Checks if the given method is <see cref="object.Equals(object)"/>.
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
146else if (operation.Parent is IForToLoopOperation forToLoopOperation && forToLoopOperation.LoopControlVariable.Equals(operation))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (3)
126if (existingConstants[0].Equals(Multiply(existingConstants[1], 2))) 130if (existingConstants[0].Equals(Convert.ChangeType(2, existingConstants[0].GetType())) && 131existingConstants[1].Equals(Convert.ChangeType(1, existingConstants[1].GetType())))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (1)
218=> this.Equals((object)other);
Microsoft.CodeAnalysis.PublicApiAnalyzers (8)
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
1372internal static bool EqualityComparersAreEqual(SegmentedHashSet<T> set1, SegmentedHashSet<T> set2) => set1.Comparer.Equals(set2.Comparer);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IDictionaryExtensions.cs (1)
15dictionary.Keys.All(key => other.ContainsKey(key) && dictionary[key]?.Equals(other[key]) == true);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (2)
24/// Checks if the given method overrides <see cref="object.Equals(object)"/>. 38/// Checks if the given method is <see cref="object.Equals(object)"/>.
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
146else if (operation.Parent is IForToLoopOperation forToLoopOperation && forToLoopOperation.LoopControlVariable.Equals(operation))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (3)
126if (existingConstants[0].Equals(Multiply(existingConstants[1], 2))) 130if (existingConstants[0].Equals(Convert.ChangeType(2, existingConstants[0].GetType())) && 131existingConstants[1].Equals(Convert.ChangeType(1, existingConstants[1].GetType())))
Microsoft.CodeAnalysis.PublicApiAnalyzers.CodeFixes (1)
src\RoslynAnalyzers\Utilities\Workspaces\SyntaxGeneratorExtensions.cs (1)
337/// Creates a default declaration for an override of <see cref="object.Equals(object)"/>.
Microsoft.CodeAnalysis.ResxSourceGenerator (8)
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
1372internal static bool EqualityComparersAreEqual(SegmentedHashSet<T> set1, SegmentedHashSet<T> set2) => set1.Comparer.Equals(set2.Comparer);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IDictionaryExtensions.cs (1)
15dictionary.Keys.All(key => other.ContainsKey(key) && dictionary[key]?.Equals(other[key]) == true);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (2)
24/// Checks if the given method overrides <see cref="object.Equals(object)"/>. 38/// Checks if the given method is <see cref="object.Equals(object)"/>.
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
146else if (operation.Parent is IForToLoopOperation forToLoopOperation && forToLoopOperation.LoopControlVariable.Equals(operation))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (3)
126if (existingConstants[0].Equals(Multiply(existingConstants[1], 2))) 130if (existingConstants[0].Equals(Convert.ChangeType(2, existingConstants[0].GetType())) && 131existingConstants[1].Equals(Convert.ChangeType(1, existingConstants[1].GetType())))
Microsoft.CodeAnalysis.Test.Utilities (8)
Assert\EqualityTesting.cs (4)
20Assert.True(x.Equals(y)); 21Assert.True(((object)x).Equals(y)); 27Assert.False(x.Equals(y)); 28Assert.False(((object)x).Equals(y));
Assert\EqualityUtil`1.cs (3)
145Assert.True(value.Equals(unitValue)); 146Assert.True(unitValue.Equals(value)); 176Assert.False(value.Equals((object)42));
Diagnostics\DiagnosticDescription.cs (1)
254if (!_code.Equals(d._code))
Microsoft.CodeAnalysis.Threading.Package (1)
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
1372internal static bool EqualityComparersAreEqual(SegmentedHashSet<T> set1, SegmentedHashSet<T> set2) => set1.Comparer.Equals(set2.Comparer);
Microsoft.CodeAnalysis.UnitTests (50)
Collections\ImmutableDictionaryTestBase.nonnetstandard.cs (14)
70Assert.False(Empty<int, int>().Equals(null)); 71Assert.False(Empty<int, int>().Equals("hi")); 72Assert.True(Empty<int, int>().Equals(Empty<int, int>())); 73Assert.False(Empty<int, int>().Add(3, 2).Equals(Empty<int, int>().Add(3, 2))); 74Assert.False(Empty<int, int>().Add(3, 2).Equals(Empty<int, int>().Add(3, 1))); 75Assert.False(Empty<int, int>().Add(5, 1).Equals(Empty<int, int>().Add(3, 1))); 76Assert.False(Empty<int, int>().Add(3, 1).Add(5, 1).Equals(Empty<int, int>().Add(3, 1))); 77Assert.False(Empty<int, int>().Add(3, 1).Equals(Empty<int, int>().Add(3, 1).Add(5, 1))); 79Assert.True(Empty<int, int>().ToReadOnlyDictionary().Equals(Empty<int, int>())); 80Assert.True(Empty<int, int>().Equals(Empty<int, int>().ToReadOnlyDictionary())); 81Assert.True(Empty<int, int>().ToReadOnlyDictionary().Equals(Empty<int, int>().ToReadOnlyDictionary())); 82Assert.False(Empty<int, int>().Add(3, 1).ToReadOnlyDictionary().Equals(Empty<int, int>())); 83Assert.False(Empty<int, int>().Equals(Empty<int, int>().Add(3, 1).ToReadOnlyDictionary())); 84Assert.False(Empty<int, int>().ToReadOnlyDictionary().Equals(Empty<int, int>().Add(3, 1).ToReadOnlyDictionary()));
Collections\ImmutableSetTest.cs (7)
143Assert.False(Empty<int>().Equals(null)); 144Assert.False(Empty<int>().Equals("hi")); 145Assert.True(Empty<int>().Equals(Empty<int>())); 146Assert.False(Empty<int>().Add(3).Equals(Empty<int>().Add(3))); 147Assert.False(Empty<int>().Add(5).Equals(Empty<int>().Add(3))); 148Assert.False(Empty<int>().Add(3).Add(5).Equals(Empty<int>().Add(3))); 149Assert.False(Empty<int>().Add(3).Equals(Empty<int>().Add(3).Add(5)));
Collections\List\SegmentedList.Generic.Tests.Find.cs (22)
23private readonly Predicate<T?> _equalsDefaultDelegate = (T? item) => { return default(T) == null ? item == null : default(T)!.Equals(item); }; 234Predicate<T?> EqualsDelegate = (T? item) => { return expectedItem == null ? item == null : expectedItem.Equals(item); }; 255foundItem = list.Find((T? item) => { return item == null ? default(T) == null : item.Equals(default(T)); }); 268Predicate<T?> EqualsDelegate = (T? item) => { return expectedItem == null ? item == null : expectedItem.Equals(item); }; 329Predicate<T?> EqualsDelegate = (T? item) => { return expectedItem == null ? item == null : expectedItem.Equals(item); }; 354foundItem = list.FindLast((T? item) => { return item == null ? default(T) == null : item.Equals(default(T)); }); 367Predicate<T?> EqualsDelegate = (T? item) => { return expectedItem == null ? item == null : expectedItem.Equals(item); }; 406Predicate<T> EqualsDefaultDelegate = (T item) => { return expectedItem == null ? item == null : expectedItem.Equals(item); }; 437Predicate<T> EqualsDelegate = (T item) => { return expectedItem == null ? item == null : expectedItem.Equals(item); }; 472Predicate<T> EqualsDelegate = delegate (T item) { return expectedItem == null ? item == null : expectedItem.Equals(item); }; 525Predicate<T> EqualsDelegate = delegate (T item) { return expectedItem == null ? item == null : expectedItem.Equals(item); }; 570Predicate<T> EqualsDelegate = delegate (T item) { return expectedItem == null ? item == null : expectedItem.Equals(item); }; 576index = list.FindIndex(0, count, delegate (T item) { return expectedItem == null ? item == null : expectedItem.Equals(item); }); 648Predicate<T> EqualsDelegate = delegate (T item) { return expectedItem == null ? item == null : expectedItem.Equals(item); }; 693Predicate<T> EqualsDelegate = delegate (T item) { return expectedItem == null ? item == null : expectedItem.Equals(item); }; 721Predicate<T> EqualsDelegate = delegate (T item) { return expectedItem == null ? item == null : expectedItem.Equals(item); }; 756Predicate<T> EqualsDelegate = (T item) => { return expectedItem == null ? item == null : expectedItem.Equals(item); }; 808Predicate<T> EqualsDelegate = (T item) => { return expectedItem == null ? item == null : expectedItem.Equals(item); }; 853Predicate<T> EqualsDelegate = (T item) => { return expectedItem == null ? item == null : expectedItem.Equals(item); }; 934Predicate<T> EqualsDelegate = (T item) => { return expectedItem == null ? item == null : expectedItem.Equals(item); }; 968Predicate<T> EqualsDelegate = (value) => expectedItem == null ? value == null : expectedItem.Equals(value); 994Predicate<T> EqualsDelegate = (value) => expectedItem == null ? value == null : expectedItem.Equals(value);
Collections\List\SegmentedList.Generic.Tests.Misc.cs (6)
367Predicate<T?> expectedItemDelegate = (T? item) => { return expectedItem == null ? item == null : expectedItem.Equals(item); }; 392Assert.True(list.Exists((T? item) => { return item == null ? default(T) == null : item.Equals(default(T)); }), 401Predicate<T> expectedItemDelegate = (T item) => { return expectedItem == null ? item == null : expectedItem.Equals(item); }; 425Assert.True(list.Exists((T item) => { return item != null && (item.Equals(items[0]) || item.Equals(items[1])); }), 674Predicate<T> expectedItemDelegate = delegate (T item) { return expectedItem == null ? item != null : !expectedItem.Equals(item); };
Collections\List\SegmentedList.Generic.Tests.Remove.cs (1)
54Predicate<T> EqualsDefaultElement = (value) => { return default(T) == null ? value == null : default(T)!.Equals(value); };
Microsoft.CodeAnalysis.VisualBasic (2)
Binding\Binder_SelectCase.vb (1)
413clausesChanged = clausesChanged OrElse Not newCaseClause.Equals(caseClause)
Symbols\Source\CrefTypeParameterSymbol.vb (1)
143Me._syntaxReference.GetSyntax().Equals(other._syntaxReference.GetSyntax())
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\SyntaxTokenExtensions.vb (1)
159If parentEndBlock.Equals(precedingEndBlock) Then
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\ExpressionGenerator.vb (2)
204Dim literal = If(negative AndAlso nonNegativeValue.Equals(value), 401If specialValue.Key.Equals(value) Then
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (1)
AutomaticEndConstructCorrection\LetterOnlyTrackingSpan.vb (1)
169If snapshot.Version.Equals(Me._version) Then
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (7)
Attributes\AssemblyAttributes.vb (2)
1235Dim srcAttrs = allSrcAttrs.Where(Function(a) a.AttributeClass.Name.Equals(attrTypeName)).AsImmutable() 1254Dim emittedAttrs = allEmittedAttrs.Where(Function(a) a.AttributeClass.Name.Equals(attrTypeName)).AsImmutable()
CodeGen\CodeGenTuples.vb (4)
15189Assert.False(underlyingMembers.Any(Function(u) u.Equals(m))) 15190Assert.False(underlyingMembers.Any(Function(u) m.Equals(u))) 15244Assert.False(members2.Any(Function(u) u.Equals(m))) 15245Assert.False(members2.Any(Function(u) m.Equals(u)))
Emit\DynamicAnalysis\DynamicInstrumentationTests.vb (1)
1916If Diagnostic.Code = ERRID.ERR_MissingRuntimeHelper AndAlso Diagnostic.Arguments(0).Equals("System.Guid..ctor") Then
Microsoft.CodeAnalysis.VisualBasic.Features (1)
IntroduceVariable\VisualBasicIntroduceVariableService.Rewriter.vb (1)
41If innerExpression.HasAnnotation(s_replacementAnnotation) AndAlso innerExpression.Equals(parenthesizedExpression.Expression) Then
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (13)
SymbolsTests\Metadata\PE\LoadingOperators.vb (7)
2286Assert.Equal(MethodKind.Ordinary, DirectCast(a11.GetMembers().Where(Function(m) m.Name.Equals("op_OnesComplement")).Single(), MethodSymbol).MethodKind) 2287Assert.Equal(MethodKind.Ordinary, DirectCast(a11.GetMembers().Where(Function(m) m.Name.Equals("OP_ONESCOMPLEMENT")).Single(), MethodSymbol).MethodKind) 2384Assert.Equal(MethodKind.Ordinary, DirectCast(a11.GetMembers().Where(Function(m) m.Name.Equals("OP_ONESCOMPLEMENT")).Single(), MethodSymbol).MethodKind) 2385Assert.Equal(MethodKind.Ordinary, DirectCast(a11.GetMembers().Where(Function(m) m.Name.Equals("op_OnesComplement")).Single(), MethodSymbol).MethodKind) 2622Assert.Equal(MethodKind.UserDefinedOperator, DirectCast(a11.GetMembers().Where(Function(m) m.Name.Equals("op_OnesComplement")).Single(), MethodSymbol).MethodKind) 2623Assert.Equal(MethodKind.Ordinary, DirectCast(a11.GetMembers().Where(Function(m) m.Name.Equals("OP_ONESCOMPLEMENT")).Single(), MethodSymbol).MethodKind) 2686Assert.Equal(MethodKind.UserDefinedOperator, DirectCast(a11.GetMembers().Where(Function(m) m.Name.Equals("op_OnesComplement")).Single(), MethodSymbol).MethodKind)
SymbolsTests\Metadata\PE\MissingTypeReferences.vb (2)
471Assert.True(missingAssembly.Equals(missingAssembly)) 473Assert.False(missingAssembly.Equals(Nothing))
SymbolsTests\Metadata\PE\NoPiaLocalHideAndTypeSubstitutionTests.vb (1)
299Where(Function(n) n.Name.Equals(name)).
SymbolsTests\Source\PropertyTests.vb (3)
596Assert.Equal(propertySymbols.Count(Function(psymb) psymb.Name.Equals("P")), 3) 597Assert.Equal(propertyGettersSymbols.Count(Function(msymb) msymb.Name.Equals("get_p")), 1) 598Assert.Equal(propertyGettersSymbols.Count(Function(msymb) msymb.Name.Equals("get_P")), 2)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (1)
Parser\ParseAsyncTests.vb (1)
437Dim awaitParsedAsIdentifier = tree.GetRoot().DescendantNodes.OfType(Of IdentifierNameSyntax).Where(Function(id) id.Identifier.ValueText.Equals("Await")).ToArray()
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (2)
Extensions.vb (2)
183Return expected.Equals(arg.Value) 215Return If(expected Is Nothing, arg.Value Is Nothing, expected.Equals(CType(arg.Value, T)))
Microsoft.CodeAnalysis.VisualBasic.Workspaces (5)
Recommendations\VisualBasicRecommendationServiceRunner.vb (1)
330symbols = symbols.WhereAsArray(Function(s) Not s.Equals(parentingCtor))
Rename\VisualBasicRenameRewriterLanguageService.vb (1)
943.Where(Function(sym) Not sym.Equals(renamedSymbol))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\SyntaxTokenExtensions.vb (1)
159If parentEndBlock.Equals(precedingEndBlock) Then
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\ExpressionGenerator.vb (2)
204Dim literal = If(negative AndAlso nonNegativeValue.Equals(value), 401If specialValue.Key.Equals(value) Then
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (2)
CodeGeneration\SyntaxGeneratorTests.vb (2)
1067Function(m) m.Name = WellKnownMemberNames.ExplicitConversionName AndAlso m.Parameters(0).Type.Equals(gcHandleType)) 1076Function(m) m.Name = WellKnownMemberNames.ImplicitConversionName AndAlso m.Parameters(0).Type.Equals(_emptyCompilation.GetSpecialType(SpecialType.System_Byte)))
Microsoft.CodeAnalysis.Workspaces (22)
Differencing\Edit.cs (6)
24Debug.Assert((oldNode == null || oldNode.Equals(null)) == (kind == EditKind.Insert)); 25Debug.Assert((newNode == null || newNode.Equals(null)) == (kind == EditKind.Delete)); 28oldNode == null || oldNode.Equals(null) || 29newNode == null || newNode.Equals(null) || 70&& (OldNode == null) ? other.OldNode == null : OldNode.Equals(other.OldNode) 71&& (NewNode == null) ? other.NewNode == null : NewNode.Equals(other.NewNode);
Differencing\EditScript.cs (4)
183if (Match.TryGetPartnerInTree2(e, out var pw) && Comparer.GetParent(pw).Equals(x)) 194if (Match.TryGetPartnerInTree1(e, out var px) && Comparer.GetParent(px).Equals(w)) 230Comparer.GetParent(b).Equals(x) && 242=> dict.TryGetValue(a, out var value) && value.Equals(b);
Differencing\MapBasedLongestCommonSubsequence.cs (1)
13=> map.TryGetValue(oldSequence[oldIndex], out var newNode) && newNode.Equals(newSequence[newIndex]);
Differencing\Match.cs (1)
326return TryGetPartnerInTree2(node1, out var partner2) && node2.Equals(partner2);
FindSymbols\FindLiterals\FindLiteralsSearchEngine.cs (1)
191if (_value.Equals(token.Value))
FindSymbols\SymbolFinder.cs (1)
232c => c.DeclaringSyntaxReferences.Any(r => linkedNode.Equals(r.GetSyntax(cancellationToken))));
Options\OptionKey.cs (1)
50return thisOption.Equals(otherOption);
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
1372internal static bool EqualityComparersAreEqual(SegmentedHashSet<T> set1, SegmentedHashSet<T> set2) => set1.Comparer.Equals(set2.Comparer);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
146else if (operation.Parent is IForToLoopOperation forToLoopOperation && forToLoopOperation.LoopControlVariable.Equals(operation))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (3)
126if (existingConstants[0].Equals(Multiply(existingConstants[1], 2))) 130if (existingConstants[0].Equals(Convert.ChangeType(2, existingConstants[0].GetType())) && 131existingConstants[1].Equals(Convert.ChangeType(1, existingConstants[1].GetType())))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (1)
218=> this.Equals((object)other);
Workspace\Solution\Solution.cs (1)
846if (!reference.Equals(analyzerReference))
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
src\Compilers\Core\Portable\InternalUtilities\ConcurrentLruCache.cs (1)
126else if (!result.Value.Equals(value))
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
1372internal static bool EqualityComparersAreEqual(SegmentedHashSet<T> set1, SegmentedHashSet<T> set2) => set1.Comparer.Equals(set2.Comparer);
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Options\OptionsTestHelpers.cs (1)
149return defaultValue.Equals(zero) ? Enum.ToObject(type, 1) : zero;
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
Options\NamingStylePreferencesTests.cs (1)
30NamingStylePreferences.FromXElement(XElement.Parse(NamingStylePreferences.DefaultNamingPreferencesString)).Equals(
Microsoft.CSharp (7)
Microsoft\CSharp\RuntimeBinder\RuntimeBinderExtensions.cs (1)
106if (pi1.Equals(pi2))
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\SymbolLoader.cs (1)
125private static bool AreTypesEqualForConversion(CType pType1, CType pType2) => pType1.Equals(pType2);
Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeManager.cs (5)
330if (typeDst.Equals(typeSrc)) 332Debug.Assert(typeDst.Equals(SubstType(typeSrc, typeArgsCls, typeArgsMeth, denormMeth))); 344if (taDst == taSrc || (taDst != null && taDst.Equals(taSrc))) 379if (typeDst == typeSrc || typeDst.Equals(typeSrc)) 477if (type == typeFind || type.Equals(typeFind))
Microsoft.DotNet.XUnitAssert.Tests (1)
EqualityAssertsTests.cs (1)
4365 obj is BaseClass || base.Equals(obj);
Microsoft.Extensions.DependencyInjection (4)
ServiceLookup\CallSiteFactory.cs (3)
435if (descriptorKey.Equals(KeyedService.AnyKey)) 440return lookupKey.Equals(descriptorKey) 441|| lookupKey.Equals(KeyedService.AnyKey);
ServiceLookup\ServiceIdentifier.cs (1)
39return ServiceType == other.ServiceType && ServiceKey.Equals(other.ServiceKey);
Microsoft.Interop.SourceGeneration (1)
ValueEqualityImmutableDictionary.cs (1)
25if (!other.TryGetValue(kvp.Key, out var value) || !kvp.Value.Equals(value))
Microsoft.Maui (11)
Converters\EasingTypeConverter.cs (11)
60 _ when easing.Equals(Linear) => nameof(Linear), 61 _ when easing.Equals(SinIn) => nameof(SinIn), 62 _ when easing.Equals(SinOut) => nameof(SinOut), 63 _ when easing.Equals(SinInOut) => nameof(SinInOut), 64 _ when easing.Equals(CubicIn) => nameof(CubicIn), 65 _ when easing.Equals(CubicOut) => nameof(CubicOut), 66 _ when easing.Equals(CubicInOut) => nameof(CubicInOut), 67 _ when easing.Equals(BounceIn) => nameof(BounceIn), 68 _ when easing.Equals(BounceOut) => nameof(BounceOut), 69 _ when easing.Equals(SpringIn) => nameof(SpringIn), 70 _ when easing.Equals(SpringOut) => nameof(SpringOut),
Microsoft.Maui.Controls (9)
CompareStateTrigger.cs (1)
79 return value2.Equals(value1);
Interactivity\BindingCondition.cs (2)
71 if ((other == Value) || (other != null && other.Equals(Value))) 80 return (other == converted) || (other != null && other.Equals(converted));
Interactivity\PropertyCondition.cs (2)
95 bool newState = (newvalue == Value) || (newvalue != null && newvalue.Equals(Value)); 116 bool newstate = (newvalue == Value) || (newvalue != null && newvalue.Equals(Value));
MessagingCenter.cs (1)
49 if (subscriber.Equals(delegateSource))
Routing.cs (1)
255 if (s_routes.TryGetValue(route, out existingRegistration) && !existingRegistration.Equals(routeFactory))
VisualStateManager.cs (2)
668 if (!Setters[i].Equals(other.Setters[i])) 671 if (!StateTriggers[i].Equals(other.StateTriggers[i]))
Microsoft.Maui.Controls.BindingSourceGen (1)
PathPart.cs (1)
41 && Index.Equals(indexAccess.Index)
Microsoft.Maui.Controls.Maps (2)
Map.cs (1)
353 if (pin.BindingContext?.Equals(itemToRemove) == true)
Pin.cs (1)
81 /// <inheritdoc cref="object.Equals(object)"/>
Microsoft.Maui.Essentials (1)
Types\Location.shared.cs (1)
250 /// <inheritdoc cref="object.Equals(object)"/>
Microsoft.Maui.Graphics (1)
Color.cs (1)
111 return base.Equals(obj);
Microsoft.Maui.Graphics.Skia (1)
SkiaCanvasState.cs (1)
215 if (!ReferenceEquals(_font, value) && (_font is null || !_font.Equals(value)))
Microsoft.ML.AutoML (3)
AutoMLExperiment\IStopTrainingManager.cs (3)
143if (_managers.Exists(manager.Equals)) 152if (_managers.Exists(manager.Equals)) 154_managers.RemoveAll(manager.Equals);
Microsoft.ML.AutoML.Tests (16)
SweeperTests.cs (16)
187Assert.False(value1.Equals((object)value2)); 188Assert.True(value1.Equals((object)value1)); 189Assert.True(value1.Equals((object)duplicateValue1)); 193Assert.False(value1.Equals((object)null)); 194Assert.False(value1.Equals(new object())); 210Assert.False(value1.Equals((object)value2)); 211Assert.True(value1.Equals((object)value1)); 212Assert.True(value1.Equals((object)duplicateValue1)); 216Assert.False(value1.Equals((object)null)); 217Assert.False(value1.Equals(new object())); 233Assert.False(value1.Equals((object)value2)); 234Assert.True(value1.Equals((object)value1)); 235Assert.True(value1.Equals((object)duplicateValue1)); 239Assert.False(value1.Equals((object)null)); 240Assert.False(value1.Equals(new object())); 254Assert.False(parameterSet.Equals(null));
Microsoft.ML.Core (11)
CommandLine\CmdParser.cs (5)
1700else if (Unique && val.Values.Any(x => x.Value.Equals(newValue))) 1958else if (def == null || !value.Equals(def)) 1983if (!vals[i].Equals(defs[i])) 2057else if (def == null || !value.Equals(def)) 2082if (!vals[i].Equals(defs[i]))
EntryPoints\EntryPointUtils.cs (1)
78equalToDefault = fieldType.IsValueType ? Activator.CreateInstance(fieldType).Equals(fieldVal) : fieldVal == null;
Utilities\FuncInstanceMethodInfo1`3.cs (1)
48/// <see cref="object.Equals(object)"/> method:
Utilities\FuncInstanceMethodInfo1`4.cs (1)
49/// <see cref="object.Equals(object)"/> method:
Utilities\FuncInstanceMethodInfo2`4.cs (1)
49/// <see cref="object.Equals(object)"/> method:
Utilities\FuncInstanceMethodInfo3`3.cs (1)
48/// <see cref="object.Equals(object)"/> method:
Utilities\FuncInstanceMethodInfo3`4.cs (1)
49/// <see cref="object.Equals(object)"/> method:
Microsoft.ML.Data (2)
EntryPoints\InputBuilder.cs (1)
273else if (instanceVal != null && (attr.Input.IsRequired || !instanceVal.Equals(defaultsVal)))
Evaluators\EvaluatorUtils.cs (1)
507if (def.Equals(default(T)))
Microsoft.ML.Ensemble (1)
Selector\SubModelSelector\BaseBestPerformanceSelector.cs (1)
61if (value.Equals(valCur))
Microsoft.ML.Tests (1)
CollectionsDataViewTest.cs (1)
51return x.Equals(y);
Microsoft.ML.Transforms (1)
GroupTransform.cs (1)
413result = oldValue.Equals(newValue);
Microsoft.Net.Http.Headers (1)
HeaderUtilities.cs (1)
125if (((comparer == null) && xItem.Equals(yItem)) ||
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\CompilerServices\Utils.vb (1)
228If pi1.Equals(pi2) Then
Microsoft.VisualStudio.LanguageServices (8)
InheritanceMargin\InheritanceMarginTaggerProvider.cs (2)
66option.Equals(InheritanceMarginOptionsStorage.ShowInheritanceMargin) || 67option.Equals(InheritanceMarginOptionsStorage.InheritanceMarginCombinedWithIndicatorMargin)));
InheritanceMargin\InheritanceMarginViewMargin.cs (2)
128option.Equals(InheritanceMarginOptionsStorage.ShowInheritanceMargin) || 129option.Equals(InheritanceMarginOptionsStorage.InheritanceMarginCombinedWithIndicatorMargin)))
Options\LocalUserRegistryOptionPersister.cs (1)
54value = subKey.GetValue(key, defaultValue: (bool)optionKey.Option.DefaultValue! ? 1 : 0).Equals(1);
src\Compilers\Core\Portable\InternalUtilities\ConcurrentLruCache.cs (1)
126else if (!result.Value.Equals(value))
Utilities\EnumBoolConverter.cs (2)
20=> value?.Equals(parameter) ?? DependencyProperty.UnsetValue; 23=> value?.Equals(true) == true ? parameter : Binding.DoNothing;
Microsoft.VisualStudio.LanguageServices.LiveShare (2)
Client\RemoteLanguageServiceWorkspace.cs (2)
157if (IsRemoteSession && (!_remoteWorkspaceRootPaths.Equals(remoteRootPaths) || !_registeredExternalPaths.Equals(externalPaths)))
Microsoft.VisualStudio.LanguageServices.UnitTests (7)
CodeModel\VisualBasic\FileCodeModelTests.vb (2)
1018Dim changeDocument = changedworkspace.CurrentSolution.GetDocument(changedworkspace.Documents.First(Function(d) d.Name.Equals("File1.vb")).Id) 1034changeDocument = changedworkspace.CurrentSolution.GetDocument(changedworkspace.Documents.First(Function(d) d.Name.Equals("File2.vb")).Id)
CommonControls\MemberSelectionViewModelTests.vb (2)
157Dim member = memberArray.FirstOrDefault(Function(memberViewModel) memberViewModel.SymbolName.Equals(name)) 185Function(member) New MemberSymbolViewModel(member, glyphService:=Nothing) With {.IsChecked = member.Equals(memberSymbol), .IsCheckable = True, .MakeAbstract = False})
MoveStaticMembers\MoveStaticMembersViewModelTest.vb (1)
54Dim member = memberArray.FirstOrDefault(Function(memberViewModel) memberViewModel.Symbol.Name.Equals(name))
PullMemberUp\PullMemberUpViewModelTest.vb (2)
230Dim member = memberArray.FirstOrDefault(Function(memberViewModel) memberViewModel.SymbolName.Equals(name)) 259Function(member) New MemberSymbolViewModel(member, glyphService:=Nothing) With {.IsChecked = member.Equals(memberSymbol), .IsCheckable = True, .MakeAbstract = False})
Microsoft.VisualStudio.LanguageServices.VisualBasic (4)
CodeModel\VisualBasicCodeModelService.vb (4)
1717If [option].Equals(optionNode) Then 1734If [inherits].Equals(inheritsNode) Then 1751If [implements].Equals(implementsNode) Then 1768If attribute.Equals(attributeNode) Then
PresentationCore (19)
MS\Internal\DpiScale2.cs (1)
179areEqual = base.Equals(obj);
MS\Internal\Generic\Span.cs (4)
146&& _spanList[Count - 1].Value.Equals(value)) 186&& _spanList[fs - 1].Value.Equals(value)) 198if (_spanList[fs].Value.Equals(value)) 210&& _spanList[ls].Value.Equals( value))
MS\Internal\Ink\ExtendedProperty.cs (2)
67if (!array1.GetValue(i).Equals(array2.GetValue(i))) 78return that.Value.Equals(this.Value);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
289return base.Equals(o);
System\Windows\Ink\DrawingAttributes.cs (6)
824if (!defaultValueIfDrawingAttribute.Equals(args.NewProperty.Value)) 854if (!args.NewProperty.Value.Equals(args.OldProperty.Value)) 867if (!args.NewProperty.Value.Equals(args.OldProperty.Value)) 898if (defaultValue.Equals(value)) 910if (!o.Equals(value)) 922if (defaultValue == null || !defaultValue.Equals(value))
System\Windows\Media\Animation\KeyTime.cs (1)
171/// Implementation of <see cref="System.Object.Equals(object)">Object.Equals</see>.
System\Windows\Media\Animation\TimelineClockCollection.cs (1)
97if (t.Equals(item))
System\Windows\Media\FamilyMapCollection.cs (1)
342if (_items[i].Equals(item))
System\Windows\Media\FamilyTypeface.cs (1)
250/// <see cref="object.Equals(object)"/>
System\Windows\Media\FontFamily.cs (1)
287return base.Equals(o);
PresentationFramework (20)
MS\Internal\AppModel\BamlStream.cs (1)
171return _stream.Equals(obj);
MS\Internal\Navigation\BindStream.cs (1)
246return _stream.Equals(obj);
System\Windows\Automation\Peers\DataGridColumnHeadersPresenterAutomationPeer.cs (1)
234if (value.Equals(currentValue) && items.IndexOf(items[i]) == i)
System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (1)
199if (value.Equals(currentValue))
System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (1)
310if (value.Equals(currentValue) && items.IndexOf(items[i]) == i)
System\Windows\ComponentResourceKey.cs (1)
106((key._resourceId != null) ? key._resourceId.Equals(this._resourceId) : (this._resourceId == null));
System\Windows\Controls\Grid.cs (1)
3613/// <see cref="object.Equals(object)"/>
System\Windows\Controls\TreeView.cs (1)
427if ((selectedItem != null) && selectedItem.Equals(e.OldItems[0]))
System\Windows\Controls\TreeViewItem.cs (1)
966if ((selectedItem != null) && selectedItem.Equals(e.OldItems[0]))
System\windows\Documents\UIElementPropertyUndoUnit.cs (1)
144if (currentValue.Equals(newValue))
System\Windows\Markup\Primitives\MarkupWriter.cs (1)
264return other != null && other.Key.Equals(Key);
System\Windows\Standard\Debug.cs (4)
74if (null != actual && !actual.Equals(expected)) 79else if (!expected.Equals(actual)) 98if (null == actual || actual.Equals(notExpected)) 103else if (notExpected.Equals(actual))
System\Windows\Standard\Verify.cs (4)
186if (null != actual && !actual.Equals(expected)) 191else if (!expected.Equals(actual)) 203if (null == actual || actual.Equals(notExpected)) 208else if (notExpected.Equals(actual))
System\Windows\Style.cs (1)
915return (a != null) ? a.Equals(b) : (b == null);
PresentationFramework.Tests (1)
System\Windows\ResourceDictionaryTests.cs (1)
66t.Value.Equals(true));
PresentationUI (28)
MS\Internal\Documents\Application\StreamProxy.cs (1)
239return _proxy.Equals(obj);
MS\Internal\Documents\Application\WriteableOnDemandPackagePart.cs (1)
196if (writingPart.Equals(this))
MS\Internal\Documents\Application\WriteableOnDemandStream.cs (1)
291if (writer.Equals(this))
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (24)
1311if (e.Command.Equals(ApplicationCommands.Save)) 1324else if (e.Command.Equals(ApplicationCommands.SaveAs)) 1330else if (e.Command.Equals(ApplicationCommands.Properties)) 1336else if (e.Command.Equals(DocumentApplicationDocumentViewer.FocusToolBar)) 1366if (e.Command.Equals(ApplicationCommands.Save)) 1381else if (e.Command.Equals(ApplicationCommands.SaveAs)) 1389else if (e.Command.Equals(ApplicationCommands.Properties)) 1397else if (e.Command.Equals(DocumentApplicationDocumentViewer.FocusToolBar)) 1421if (e.Command.Equals(NavigationCommands.FirstPage)) 1426else if (e.Command.Equals(NavigationCommands.LastPage)) 1447if (e.Command.Equals(NavigationCommands.FirstPage)) 1451else if (e.Command.Equals(NavigationCommands.LastPage)) 1473if (e.Command.Equals(DocumentApplicationDocumentViewer.Sign)) 1477else if (e.Command.Equals(DocumentApplicationDocumentViewer.RequestSigners)) 1481else if (e.Command.Equals(DocumentApplicationDocumentViewer.ShowSignatureSummary)) 1509if (e.Command.Equals(DocumentApplicationDocumentViewer.Sign)) 1513else if (e.Command.Equals(DocumentApplicationDocumentViewer.RequestSigners)) 1517else if (e.Command.Equals(DocumentApplicationDocumentViewer.ShowSignatureSummary)) 1567if (e.Command.Equals(DocumentApplicationDocumentViewer.ShowRMPermissions)) 1571else if (e.Command.Equals(DocumentApplicationDocumentViewer.ShowRMCredentialManager)) 1575else if (e.Command.Equals(DocumentApplicationDocumentViewer.ShowRMPublishingUI)) 1603if (e.Command.Equals(DocumentApplicationDocumentViewer.ShowRMCredentialManager)) 1607else if (e.Command.Equals(DocumentApplicationDocumentViewer.ShowRMPermissions)) 1614else if (e.Command.Equals(DocumentApplicationDocumentViewer.ShowRMPublishingUI))
MS\Internal\Documents\DocumentSignatureManager.cs (1)
665if (!signature.Equals(digSig) &&
ReachFramework (1)
Serialization\Manager\ReachSerializationUtils.cs (1)
71if (List[i].Equals(value))
Roslyn.Diagnostics.Analyzers (10)
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
1372internal static bool EqualityComparersAreEqual(SegmentedHashSet<T> set1, SegmentedHashSet<T> set2) => set1.Comparer.Equals(set2.Comparer);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IDictionaryExtensions.cs (1)
15dictionary.Keys.All(key => other.ContainsKey(key) && dictionary[key]?.Equals(other[key]) == true);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (2)
24/// Checks if the given method overrides <see cref="object.Equals(object)"/>. 38/// Checks if the given method is <see cref="object.Equals(object)"/>.
src\RoslynAnalyzers\Utilities\Workspaces\SyntaxGeneratorExtensions.cs (1)
337/// Creates a default declaration for an override of <see cref="object.Equals(object)"/>.
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
146else if (operation.Parent is IForToLoopOperation forToLoopOperation && forToLoopOperation.LoopControlVariable.Equals(operation))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (3)
126if (existingConstants[0].Equals(Multiply(existingConstants[1], 2))) 130if (existingConstants[0].Equals(Convert.ChangeType(2, existingConstants[0].GetType())) && 131existingConstants[1].Equals(Convert.ChangeType(1, existingConstants[1].GetType())))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (1)
218=> this.Equals((object)other);
Roslyn.Diagnostics.CSharp.Analyzers (4)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (4)
1727if (name.Equals(nameof(Task<int>.ConfigureAwait)) && 1733else if (name.Equals(nameof(Task<int>.ContinueWith))) 1745else if (name.Equals(nameof(Enumerable.Select)) || 1746name.Equals(nameof(Enumerable.Where)))
Roslyn.Diagnostics.VisualBasic.Analyzers (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\SyntaxTokenExtensions.vb (1)
159If parentEndBlock.Equals(precedingEndBlock) Then
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\ExpressionGenerator.vb (2)
204Dim literal = If(negative AndAlso nonNegativeValue.Equals(value), 401If specialValue.Key.Equals(value) Then
System.CodeDom (2)
Microsoft\CSharp\CSharpModifierAttributeConverter.cs (1)
46if (modifiers[i].Equals(value))
Microsoft\VisualBasic\VBModifierAttributeConverter.cs (1)
46if (modifiers[i].Equals(value))
System.Collections (4)
System\Collections\Generic\SortedDictionary.cs (2)
39kv.keyComparer.Equals(keyValuePairComparer.keyComparer)) 857return this.keyComparer == other.keyComparer || this.keyComparer.Equals(other.keyComparer);
System\Collections\Generic\SortedSet.cs (1)
839return Comparer == other.Comparer || Comparer.Equals(other.Comparer);
System\Collections\StructuralComparisons.cs (1)
32return x.Equals(y);
System.Collections.Immutable (11)
System\Collections\Frozen\FrozenDictionary.cs (3)
123if (source is FrozenDictionary<TKey, TValue> fd && fd.Comparer.Equals(comparer)) 132if (newDictionary is null || (newDictionary.Count != 0 && !newDictionary.Comparer.Equals(comparer))) 152Debug.Assert(newDictionary.Comparer.Equals(comparer));
System\Collections\Frozen\FrozenSet.cs (3)
68if (source is FrozenSet<T> fs && fs.Comparer.Equals(comparer)) 78(newSet.Count != 0 && !newSet.Comparer.Equals(comparer))) 91Debug.Assert(newSet.Comparer.Equals(comparer));
System\Collections\Frozen\FrozenSetInternalBase.cs (5)
163HashSet<T> hs => _thisSet.Comparer.Equals(hs.Comparer), 164SortedSet<T> sortedSet => _thisSet.Comparer.Equals(sortedSet.Comparer), 165ImmutableHashSet<T> ihs => _thisSet.Comparer.Equals(ihs.KeyComparer), 166ImmutableSortedSet<T> iss => _thisSet.Comparer.Equals(iss.KeyComparer), 167FrozenSet<T> fs => _thisSet.Comparer.Equals(fs.Comparer),
System.Collections.NonGeneric (2)
System\Collections\Queue.cs (1)
230else if (_array[index] != null && _array[index]!.Equals(obj))
System\Collections\Stack.cs (1)
105else if (_array[count] != null && _array[count]!.Equals(obj))
System.Collections.Specialized (7)
System\Collections\Specialized\ListDictionary.cs (5)
42if (oldKey.Equals(key)) 73if ((comparer == null) ? oldKey.Equals(key) : comparer.Compare(oldKey, key) == 0) 161if ((comparer == null) ? oldKey.Equals(key) : comparer.Compare(oldKey, key) == 0) 196if ((comparer == null) ? oldKey.Equals(key) : comparer.Compare(oldKey, key) == 0) 240if ((comparer == null) ? oldKey.Equals(key) : comparer.Compare(oldKey, key) == 0)
System\Collections\Specialized\OrderedDictionary.cs (2)
298if (o.Equals(key)) 614else if (entryKey.Equals(value))
System.ComponentModel.Annotations (2)
System\ComponentModel\DataAnnotations\AllowedValuesAttribute.cs (1)
48if (allowed is null ? value is null : allowed.Equals(value))
System\ComponentModel\DataAnnotations\DeniedValuesAttribute.cs (1)
48if (denied is null ? value is null : denied.Equals(value))
System.ComponentModel.Composition (7)
Microsoft\Internal\Collections\CollectionServices.cs (2)
236if (!thisArray[i]!.Equals(thatArray[i])) 254if (!thisList[i]!.Equals(thatList[i]))
System\ComponentModel\Composition\Hosting\CatalogExportProvider.cs (1)
995return _part.Equals(part);
System\ComponentModel\Composition\Hosting\ScopingExtensions.cs (1)
122return value.Equals(untypedValue);
System\ComponentModel\Composition\ReflectionModel\GenericSpecializationPartCreationInfo.cs (1)
532return obj is GenericSpecializationPartCreationInfo that && (_originalPartCreationInfo.Equals(that._originalPartCreationInfo)) &&
System\ComponentModel\Composition\ReflectionModel\ReflectionComposablePartDefinition.cs (2)
170if (candidatePart.Equals(previousPart)) 333return obj is ReflectionComposablePartDefinition that && _creationInfo.Equals(that._creationInfo);
System.ComponentModel.TypeConverter (8)
System\ComponentModel\AmbientValueAttribute.cs (1)
164return Value != null ? Value.Equals(other.Value) : other.Value == null;
System\ComponentModel\AttributeCollection.cs (1)
80if (newArray[existingIdx].TypeId.Equals(newAttributes[idx].TypeId))
System\ComponentModel\BindingList.cs (1)
499if (pos < 0 || pos >= Count || !this[pos]!.Equals(item))
System\ComponentModel\ComponentResourceManager.cs (1)
116if (resources == null || (resources.Comparer.Equals(StringComparer.OrdinalIgnoreCase) != IgnoreCase))
System\ComponentModel\ExtenderProvidedPropertyAttribute.cs (1)
78&& other.Provider!.Equals(Provider)
System\ComponentModel\TypeConverter.cs (1)
393return attr.Value!.Equals(GetValue(component));
System\ComponentModel\TypeDescriptor.cs (1)
2944if (newArray[existingIdx].TypeId.Equals(newAttrs[idx].TypeId))
System\ComponentModel\TypeListConverter.cs (1)
55if (value.Equals(t.FullName))
System.Composition.Hosting (1)
System\Composition\Hosting\Core\ExportDescriptorRegistryUpdate.cs (1)
94if (step.Target.Equals(dependency.Target))
System.Composition.Runtime (1)
System\Composition\Hosting\Core\CompositionContract.cs (1)
204else if (!firstItem.Value.Equals(secondValue))
System.Configuration.ConfigurationManager (3)
System\Configuration\BaseConfigurationRecord.cs (1)
3544if (lastVersion != null) return (currentVersion == null) || !lastVersion.Equals(currentVersion);
System\Configuration\ConfigurationElementCollection.cs (1)
1202return key1.Equals(key2);
System\Configuration\ValidatorUtils.cs (1)
46if (min.Equals(max))
System.Data.Common (13)
System\Data\Common\DBCommandBuilder.cs (1)
953|| ((null != originalValue) && originalValue.Equals(currentValue)))
System\Data\Common\DbConnectionStringBuilder.cs (1)
326if (!connectionStringBuilder.CurrentValues.TryGetValue(entry.Key, out value) || !entry.Value.Equals(value))
System\Data\ConstraintCollection.cs (1)
507if (((Constraint)List[i]!).Equals(constraint))
System\Data\DataColumn.cs (1)
674if (_defaultValue == null || !DefaultValue.Equals(value))
System\Data\DataKey.cs (1)
118if (column1[i].Equals(column2[j]))
System\Data\DataRow.cs (2)
1244if (!value.Equals(keyValues[i])) 1447Debug.Assert(valueFromStorage.Equals(column.DataExpression.Evaluate(this, version)),
System\Data\DataRowComparer.cs (2)
33return (a.Equals(b) || (a.GetType().IsArray && CompareArray((Array)a, b as Array))); 49return a.Equals(b);
System\Data\DataRowView.cs (1)
27/// <see cref="object.Equals(object)"/> instead of <see cref="object.ReferenceEquals"/>
System\Data\DataView.cs (1)
1743retval &= (rows[j].Equals(objectArray[j]));
System\Data\RbTree.cs (1)
1299else if (!Key(nodeId)!.Equals(key))
System\Xml\XmlDataDocument.cs (1)
2405if (!oVal.Equals(row[col]))
System.Diagnostics.DiagnosticSource (8)
System\Diagnostics\Metrics\ObjectSequence.cs (7)
22return Value1 is null ? other.Value1 is null : Value1.Equals(other.Value1); 45return (Value1 is null ? other.Value1 is null : Value1.Equals(other.Value1)) && 46(Value2 is null ? other.Value2 is null : Value2.Equals(other.Value2)); 71return (Value1 is null ? other.Value1 is null : Value1.Equals(other.Value1)) && 72(Value2 is null ? other.Value2 is null : Value2.Equals(other.Value2)) && 73(Value3 is null ? other.Value3 is null : Value3.Equals(other.Value3)); 108else if (!value.Equals(otherValue))
System\Diagnostics\Metrics\TagList.netcore.cs (1)
282if (item.Key == tags[i].Key && item.Value.Equals(tags[i].Value))
System.Diagnostics.TraceSource (1)
System\Diagnostics\CorrelationManager.cs (1)
79else if (obj.Equals(n.Value))
System.Linq (3)
System\Linq\Utilities.cs (3)
34return right == defaultComparer || right!.Equals(defaultComparer); 39return left == defaultComparer || left.Equals(defaultComparer); 42return left.Equals(right);
System.Linq.Expressions (3)
System\Dynamic\Utils\CacheDict.cs (2)
59if (entry != null && entry._hash == hash && entry._key.Equals(key)) 79if (entry == null || entry._hash != hash || !entry._key.Equals(key))
System\Linq\Expressions\Interpreter\TypeOperations.cs (1)
203frame.Push(obj.Equals(other));
System.Linq.Parallel (1)
System\Linq\Parallel\Utils\HashLookup.cs (1)
71((key1 == null && key2 == null) || (key1 != null && key1.Equals(key2))) :
System.Net.Http (4)
System\Net\Http\Headers\HeaderUtilities.cs (1)
216if (((comparer == null) && xItem.Equals(yItem)) ||
System\Net\Http\Headers\HttpHeaders.cs (1)
1321return value.Equals(storeValue);
System\Net\Http\Headers\ObjectCollection.cs (2)
92_items is T o ? o.Equals(item) : 120if (o.Equals(item))
System.Net.Sockets (4)
System\Net\Sockets\Socket.cs (4)
2677if (!remoteEP.Equals(resultEp)) remoteEP = resultEp; 2695if (!endPoint.Equals(result.RemoteEndPoint)) 2718if (!remoteEP.Equals(resultEp)) remoteEP = resultEp; 2735if (!endPoint.Equals(result.RemoteEndPoint))
System.ObjectModel (1)
System\Collections\Specialized\NotifyCollectionChangedEventArgs.cs (1)
352public bool Contains(object? value) => _item is null ? value is null : _item.Equals(value);
System.Private.CoreLib (46)
src\libraries\System.Private.CoreLib\src\System\Array.cs (4)
1779if (obj != null && obj.Equals(value)) 1849if (obj.Equals(value)) 2006if (obj != null && obj.Equals(value)) 2076if (obj.Equals(value))
src\libraries\System.Private.CoreLib\src\System\Attribute.cs (1)
130if (!thisValue.Equals(thatValue))
src\libraries\System.Private.CoreLib\src\System\Collections\ArrayList.cs (3)
879if (_list[i] is object o && o.Equals(value)) 947if (_list[i] is object o && o.Equals(value)) 2271if (_baseList[_baseIndex + i] is object o && o.Equals(item))
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\EqualityComparer.cs (1)
193if (y != null) return x.Equals(y);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\HashSet.cs (2)
1776internal static bool EqualityComparersAreEqual(HashSet<T> set1, HashSet<T> set2) => set1.Comparer.Equals(set2.Comparer); 1782internal static bool EffectiveEqualityComparersAreEqual(HashSet<T> set1, HashSet<T> set2) => set1.EffectiveComparer.Equals(set2.EffectiveComparer);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\ReferenceEqualityComparer.cs (1)
10/// instead of value equality (<see cref="object.Equals(object?)"/>) when comparing two object instances.
src\libraries\System.Private.CoreLib\src\System\Collections\Hashtable.cs (2)
524if (val != null && val.Equals(value)) 801return item != null && item.Equals(key);
src\libraries\System.Private.CoreLib\src\System\Collections\ListDictionaryInternal.cs (5)
38if (node.key.Equals(key)) 55if (node.key.Equals(key)) 105if (node.key.Equals(key)) 140if (node.key.Equals(key)) 186if (node.key.Equals(key))
src\libraries\System.Private.CoreLib\src\System\ComponentModel\DefaultValueAttribute.cs (1)
269return Value.Equals(other.Value);
src\libraries\System.Private.CoreLib\src\System\Int128.cs (1)
82/// <inheritdoc cref="object.Equals(object?)" />
src\libraries\System.Private.CoreLib\src\System\Object.cs (1)
63return objA.Equals(objB);
src\libraries\System.Private.CoreLib\src\System\Reflection\Assembly.cs (1)
180public override bool Equals(object? o) => base.Equals(o);
src\libraries\System.Private.CoreLib\src\System\Reflection\MemberInfo.cs (1)
43public override bool Equals(object? obj) => base.Equals(obj);
src\libraries\System.Private.CoreLib\src\System\Reflection\Module.cs (1)
145public override bool Equals(object? o) => base.Equals(o);
src\libraries\System.Private.CoreLib\src\System\Security\PermissionSet.cs (1)
32public override bool Equals(object? o) => base.Equals(o);
src\libraries\System.Private.CoreLib\src\System\StringComparer.cs (1)
192return x.Equals(y);
src\libraries\System.Private.CoreLib\src\System\Text\Encoding.cs (2)
1055(EncoderFallback.Equals(that.EncoderFallback)) && 1056(DecoderFallback.Equals(that.DecoderFallback));
src\libraries\System.Private.CoreLib\src\System\Text\UnicodeEncoding.cs (2)
1796(EncoderFallback.Equals(that.EncoderFallback)) && 1797(DecoderFallback.Equals(that.DecoderFallback));
src\libraries\System.Private.CoreLib\src\System\Text\UTF32Encoding.cs (2)
1143(EncoderFallback.Equals(that.EncoderFallback)) && 1144(DecoderFallback.Equals(that.DecoderFallback));
src\libraries\System.Private.CoreLib\src\System\Text\UTF7Encoding.cs (2)
103(EncoderFallback.Equals(that.EncoderFallback)) && 104(DecoderFallback.Equals(that.DecoderFallback));
src\libraries\System.Private.CoreLib\src\System\Text\UTF8Encoding.cs (2)
882(EncoderFallback.Equals(that.EncoderFallback)) && 883(DecoderFallback.Equals(that.DecoderFallback));
src\libraries\System.Private.CoreLib\src\System\UInt128.cs (1)
84/// <inheritdoc cref="object.Equals(object?)" />
src\System\Collections\Generic\EqualityComparer.CoreCLR.cs (2)
118if (array[i] != null && array[i]!.Equals(value)) return i; 138if (array[i] != null && array[i]!.Equals(value)) return i;
src\System\Delegate.CoreCLR.cs (1)
136return _methodBase.Equals(d._methodBase);
src\System\MulticastDelegate.CoreCLR.cs (2)
107if (!_invocationList!.Equals(d._invocationList)) 318if (!a[start + i].Equals(b[i]))
src\System\RuntimeType.CoreCLR.cs (2)
4406Debug.Assert(!hit.Equals(key), "Key was already in CerHashtable! Potential race condition (or bug) in the Reflection cache?"); 4480if (hit.Equals(key))
src\System\ValueType.cs (1)
62if (!thisResult.Equals(thatResult))
System.Private.DataContractSerialization (3)
System\Runtime\Serialization\Json\ReflectionJsonFormatWriter.cs (1)
233|| (memberValue != null && memberValue.Equals(defaultValue)))
System\Runtime\Serialization\ReflectionXmlFormatWriter.cs (1)
167|| (memberValue != null && memberValue.Equals(defaultValue)))
System\Xml\XmlBinaryWriterSession.cs (1)
135if (_list[i].Key.Equals(key))
System.Private.Xml (11)
System\Xml\Schema\ConstraintStruct.cs (5)
359return atomicValues1.Length == 1 && atomicValues1.GetValue(0)!.Equals(other.Value); 364return arr1.Length == 1 && arr1.GetValue(0)!.Equals(other.Value); 374return atomicValues2.Length == 1 && atomicValues2.GetValue(0)!.Equals(this.Value); 379return arr2.Length == 1 && arr2.GetValue(0)!.Equals(this.Value); 384return this.Value!.Equals(other.Value);
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (1)
1136return value.Equals(o);
System\Xml\Xsl\IlGen\XmlILOptimizerVisitor.cs (3)
5385return ExtractLiteralValue(ndLiteral).Equals(ExtractLiteralValue(ndDest)); 5446return litLeft.Equals(litRight) ? f.True() : f.False(); 5449return litLeft.Equals(litRight) ? f.False() : f.True();
System\Xml\Xsl\ListBase.cs (1)
41if (value!.Equals(this[i]))
System\Xml\Xsl\QIL\QilNode.cs (1)
197if (node.Equals(this[i]))
System.Reflection.Context (2)
System\Reflection\Context\CollectionServices.cs (1)
22if (!left[i].Equals(right[i]))
System\Reflection\Context\Projection\ProjectingParameterInfo.cs (1)
67UnderlyingParameter.Equals(other.UnderlyingParameter);
System.Runtime.Serialization.Schema (3)
System\Runtime\Serialization\Schema\CodeExporter.cs (3)
550if (!xmlContract.Equals(_dataContractSet.GetDataContract(type))) 563if (referencedContract.Equals(dataContract)) 575if (referencedContract != null && !referencedContract.Equals(dataContract))
System.Security.Cryptography (5)
System\Security\Cryptography\DSAWrapper.cs (1)
153public override bool Equals(object? obj) => _wrapped.Equals(obj);
System\Security\Cryptography\ECDiffieHellmanWrapper.cs (2)
155public override bool Equals(object? obj) => _wrapped.Equals(obj); 209public override bool Equals(object? obj) => _wrapped.Equals(obj);
System\Security\Cryptography\ECDsaWrapper.cs (1)
178public override bool Equals(object? obj) => _wrapped.Equals(obj);
System\Security\Cryptography\RSAWrapper.cs (1)
218public override bool Equals(object? obj) => _wrapped.Equals(obj);
System.Security.Permissions (21)
System\Security\CodeAccessPermission.cs (1)
17public override bool Equals(object obj) => base.Equals(obj);
System\Security\Permissions\StrongNamePublicKeyBlob.cs (1)
12public override bool Equals(object o) => base.Equals(o);
System\Security\Policy\AllMembershipCondition.cs (1)
11public override bool Equals(object o) => base.Equals(o);
System\Security\Policy\ApplicationDirectory.cs (1)
11public override bool Equals(object o) => base.Equals(o);
System\Security\Policy\ApplicationDirectoryMembershipCondition.cs (1)
11public override bool Equals(object o) => base.Equals(o);
System\Security\Policy\CodeConnectAccess.cs (1)
17public override bool Equals(object o) => base.Equals(o);
System\Security\Policy\CodeGroup.cs (1)
22public override bool Equals(object o) => base.Equals(o);
System\Security\Policy\GacInstalled.cs (1)
14public override bool Equals(object o) => base.Equals(o);
System\Security\Policy\GacMembershipCondition.cs (1)
11public override bool Equals(object o) => base.Equals(o);
System\Security\Policy\HashMembershipCondition.cs (1)
16public override bool Equals(object o) => base.Equals(o);
System\Security\Policy\PolicyStatement.cs (1)
23public override bool Equals(object o) => base.Equals(o);
System\Security\Policy\Publisher.cs (1)
17public override bool Equals(object o) => base.Equals(o);
System\Security\Policy\PublisherMembershipCondition.cs (1)
14public override bool Equals(object o) => base.Equals(o);
System\Security\Policy\Site.cs (1)
16public override bool Equals(object o) => base.Equals(o);
System\Security\Policy\SiteMembershipCondition.cs (1)
12public override bool Equals(object o) => base.Equals(o);
System\Security\Policy\StrongName.cs (1)
19public override bool Equals(object o) => base.Equals(o);
System\Security\Policy\StrongNameMembershipCondition.cs (1)
19public override bool Equals(object o) => base.Equals(o);
System\Security\Policy\Url.cs (1)
15public override bool Equals(object o) => base.Equals(o);
System\Security\Policy\UrlMembershipCondition.cs (1)
12public override bool Equals(object obj) => base.Equals(obj);
System\Security\Policy\Zone.cs (1)
16public override bool Equals(object o) => base.Equals(o);
System\Security\Policy\ZoneMembershipCondition.cs (1)
12public override bool Equals(object o) => base.Equals(o);
System.Text.Json (1)
System\Text\Json\Serialization\Metadata\PolymorphicTypeResolver.cs (1)
171Debug.Assert(typeDiscriminator.Equals(result.TypeDiscriminator));
System.Text.RegularExpressions (1)
System\Text\RegularExpressions\Symbolic\MatchingState.cs (1)
172obj is MatchingState<TSet> s && PrevCharKind == s.PrevCharKind && Node.Equals(s.Node);
System.Text.RegularExpressions.Generator (1)
RegexGenerator.cs (1)
373? leftElem.Equals(right[i])
System.Transactions.Local (3)
System\Transactions\TransactionManager.cs (1)
231(tm.NodeName != null && tm.NodeName.Equals(nodeName))))
System\Transactions\TransactionScope.cs (2)
548if (!Equals(actualCurrentScope)) 623while (!Equals(actualCurrentScope))
System.Windows.Controls.Ribbon (3)
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (2)
1358if (_firstGalleryItem != null && _firstGalleryItem.IsAlive && _firstGalleryItem.Target.Equals(item)) 1369if (_firstGalleryItem != null && _firstGalleryItem.IsAlive && _firstGalleryItem.Target.Equals(item))
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (1)
112return content.Equals(ribbonToolTip.Title);
System.Windows.Forms (38)
System\Resources\AssemblyNamesTypeResolutionService.cs (1)
40foreach (AssemblyName assemblyName in _names.Where(an => an.Equals(name)))
System\Windows\Forms\Accessibility\AccessibleObject.cs (1)
2017if (!childID.Equals((int)PInvoke.CHILDID_SELF))
System\Windows\Forms\ComponentModel\COM2Interop\Com2IPerPropertyBrowsingHandler.Com2IPerPropertyEnumConverter.cs (1)
27if (currentValue == value || (currentValue is not null && currentValue.Equals(value)))
System\Windows\Forms\Controls\ComboBox\ComboBox.ObjectCollection.cs (1)
455if ((value is Entry itemEntry && entry == itemEntry) || entry.Item.Equals(value))
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
9694|| (currentFormattedValue is not null && !_uneditedFormattedValue!.Equals(currentFormattedValue)))
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonColumn.cs (1)
222!defaultCellStyle.FormatProvider.Equals(Globalization.CultureInfo.CurrentCulture) ||
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (1)
3945(originalValue is not null && !originalValue.Equals(value))))
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (3)
579if (value.Equals(TrueValue)) 583else if (value.Equals(FalseValue)) 587else if (ThreeState && value.Equals(IndeterminateValue))
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxColumn.cs (2)
305!defaultNullValue.Equals(defaultCellStyle.NullValue) || 308!defaultCellStyle.FormatProvider.Equals(Globalization.CultureInfo.CurrentCulture) ||
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (1)
223!defaultCellStyle.FormatProvider.Equals(CultureInfo.CurrentCulture) ||
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (4)
1431if (key.Equals(value)) 1458if (displayValue is null || !displayValue.Equals(key)) 1476if (displayValue is not null && displayValue.Equals(key)) 1492if (item is null || !item.Equals(key))
System\Windows\Forms\Controls\DataGridView\DataGridViewImageColumn.cs (2)
281!defaultNullValue.Equals(defaultCellStyle.NullValue) || 284!defaultCellStyle.FormatProvider.Equals(Globalization.CultureInfo.CurrentCulture) ||
System\Windows\Forms\Controls\ListView\ListViewGroupConverter.cs (1)
73if (value is null || value.Equals(SR.toStringNone))
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MergePropertyDescriptor.cs (1)
233else if ((@object is null && currentObject is null) || (@object is not null && @object.Equals(currentObject)))
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MergePropertyDescriptor.MultiMergeCollection.cs (1)
72(_items[i] is object item && !item.Equals(newItems[i])))
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.cs (2)
371|| isValueType ? owner!.Equals(entry.GetValueOwner()) : owner == entry.GetValueOwner()) 561if (value is not null && value.Equals(oldValue))
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (2)
1728if (value is not null && currentValue is not null && currentValue.Equals(value)) 2445bool equal = (value == currentValue) || (value is not null && value.Equals(currentValue));
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
1047if (_tabPages[i].Equals(tabPage))
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.StubSite.cs (1)
87if (value.Equals(o))
System\Windows\Forms\Controls\UpDown\DomainUpDown.cs (1)
137if (value.Equals(Items[i]))
System\Windows\Forms\DataBinding\CurrencyManager.cs (1)
569if (key.Equals(value))
System\Windows\Forms\Dialogs\TaskDialog\TaskDialogButton.cs (1)
359return base.Equals(obj);
System\Windows\Forms\GiveFeedbackEventArgs.cs (1)
94|| (giveFeedbackEventArgs.DragImage is not null && giveFeedbackEventArgs.DragImage.Equals(DragImage)))
System\Windows\Forms\Internal\ItemArray.cs (1)
204if ((item is Entry itemEntry && entry == itemEntry) || entry.Item.Equals(item))
System\Windows\Forms\MDI\MDIWindowDialog.cs (1)
50if (all[i].Equals(active))
System\Windows\Forms\MDI\MdiWindowListStrip.cs (2)
108forms[i].Equals(activeMdiChild)) 122if (forms[i].Equals(activeMdiChild))
System\Windows\Forms\OLE\DragEventArgs.cs (1)
135&& dragEventArgs.Data.Equals(Data)
System\Windows\Forms\PropertyStore.cs (1)
164|| (value is not null && value.Equals(defaultValue));
System.Windows.Forms.Design (55)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
1156if (!_value.Equals(nextValue))
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (1)
69if ((standardValue is not null) && standardValue.Equals(Value))
System\ComponentModel\Design\DesignerActionService.cs (1)
359if (actionList.Equals(actionLists[i]))
System\ComponentModel\Design\DesignerActionUI.cs (1)
245if (_lastPanelComponent is not null && !_lastPanelComponent.Equals(ce.Component))
System\ComponentModel\Design\DesignerHost.Site.cs (1)
56if (value.Equals(o))
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (1)
1439result = left.Equals(right);
System\ComponentModel\Design\Serialization\ResourceCodeDomSerializer.SerializationResourceManager.cs (1)
224return parentValue is null || !parentValue.Equals(value) ? CompareValue.Different : CompareValue.Same;
System\Windows\Forms\Design\Behavior\BehaviorService.cs (1)
598if (enterGlyph is not null && leaveGlyph.Equals(enterGlyph))
System\Windows\Forms\Design\Behavior\ContainerSelectorBehavior.cs (4)
96&& !_containerControl.Equals(selSvc.PrimarySelection as Control)) 117if (selNew.Equals(selOld)) 129if (behOld.ContainerControl.Equals(behNew.ContainerControl)) 224if (!ctrl.Parent.Equals(requiredParent))
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (3)
485if (!c.Equals(targetControl)) 509(targetControl.Parent.Equals(control))) 635if (currentParent.Equals(parent))
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (6)
253else if (!localDrag && currentControl.Parent.Equals(dragSource)) 340bool localDrag = dragSource.Equals(dragTarget); 627if (_data.Target.Equals(_data.Source) && _lastEffect != DragDropEffects.Copy) 641if (!_data.Target.Equals(_lastDropTarget)) 911if (bodyGlyphAdorner is not null && a.Equals(bodyGlyphAdorner)) 988if (primaryControl.Equals(_dragComponents[i].dragComponent as Control))
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (1)
796if (control.Equals(targetControl))
System\Windows\Forms\Design\Behavior\SelectionManager.cs (2)
124selType = parent.Equals(primarySelection) 381if (toRefresh.IsEmpty(g) && primarySelection is not null && !primarySelection.Equals(_previousPrimarySelection))
System\Windows\Forms\Design\Behavior\TableLayoutPanelBehavior.cs (1)
139if (CheckoutException.Canceled.Equals(checkoutException))
System\Windows\Forms\Design\CommandSet.cs (1)
2324if (obj.Equals(selPrimary))
System\Windows\Forms\Design\ComponentTray.cs (1)
2761if (g is DesignerActionGlyph desGlyph && ((DesignerActionBehavior)(desGlyph.Behavior)).RelatedComponent.Equals(trayControl.Component))
System\Windows\Forms\Design\ControlDesigner.cs (3)
592if (child.Equals(nc.Components[i])) 1416if (TryGetService(out ISelectionService? selectionService) && !Component.Equals(selectionService.PrimarySelection)) 1437else if (!requiredParent.Equals(control.Parent))
System\Windows\Forms\Design\DataGridViewColumnDesigner.cs (1)
214&& Component.Equals(_selectionService.PrimarySelection))
System\Windows\Forms\Design\DataMemberFieldConverter.cs (2)
16return value is not null && value.Equals(SR.None) ? string.Empty : value; 21return destinationType == typeof(string) && (value is null || value.Equals(string.Empty))
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (2)
643if (_primaryDragControl.Equals(_dragControls[j])) 672if (_primaryDragControl.Equals(_dragControls[i]))
System\Windows\Forms\Design\ParentControlDesigner.cs (2)
1311return defaultValue.Equals(value); 1460newTarget = !(data.Source.Equals(Component)); // Check if we are moving to a new target
System\Windows\Forms\Design\SplitContainerDesigner.cs (1)
366if (bodyGlyphAdorner is not null && adorner.Equals(bodyGlyphAdorner))
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (6)
515else if (existingControl is not null && !existingControl.Equals(control)) 1454if (c is not null && c.Parent is not null && c.Parent.Equals(Control) && e.Member is not null && (e.Member.Name == "Row" || e.Member.Name == "Column")) 1656if (CheckoutException.Canceled.Equals(checkoutException)) 1769if (CheckoutException.Canceled.Equals(checkoutException)) 1919if (CheckoutException.Canceled.Equals(checkoutException)) 2024if (CheckoutException.Canceled.Equals(checkoutException))
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
512if ((!(e is CheckoutException checkoutException)) || (!checkoutException.Equals(CheckoutException.Canceled)))
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (4)
497bool showDesignMenu = IsContextMenuStripItemSelected(selectionService) || Component.Equals(selectionService.PrimarySelection); 522if (Component.Equals(selectionService.PrimarySelection) && _selected) 527bool showDesignMenu = IsContextMenuStripItemSelected(selectionService) || Component.Equals(selectionService.PrimarySelection); 735if (_selectionService is not null && Component.Equals(_selectionService.PrimarySelection))
System\Windows\Forms\Design\ToolStripItemDesigner.cs (2)
919&& ToolStripItem.Equals(_selectionService.PrimarySelection) 983if (currentSelection is not null && currentSelection.Equals(ToolStripItem) && !(ToolStripItem is ToolStripMenuItem))
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (4)
195if (MenuItem.Equals(_selectionService.PrimarySelection)) 1283if (checkoutException.Equals(CheckoutException.Canceled)) 2152if (MenuItem.Equals(selectionSvc.PrimarySelection)) 2517if (checkoutException.Equals(CheckoutException.Canceled))
System.Windows.Forms.Tests (8)
System\Windows\Forms\BindingContextTests.cs (6)
786Assert.True(entry1.Key.Equals(entry1.Key)); 787Assert.True(entry1.Key.Equals(entry2.Key)); 788Assert.False(entry1.Key.Equals(entry3.Key)); 789Assert.False(entry1.Key.Equals(entry4.Key)); 791Assert.False(entry1.Key.Equals(new object())); 792Assert.False(entry1.Key.Equals(null));
System\Windows\Forms\ComboBoxTests.cs (2)
2518Assert.True(comboBox.Items[comboBox.SelectedIndex].Equals(comboBox.SelectedItem)); 2538Assert.True(comboBox.Items[comboBox.SelectedIndex].Equals(comboBox.SelectedItem));
System.Xaml (3)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
289return base.Equals(o);
System\Xaml\XamlObjectReader.cs (2)
489else if (dkpObject.Equals(entry.Key)) 3045return obj is Entry other && other.Key.Equals(Key);
Test.Utilities (9)
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
1372internal static bool EqualityComparersAreEqual(SegmentedHashSet<T> set1, SegmentedHashSet<T> set2) => set1.Comparer.Equals(set2.Comparer);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IDictionaryExtensions.cs (1)
15dictionary.Keys.All(key => other.ContainsKey(key) && dictionary[key]?.Equals(other[key]) == true);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (2)
24/// Checks if the given method overrides <see cref="object.Equals(object)"/>. 38/// Checks if the given method is <see cref="object.Equals(object)"/>.
src\RoslynAnalyzers\Utilities\Workspaces\SyntaxGeneratorExtensions.cs (1)
337/// Creates a default declaration for an override of <see cref="object.Equals(object)"/>.
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
146else if (operation.Parent is IForToLoopOperation forToLoopOperation && forToLoopOperation.LoopControlVariable.Equals(operation))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (3)
126if (existingConstants[0].Equals(Multiply(existingConstants[1], 2))) 130if (existingConstants[0].Equals(Convert.ChangeType(2, existingConstants[0].GetType())) && 131existingConstants[1].Equals(Convert.ChangeType(1, existingConstants[1].GetType())))
Text.Analyzers (10)
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
1372internal static bool EqualityComparersAreEqual(SegmentedHashSet<T> set1, SegmentedHashSet<T> set2) => set1.Comparer.Equals(set2.Comparer);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IDictionaryExtensions.cs (1)
15dictionary.Keys.All(key => other.ContainsKey(key) && dictionary[key]?.Equals(other[key]) == true);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (2)
24/// Checks if the given method overrides <see cref="object.Equals(object)"/>. 38/// Checks if the given method is <see cref="object.Equals(object)"/>.
src\RoslynAnalyzers\Utilities\Workspaces\SyntaxGeneratorExtensions.cs (1)
337/// Creates a default declaration for an override of <see cref="object.Equals(object)"/>.
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
146else if (operation.Parent is IForToLoopOperation forToLoopOperation && forToLoopOperation.LoopControlVariable.Equals(operation))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (3)
126if (existingConstants[0].Equals(Multiply(existingConstants[1], 2))) 130if (existingConstants[0].Equals(Convert.ChangeType(2, existingConstants[0].GetType())) && 131existingConstants[1].Equals(Convert.ChangeType(1, existingConstants[1].GetType())))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (1)
218=> this.Equals((object)other);
UIAutomationClient (1)
MS\Internal\Automation\Misc.cs (1)
106if (!a.GetValue(src).Equals(a.GetValue(dest)))
UIAutomationClientSideProviders (1)
MS\Internal\AutomationProxies\WindowsEditBoxRange.cs (1)
190return val.Equals(targetAttribute) ? new WindowsEditBoxRange(_provider, Start, End) : null;
xunit.assert (3)
Sdk\AssertHelper.cs (3)
668 var result = expected.Equals(actual); 672 result = converted.Equals(actual); 674 result = converted.Equals(expected);