1130 references to Equals
Aspire.Dashboard (100)
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\collector\logs\v1\LogsService.cs (4)
135return Equals(_unknownFields, other._unknownFields); 339if (!object.Equals(PartialSuccess, other.PartialSuccess)) return false; 340return Equals(_unknownFields, other._unknownFields); 576return Equals(_unknownFields, other._unknownFields);
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\collector\metrics\v1\MetricsService.cs (4)
137return Equals(_unknownFields, other._unknownFields); 341if (!object.Equals(PartialSuccess, other.PartialSuccess)) return false; 342return Equals(_unknownFields, other._unknownFields); 578return Equals(_unknownFields, other._unknownFields);
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\collector\trace\v1\TraceService.cs (4)
136return Equals(_unknownFields, other._unknownFields); 340if (!object.Equals(PartialSuccess, other.PartialSuccess)) return false; 341return Equals(_unknownFields, other._unknownFields); 577return Equals(_unknownFields, other._unknownFields);
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\common\v1\Common.cs (8)
332if (!object.Equals(ArrayValue, other.ArrayValue)) return false; 333if (!object.Equals(KvlistValue, other.KvlistValue)) return false; 336return Equals(_unknownFields, other._unknownFields); 708return Equals(_unknownFields, other._unknownFields); 908return Equals(_unknownFields, other._unknownFields); 1113if (!object.Equals(Value, other.Value)) return false; 1114return Equals(_unknownFields, other._unknownFields); 1397return Equals(_unknownFields, other._unknownFields);
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\logs\v1\Logs.cs (7)
229return Equals(_unknownFields, other._unknownFields); 455if (!object.Equals(Resource, other.Resource)) return false; 458return Equals(_unknownFields, other._unknownFields); 739if (!object.Equals(Scope, other.Scope)) return false; 742return Equals(_unknownFields, other._unknownFields); 1182if (!object.Equals(Body, other.Body)) return false; 1188return Equals(_unknownFields, other._unknownFields);
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\metrics\v1\Metrics.cs (25)
329return Equals(_unknownFields, other._unknownFields); 555if (!object.Equals(Resource, other.Resource)) return false; 558return Equals(_unknownFields, other._unknownFields); 839if (!object.Equals(Scope, other.Scope)) return false; 842return Equals(_unknownFields, other._unknownFields); 1311if (!object.Equals(Gauge, other.Gauge)) return false; 1312if (!object.Equals(Sum, other.Sum)) return false; 1313if (!object.Equals(Histogram, other.Histogram)) return false; 1314if (!object.Equals(ExponentialHistogram, other.ExponentialHistogram)) return false; 1315if (!object.Equals(Summary, other.Summary)) return false; 1317return Equals(_unknownFields, other._unknownFields); 1755return Equals(_unknownFields, other._unknownFields); 1981return Equals(_unknownFields, other._unknownFields); 2236return Equals(_unknownFields, other._unknownFields); 2468return Equals(_unknownFields, other._unknownFields); 2686return Equals(_unknownFields, other._unknownFields); 3044return Equals(_unknownFields, other._unknownFields); 3631return Equals(_unknownFields, other._unknownFields); 4338if (!object.Equals(Positive, other.Positive)) return false; 4339if (!object.Equals(Negative, other.Negative)) return false; 4345return Equals(_unknownFields, other._unknownFields); 4876return Equals(_unknownFields, other._unknownFields); 5220return Equals(_unknownFields, other._unknownFields); 5572return Equals(_unknownFields, other._unknownFields); 5951return Equals(_unknownFields, other._unknownFields);
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\resource\v1\Resource.cs (1)
144return Equals(_unknownFields, other._unknownFields);
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\trace\v1\Trace.cs (10)
175return Equals(_unknownFields, other._unknownFields); 401if (!object.Equals(Resource, other.Resource)) return false; 404return Equals(_unknownFields, other._unknownFields); 685if (!object.Equals(Scope, other.Scope)) return false; 688return Equals(_unknownFields, other._unknownFields); 1225if (!object.Equals(Status, other.Status)) return false; 1226return Equals(_unknownFields, other._unknownFields); 1828return Equals(_unknownFields, other._unknownFields); 2165return Equals(_unknownFields, other._unknownFields); 2474return Equals(_unknownFields, other._unknownFields);
artifacts\obj\Aspire.Dashboard\Debug\net8.0\ResourceService.cs (32)
230return Equals(_unknownFields, other._unknownFields); 405return Equals(_unknownFields, other._unknownFields); 808if (!object.Equals(Parameter, other.Parameter)) return false; 814return Equals(_unknownFields, other._unknownFields); 1267if (!object.Equals(Parameter, other.Parameter)) return false; 1268return Equals(_unknownFields, other._unknownFields); 1572return Equals(_unknownFields, other._unknownFields); 1851return Equals(_unknownFields, other._unknownFields); 2127return Equals(_unknownFields, other._unknownFields); 2409return Equals(_unknownFields, other._unknownFields); 2710return Equals(_unknownFields, other._unknownFields); 3048return Equals(_unknownFields, other._unknownFields); 3335return Equals(_unknownFields, other._unknownFields); 3642if (!object.Equals(Value, other.Value)) return false; 3644return Equals(_unknownFields, other._unknownFields); 4174if (!object.Equals(CreatedAt, other.CreatedAt)) return false; 4182if (!object.Equals(StartedAt, other.StartedAt)) return false; 4183if (!object.Equals(StoppedAt, other.StoppedAt)) return false; 4185return Equals(_unknownFields, other._unknownFields); 4700return Equals(_unknownFields, other._unknownFields); 4915return Equals(_unknownFields, other._unknownFields); 5176if (!object.Equals(Delete, other.Delete)) return false; 5177if (!object.Equals(Upsert, other.Upsert)) return false; 5179return Equals(_unknownFields, other._unknownFields); 5429return Equals(_unknownFields, other._unknownFields); 5640return Equals(_unknownFields, other._unknownFields); 5888if (!object.Equals(InitialData, other.InitialData)) return false; 5889if (!object.Equals(Changes, other.Changes)) return false; 5891return Equals(_unknownFields, other._unknownFields); 6190return Equals(_unknownFields, other._unknownFields); 6440return Equals(_unknownFields, other._unknownFields); 6641return Equals(_unknownFields, other._unknownFields);
Extensions\CollectionExtensions.cs (1)
15return !array.Where((t, i) => !Equals(t, other[i])).Any();
Otlp\Model\MetricValues\MetricValue.cs (1)
47&& Equals(Value, other.Value);
Resources\Layout.Designer.cs (1)
30if (object.Equals(null, resourceMan)) {
Resources\TraceDetail.Designer.cs (1)
30if (object.Equals(null, resourceMan)) {
src\Shared\CircularBuffer.cs (1)
62if (Equals(this[index], item))
Aspire.Dashboard.Components.Tests (1)
tests\Shared\Logging\LogValuesAssert.cs (1)
61return string.Equals(x.Key, y.Key) && object.Equals(x.Value, y.Value);
Aspire.Dashboard.Tests (1)
tests\Shared\Logging\LogValuesAssert.cs (1)
61return string.Equals(x.Key, y.Key) && object.Equals(x.Value, y.Value);
Aspire.Hosting (33)
artifacts\obj\Aspire.Hosting\Debug\net8.0\Dashboard\proto\ResourceService.cs (32)
230return Equals(_unknownFields, other._unknownFields); 405return Equals(_unknownFields, other._unknownFields); 808if (!object.Equals(Parameter, other.Parameter)) return false; 814return Equals(_unknownFields, other._unknownFields); 1267if (!object.Equals(Parameter, other.Parameter)) return false; 1268return Equals(_unknownFields, other._unknownFields); 1572return Equals(_unknownFields, other._unknownFields); 1851return Equals(_unknownFields, other._unknownFields); 2127return Equals(_unknownFields, other._unknownFields); 2409return Equals(_unknownFields, other._unknownFields); 2710return Equals(_unknownFields, other._unknownFields); 3048return Equals(_unknownFields, other._unknownFields); 3335return Equals(_unknownFields, other._unknownFields); 3642if (!object.Equals(Value, other.Value)) return false; 3644return Equals(_unknownFields, other._unknownFields); 4174if (!object.Equals(CreatedAt, other.CreatedAt)) return false; 4182if (!object.Equals(StartedAt, other.StartedAt)) return false; 4183if (!object.Equals(StoppedAt, other.StoppedAt)) return false; 4185return Equals(_unknownFields, other._unknownFields); 4700return Equals(_unknownFields, other._unknownFields); 4915return Equals(_unknownFields, other._unknownFields); 5176if (!object.Equals(Delete, other.Delete)) return false; 5177if (!object.Equals(Upsert, other.Upsert)) return false; 5179return Equals(_unknownFields, other._unknownFields); 5429return Equals(_unknownFields, other._unknownFields); 5640return Equals(_unknownFields, other._unknownFields); 5888if (!object.Equals(InitialData, other.InitialData)) return false; 5889if (!object.Equals(Changes, other.Changes)) return false; 5891return Equals(_unknownFields, other._unknownFields); 6190return Equals(_unknownFields, other._unknownFields); 6440return Equals(_unknownFields, other._unknownFields); 6641return Equals(_unknownFields, other._unknownFields);
src\Shared\CircularBuffer.cs (1)
62if (Equals(this[index], item))
Aspire.Hosting.Analyzers (1)
Infrastructure\BoundedCacheWithFactory.cs (1)
46if (Equals(cachedEntry.Key, key))
Aspire.Hosting.Testing.Tests (1)
tests\Shared\Logging\LogValuesAssert.cs (1)
61return string.Equals(x.Key, y.Key) && object.Equals(x.Value, y.Value);
Aspire.Hosting.Tests (2)
tests\Shared\Logging\LogValuesAssert.cs (1)
61return string.Equals(x.Key, y.Key) && object.Equals(x.Value, y.Value);
Utils\StringComparersTests.cs (1)
95if (Equals(c, comparer))
Aspire.Playground.Tests (1)
tests\Shared\Logging\LogValuesAssert.cs (1)
61return string.Equals(x.Key, y.Key) && object.Equals(x.Value, y.Value);
BasketService (11)
artifacts\obj\BasketService\Debug\net8.0\Protos\Basket.cs (11)
141return Equals(_unknownFields, other._unknownFields); 352return Equals(_unknownFields, other._unknownFields); 576return Equals(_unknownFields, other._unknownFields); 840if (!object.Equals(UnitPrice, other.UnitPrice)) return false; 841if (!object.Equals(OldUnitPrice, other.OldUnitPrice)) return false; 843return Equals(_unknownFields, other._unknownFields); 1151return Equals(_unknownFields, other._unknownFields); 1335return Equals(_unknownFields, other._unknownFields); 1510return Equals(_unknownFields, other._unknownFields); 1694return Equals(_unknownFields, other._unknownFields); 1894return Equals(_unknownFields, other._unknownFields);
BuildActionTelemetryTable (1)
Program.cs (1)
691=> Equals(x?.FullName, y?.FullName);
dotnet-svcutil-lib (4)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (2)
1004if (!object.Equals(fieldValue, defaultValue)) 1013if (!object.Equals(propertyValue, defaultValue))
FrameworkFork\System.ServiceModel\System\ServiceModel\OperationContext.cs (1)
341if (!object.Equals(message, _clientReply))
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedCollection.cs (1)
160if (object.Equals(_items[i], item))
IIS.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (2)
108Assert.True(string.Equals(400, response.Status), i.ToString("X2", CultureInfo.InvariantCulture) + ";" + response); 119Assert.True(string.Equals(400, response.Status), i.ToString("X2", CultureInfo.InvariantCulture) + ";" + response);
IISExpress.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (2)
108Assert.True(string.Equals(400, response.Status), i.ToString("X2", CultureInfo.InvariantCulture) + ";" + response); 119Assert.True(string.Equals(400, response.Status), i.ToString("X2", CultureInfo.InvariantCulture) + ";" + response);
IntegrationTestsWebsite (6)
artifacts\obj\IntegrationTestsWebsite\Release\net10.0\Protos\Greet.cs (6)
169return Equals(_unknownFields, other._unknownFields); 358if (!object.Equals(Name, other.Name)) return false; 359return Equals(_unknownFields, other._unknownFields); 575return Equals(_unknownFields, other._unknownFields); 793return Equals(_unknownFields, other._unknownFields); 986return Equals(_unknownFields, other._unknownFields);
InteropClient (26)
artifacts\obj\InteropClient\Release\net10.0\Empty.cs (1)
106return Equals(_unknownFields, other._unknownFields);
artifacts\obj\InteropClient\Release\net10.0\Messages.cs (23)
172return Equals(_unknownFields, other._unknownFields); 385return Equals(_unknownFields, other._unknownFields); 616return Equals(_unknownFields, other._unknownFields); 952if (!object.Equals(Payload, other.Payload)) return false; 955if (!object.Equals(ResponseCompressed, other.ResponseCompressed)) return false; 956if (!object.Equals(ResponseStatus, other.ResponseStatus)) return false; 957if (!object.Equals(ExpectCompressed, other.ExpectCompressed)) return false; 958return Equals(_unknownFields, other._unknownFields); 1383if (!object.Equals(Payload, other.Payload)) return false; 1386return Equals(_unknownFields, other._unknownFields); 1655if (!object.Equals(Payload, other.Payload)) return false; 1656if (!object.Equals(ExpectCompressed, other.ExpectCompressed)) return false; 1657return Equals(_unknownFields, other._unknownFields); 1894return Equals(_unknownFields, other._unknownFields); 2127if (!object.Equals(Compressed, other.Compressed)) return false; 2128return Equals(_unknownFields, other._unknownFields); 2430if (!object.Equals(Payload, other.Payload)) return false; 2431if (!object.Equals(ResponseStatus, other.ResponseStatus)) return false; 2432return Equals(_unknownFields, other._unknownFields); 2704if (!object.Equals(Payload, other.Payload)) return false; 2705return Equals(_unknownFields, other._unknownFields); 2908return Equals(_unknownFields, other._unknownFields); 3116return Equals(_unknownFields, other._unknownFields);
Assert.cs (2)
43if (!Equals(expected, actual)) 104if (Equals(item, expected))
InteropWebsite (24)
artifacts\obj\InteropWebsite\Release\net10.0\Empty.cs (1)
106return Equals(_unknownFields, other._unknownFields);
artifacts\obj\InteropWebsite\Release\net10.0\Messages.cs (23)
172return Equals(_unknownFields, other._unknownFields); 385return Equals(_unknownFields, other._unknownFields); 616return Equals(_unknownFields, other._unknownFields); 952if (!object.Equals(Payload, other.Payload)) return false; 955if (!object.Equals(ResponseCompressed, other.ResponseCompressed)) return false; 956if (!object.Equals(ResponseStatus, other.ResponseStatus)) return false; 957if (!object.Equals(ExpectCompressed, other.ExpectCompressed)) return false; 958return Equals(_unknownFields, other._unknownFields); 1383if (!object.Equals(Payload, other.Payload)) return false; 1386return Equals(_unknownFields, other._unknownFields); 1655if (!object.Equals(Payload, other.Payload)) return false; 1656if (!object.Equals(ExpectCompressed, other.ExpectCompressed)) return false; 1657return Equals(_unknownFields, other._unknownFields); 1894return Equals(_unknownFields, other._unknownFields); 2127if (!object.Equals(Compressed, other.Compressed)) return false; 2128return Equals(_unknownFields, other._unknownFields); 2430if (!object.Equals(Payload, other.Payload)) return false; 2431if (!object.Equals(ResponseStatus, other.ResponseStatus)) return false; 2432return Equals(_unknownFields, other._unknownFields); 2704if (!object.Equals(Payload, other.Payload)) return false; 2705return Equals(_unknownFields, other._unknownFields); 2908return Equals(_unknownFields, other._unknownFields); 3116return Equals(_unknownFields, other._unknownFields);
Microsoft.Analyzers.Local (1)
ApiLifecycle\Json\JsonValue.cs (1)
542&& Equals(a._reference, b._reference);
Microsoft.Arcade.Test.Common (6)
AssertEx.cs (6)
41return object.Equals(@object, default(T)); 53if (object.Equals(x, default(T))) 55return object.Equals(y, default(T)); 58if (object.Equals(y, default(T))) 105if (!Equals(enumeratorX.Current, enumeratorY.Current)) 112return object.Equals(x, y);
Microsoft.AspNetCore.Antiforgery (2)
Internal\DefaultAntiforgeryTokenGenerator.cs (2)
132if (!object.Equals(cookieToken.SecurityToken, requestToken.SecurityToken)) 167if (!object.Equals(requestToken.ClaimUid, currentClaimUid))
Microsoft.AspNetCore.App.Analyzers (5)
Infrastructure\AmbiguousRoutePatternComparer.cs (2)
139RoutePatternPolicyFragment xFragment => yPart is RoutePatternPolicyFragment yFragment && Equals(xFragment.ArgumentToken.Value, yFragment.ArgumentToken.Value), 140RoutePatternPolicyFragmentEscapedNode xFragmentEscaped => yPart is RoutePatternPolicyFragmentEscapedNode yFragmentEscaped && Equals(xFragmentEscaped.ArgumentToken.Value, yFragmentEscaped.ArgumentToken.Value),
RouteHandlers\DetectAmbiguousRoutes.cs (2)
174Equals(ParentOperation, other.ParentOperation) && 258if (!Equals(literal.ConstantValue, otherLiteral.ConstantValue))
src\Shared\RoslynUtils\BoundedCacheWithFactory.cs (1)
49if (Equals(cachedEntry.Key, key))
Microsoft.AspNetCore.App.Analyzers.Test (1)
RouteEmbeddedLanguage\RoutePatternParserTests.cs (1)
212Assert.True(Equals(routeParameter.DefaultValue, parsedRoutePattern.Default), "DefaultValue");
Microsoft.AspNetCore.Components (7)
RenderTree\RenderTreeDiffBuilder.cs (2)
110if (Equals(oldKey, newKey)) 766var valueChanged = !Equals(oldFrame.AttributeValueField, newFrame.AttributeValueField);
Routing\RouteKey.cs (1)
26if (!Equals(AppAssembly, other.AppAssembly))
Sections\SectionContent.cs (1)
68if (!object.Equals(identifier, _registeredIdentifier) || IsDefaultContent != _registeredIsDefaultContent)
Sections\SectionOutlet.cs (1)
62if (!object.Equals(identifier, _subscribedIdentifier))
src\Http\Routing\src\Patterns\RoutePatternFactory.cs (2)
583if (parameter.Default != null && !Equals(newDefault, parameter.Default)) 626if (Equals(parameter.Default, @default)
Microsoft.AspNetCore.Components.Server.Tests (5)
src\SignalR\common\SignalR.Common\test\Internal\Protocol\TestHubMessageEqualityComparer.cs (5)
20if (!Equals(x.GetType(), y.GetType())) 57&& (Equals(x.Result, y.Result) || SequenceEqual(x.Result, y.Result)); 64&& (Equals(x.Item, y.Item) || SequenceEqual(x.Item, y.Item)); 99if (!(Equals(left[i], right[i]) || SequenceEqual(left[i], right[i]))) 127if (!Equals(leftEnumerator.Current, rightEnumerator.Current))
Microsoft.AspNetCore.Connections.Abstractions (1)
ConnectionItems.cs (1)
116if (Items.TryGetValue(item.Key, out var value) && Equals(item.Value, value))
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (33)
artifacts\obj\Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests\Release\net10.0\Proto\Httpbody.cs (3)
131if (!object.Equals(Sub, other.Sub)) return false; 132return Equals(_unknownFields, other._unknownFields); 354return Equals(_unknownFields, other._unknownFields);
artifacts\obj\Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests\Release\net10.0\Proto\Issue045270\Hello.cs (2)
134return Equals(_unknownFields, other._unknownFields); 361return Equals(_unknownFields, other._unknownFields);
artifacts\obj\Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests\Release\net10.0\Proto\Issue047349\Message.cs (1)
139return Equals(_unknownFields, other._unknownFields);
artifacts\obj\Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests\Release\net10.0\Proto\Issue048192\Customhttp.cs (4)
156return Equals(_unknownFields, other._unknownFields); 908if (!object.Equals(Custom, other.Custom)) return false; 913return Equals(_unknownFields, other._unknownFields); 1340return Equals(_unknownFields, other._unknownFields);
artifacts\obj\Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests\Release\net10.0\Proto\Issue048192\Hello.cs (2)
117return Equals(_unknownFields, other._unknownFields); 307return Equals(_unknownFields, other._unknownFields);
artifacts\obj\Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests\Release\net10.0\Proto\Transcoding.cs (21)
614if (!object.Equals(Sub, other.Sub)) return false; 615if (!object.Equals(Data, other.Data)) return false; 616if (!object.Equals(Wrappers, other.Wrappers)) return false; 618if (!object.Equals(AnyMessage, other.AnyMessage)) return false; 627if (!object.Equals(TimestampValue, other.TimestampValue)) return false; 628if (!object.Equals(DurationValue, other.DurationValue)) return false; 629if (!object.Equals(ValueValue, other.ValueValue)) return false; 630if (!object.Equals(StructValue, other.StructValue)) return false; 631if (!object.Equals(ListValue, other.ListValue)) return false; 633if (!object.Equals(FieldMaskValue, other.FieldMaskValue)) return false; 640return Equals(_unknownFields, other._unknownFields); 1441return Equals(_unknownFields, other._unknownFields); 1867if (!object.Equals(SingleMessage, other.SingleMessage)) return false; 1868return Equals(_unknownFields, other._unknownFields); 2449return Equals(_unknownFields, other._unknownFields); 2774return Equals(_unknownFields, other._unknownFields); 3262if (!object.Equals(AnyMessage, other.AnyMessage)) return false; 3263if (!object.Equals(Sub, other.Sub)) return false; 3264return Equals(_unknownFields, other._unknownFields); 3576return Equals(_unknownFields, other._unknownFields); 3784return Equals(_unknownFields, other._unknownFields);
Microsoft.AspNetCore.Grpc.Microbenchmarks (4)
artifacts\obj\Microsoft.AspNetCore.Grpc.Microbenchmarks\Release\net10.0\Proto\Chat.cs (1)
131return Equals(_unknownFields, other._unknownFields);
artifacts\obj\Microsoft.AspNetCore.Grpc.Microbenchmarks\Release\net10.0\Proto\Greet.cs (3)
121return Equals(_unknownFields, other._unknownFields); 327if (!object.Equals(Timestamp, other.Timestamp)) return false; 328return Equals(_unknownFields, other._unknownFields);
Microsoft.AspNetCore.Grpc.Swagger.Tests (47)
artifacts\obj\Microsoft.AspNetCore.Grpc.Swagger.Tests\Release\net10.0\Proto\Body.cs (4)
154if (!object.Equals(ParameterThree, other.ParameterThree)) return false; 155return Equals(_unknownFields, other._unknownFields); 380return Equals(_unknownFields, other._unknownFields); 570return Equals(_unknownFields, other._unknownFields);
artifacts\obj\Microsoft.AspNetCore.Grpc.Swagger.Tests\Release\net10.0\Proto\Counter.cs (2)
131return Equals(_unknownFields, other._unknownFields); 344return Equals(_unknownFields, other._unknownFields);
artifacts\obj\Microsoft.AspNetCore.Grpc.Swagger.Tests\Release\net10.0\Proto\Greeter.cs (2)
122return Equals(_unknownFields, other._unknownFields); 318return Equals(_unknownFields, other._unknownFields);
artifacts\obj\Microsoft.AspNetCore.Grpc.Swagger.Tests\Release\net10.0\Proto\Messages.cs (19)
239if (!object.Equals(Sub, other.Sub)) return false; 240if (!object.Equals(Data, other.Data)) return false; 241if (!object.Equals(Wrappers, other.Wrappers)) return false; 243return Equals(_unknownFields, other._unknownFields); 558return Equals(_unknownFields, other._unknownFields); 984if (!object.Equals(SingleMessage, other.SingleMessage)) return false; 985return Equals(_unknownFields, other._unknownFields); 1566return Equals(_unknownFields, other._unknownFields); 1891return Equals(_unknownFields, other._unknownFields); 2337return Equals(_unknownFields, other._unknownFields); 2542return Equals(_unknownFields, other._unknownFields); 2737if (!object.Equals(Child, other.Child)) return false; 2738return Equals(_unknownFields, other._unknownFields); 2953return Equals(_unknownFields, other._unknownFields); 3172return Equals(_unknownFields, other._unknownFields); 3537return Equals(_unknownFields, other._unknownFields); 3803return Equals(_unknownFields, other._unknownFields); 3982if (!object.Equals(FieldMaskValue, other.FieldMaskValue)) return false; 3983return Equals(_unknownFields, other._unknownFields);
artifacts\obj\Microsoft.AspNetCore.Grpc.Swagger.Tests\Release\net10.0\Proto\Parameters.cs (11)
183return Equals(_unknownFields, other._unknownFields); 437if (!object.Equals(ParameterFour, other.ParameterFour)) return false; 438return Equals(_unknownFields, other._unknownFields); 737return Equals(_unknownFields, other._unknownFields); 957if (!object.Equals(ParameterOne, other.ParameterOne)) return false; 959return Equals(_unknownFields, other._unknownFields); 1225return Equals(_unknownFields, other._unknownFields); 1510if (!object.Equals(FieldMaskValue, other.FieldMaskValue)) return false; 1513return Equals(_unknownFields, other._unknownFields); 1770return Equals(_unknownFields, other._unknownFields); 1960return Equals(_unknownFields, other._unknownFields);
artifacts\obj\Microsoft.AspNetCore.Grpc.Swagger.Tests\Release\net10.0\Proto\Responsebody.cs (4)
134return Equals(_unknownFields, other._unknownFields); 341if (!object.Equals(NestedMessage, other.NestedMessage)) return false; 342return Equals(_unknownFields, other._unknownFields); 586return Equals(_unknownFields, other._unknownFields);
artifacts\obj\Microsoft.AspNetCore.Grpc.Swagger.Tests\Release\net10.0\Proto\Xmldoc.cs (5)
135return Equals(_unknownFields, other._unknownFields); 347if (!object.Equals(Detail, other.Detail)) return false; 348return Equals(_unknownFields, other._unknownFields); 579return Equals(_unknownFields, other._unknownFields); 780return Equals(_unknownFields, other._unknownFields);
Microsoft.AspNetCore.Http (1)
Internal\ItemsDictionary.cs (1)
122if (_items.TryGetValue(item.Key, out var value) && Equals(item.Value, value))
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
src\Shared\RoslynUtils\BoundedCacheWithFactory.cs (1)
49if (Equals(cachedEntry.Key, key))
Microsoft.AspNetCore.InternalTesting (1)
Logging\LogValuesAssert.cs (1)
63return string.Equals(x.Key, y.Key) && object.Equals(x.Value, y.Value);
Microsoft.AspNetCore.Mvc.Abstractions (1)
ModelBinding\ModelBindingResult.cs (1)
77object.Equals(Model, other.Model);
Microsoft.AspNetCore.Mvc.Core (2)
Infrastructure\CopyOnWriteList.cs (2)
61if (object.Equals(obj, item)) 88if (object.Equals(obj, item))
Microsoft.AspNetCore.Mvc.Core.Test (1)
Infrastructure\ControllerActionInvokerTest.cs (1)
67Assert.Contains(routeValues, kvp => kvp.Key == "tag" && string.Equals(kvp.Value, "value"));
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Infrastructure\PageActionInvokerTest.cs (1)
55Assert.Contains(routeValues, kvp => kvp.Key == "tag" && string.Equals(kvp.Value, "value"));
Microsoft.AspNetCore.Mvc.TagHelpers.Test (1)
FormTagHelperTest.cs (1)
820It.Is<RouteValueDictionary>(m => string.Equals(m["name"], "value")),
Microsoft.AspNetCore.Razor (1)
TagHelpers\TagHelperAttribute.cs (1)
77(ValueStyle == HtmlAttributeValueStyle.Minimized || Equals(Value, other.Value));
Microsoft.AspNetCore.Routing (3)
Patterns\RoutePatternFactory.cs (3)
583if (parameter.Default != null && !Equals(newDefault, parameter.Default)) 626if (Equals(parameter.Default, @default) 1057if (!combinedDictionary.TryAdd(key, value) && !Equals(combinedDictionary[key], value))
Microsoft.AspNetCore.Server.HttpSys (1)
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
161return ((IDictionary<string, StringValues>)this).TryGetValue(item.Key, out var value) && Equals(value, item.Value);
Microsoft.AspNetCore.Server.IIS (1)
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
161return ((IDictionary<string, StringValues>)this).TryGetValue(item.Key, out var value) && Equals(value, item.Value);
Microsoft.AspNetCore.Shared.Tests (1)
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
161return ((IDictionary<string, StringValues>)this).TryGetValue(item.Key, out var value) && Equals(value, item.Value);
Microsoft.AspNetCore.SignalR.Common.Tests (5)
Internal\Protocol\TestHubMessageEqualityComparer.cs (5)
20if (!Equals(x.GetType(), y.GetType())) 57&& (Equals(x.Result, y.Result) || SequenceEqual(x.Result, y.Result)); 64&& (Equals(x.Item, y.Item) || SequenceEqual(x.Item, y.Item)); 99if (!(Equals(left[i], right[i]) || SequenceEqual(left[i], right[i]))) 127if (!Equals(leftEnumerator.Current, rightEnumerator.Current))
Microsoft.Build (8)
BackEnd\BuildManager\BuildManager.cs (4)
1558if (!Equals(CultureInfo.CurrentCulture, _buildParameters!.Culture)) 1563if (!Equals(CultureInfo.CurrentUICulture, _buildParameters.UICulture)) 1579if (!Equals(CultureInfo.CurrentCulture, oldCulture)) 1584if (!Equals(CultureInfo.CurrentUICulture, oldUICulture))
CollectionHelpers.cs (1)
72if (!Equals(aKvp.Value, bValue))
Construction\ProjectRootElement.cs (1)
1527if (HasUnsavedChanges || !Equals(saveEncoding, Encoding))
Evaluation\ItemDataCollectionValue.cs (2)
91else if (object.Equals(_value, item)) 107else if (object.Equals(_value, oldItem))
Microsoft.Build.BuildCheck.UnitTests (6)
EditorConfig_Tests.cs (6)
39return object.Equals(@object, default(T)); 51if (object.Equals(x, default(T))) 53return object.Equals(y, default(T)); 56if (object.Equals(y, default(T))) 100if (!Equals(enumeratorX.Current, enumeratorY.Current)) 107return object.Equals(x, y);
Microsoft.Build.Framework (1)
EncodingUtilities.cs (1)
103if (Equals(encoding1, encoding2))
Microsoft.Build.Utilities.Core (2)
ToolLocationHelper.cs (2)
1342bool isSDKMatch = string.Equals(sdk.TargetPlatformIdentifier, sdkIdentifier, StringComparison.OrdinalIgnoreCase) && Equals(sdk.TargetPlatformVersion, sdkVersion); 1593&& Equals(platform.TargetPlatformVersion, targetPlatformVersion));
Microsoft.Cci.Extensions (3)
Experimental\TypeReferenceSearcher.cs (3)
40return object.Equals(x.TypeReference, y.TypeReference) 41&& object.Equals(x.DependentMember, y.DependentMember) 42&& object.Equals(x.DependentType, y.DependentMember);
Microsoft.CodeAnalysis (44)
Binding\UseSiteInfo.cs (1)
95if (!object.Equals(primaryDependency, PrimaryDependency) && PrimaryDependency is object)
CommandLine\CommonCompiler.SuppressionDiagnostic.cs (3)
83return Equals(_originalDiagnostic, other._originalDiagnostic) && 84Equals(_suppressionId, other._suppressionId) && 85Equals(_suppressionJustification, other._suppressionJustification);
Compilation\CompilationOptions.cs (11)
343&& object.Equals(this.XmlReferenceResolver, other.XmlReferenceResolver) 344&& object.Equals(this.MetadataReferenceResolver, other.MetadataReferenceResolver) 345&& object.Equals(this.AssemblyIdentityComparer, other.AssemblyIdentityComparer); 644object.Equals(this.MetadataReferenceResolver, other.MetadataReferenceResolver) && 645object.Equals(this.XmlReferenceResolver, other.XmlReferenceResolver) && 646object.Equals(this.SourceReferenceResolver, other.SourceReferenceResolver) && 647object.Equals(this.SyntaxTreeOptionsProvider, other.SyntaxTreeOptionsProvider) && 648object.Equals(this.StrongNameProvider, other.StrongNameProvider) && 649object.Equals(this.AssemblyIdentityComparer, other.AssemblyIdentityComparer) && 703return object.Equals(left, right); 708return !object.Equals(left, right);
Compilation\ParseOptions.cs (2)
173return object.Equals(left, right); 178return !object.Equals(left, right);
Compilation\PreprocessingSymbolInfo.cs (2)
33return object.Equals(this.Symbol, other.Symbol) 34&& object.Equals(this.IsDefined, other.IsDefined);
Compilation\SymbolInfo.cs (1)
88object.Equals(this.Symbol, other.Symbol) &&
Compilation\TypeInfo.cs (2)
53return object.Equals(this.Type, other.Type) 54&& object.Equals(this.ConvertedType, other.ConvertedType)
Diagnostic\Diagnostic.DiagnosticWithProgrammaticSuppression.cs (2)
99return Equals(_originalUnsuppressedDiagnostic, other._originalUnsuppressedDiagnostic) && 100Equals(_programmaticSuppressionInfo, other._programmaticSuppressionInfo);
Diagnostic\DiagnosticInfo.cs (1)
421if (!object.Equals(_arguments[i], other._arguments[i]))
DiagnosticAnalyzer\AnalyzerFileReference.cs (1)
428public bool Equals(TExtension? x, TExtension? y) => object.Equals(x?.GetType(), y?.GetType());
DiagnosticAnalyzer\SourceOrAdditionalFile.cs (2)
40=> Equals(left, right); 43=> !Equals(left, right);
Emit\EmitOptions.cs (2)
324return object.Equals(left, right); 329return !object.Equals(left, right);
InternalUtilities\DocumentationCommentXmlNames.cs (1)
64return object.Equals(left, right);
InternalUtilities\SpecializedCollections.Singleton.Collection`1.cs (1)
83if (Equals(_loneValue, item))
MetadataReference\CompilationReference.cs (2)
130return object.Equals(this.Compilation, other.Compilation) && object.Equals(this.Properties, other.Properties);
PEWriter\UsedNamespaceOrType.cs (1)
69&& object.Equals(TargetAssemblyOpt, other.TargetAssemblyOpt)
src\Dependencies\Collections\ImmutableSegmentedHashSet`1.cs (1)
308if (Equals(self.KeyComparer, equalityComparer))
src\Dependencies\Collections\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
45if (Equals(KeyComparer, value ?? EqualityComparer<T>.Default))
Symbols\TypedConstant.cs (2)
208&& object.Equals(_value, other._value) 209&& object.Equals(_type, other._type);
Symbols\TypedConstantValue.cs (1)
74return object.Equals(_value, other._value);
Syntax\SeparatedSyntaxList.cs (2)
250if (object.Equals(this[i], node)) 289if (object.Equals(this[i], node))
Syntax\SyntaxList`1.cs (2)
510if (object.Equals(child, node)) 557if (object.Equals(this[i], node))
Microsoft.CodeAnalysis.CodeStyle (31)
src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.cs (1)
215if (Equals(_objectGetHashCodeMethod, current))
src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.OperationDeconstructor.cs (3)
79Equals(_analyzer._equalityComparerType, targetMethod.ContainingType.OriginalDefinition) && 123Equals(_method.ContainingType.BaseType, instanceReference.Type)) 145Equals(fieldOrProp.ContainingType.OriginalDefinition, _method.ContainingType))
src\Analyzers\Core\Analyzers\PopulateSwitch\AbstractPopulateSwitchDiagnosticAnalyzer.cs (1)
128=> constantValue.HasValue && Equals(constantValue.Value, value);
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
108=> Equals(x?.OriginalDefinition, y?.OriginalDefinition);
src\Analyzers\Core\Analyzers\UseAutoProperty\AccessedFields.cs (1)
33=> Equals(TrivialField, field) || NonTrivialFields.Contains(field);
src\Analyzers\Core\Analyzers\UseCollectionInitializer\UpdateExpressionState.cs (1)
297if (arity != 0 || !Equals(name, methodName))
src\Analyzers\Core\Analyzers\UseThrowExpression\AbstractUseThrowExpressionDiagnosticAnalyzer.cs (1)
195if (!Equals(localOrParameter, assignmentValue))
src\Compilers\Core\Portable\InternalUtilities\DocumentationCommentXmlNames.cs (1)
64return object.Equals(left, right);
src\Compilers\Core\Portable\InternalUtilities\SpecializedCollections.Singleton.Collection`1.cs (1)
83if (Equals(_loneValue, item))
src\Dependencies\Collections\ImmutableSegmentedHashSet`1.cs (1)
308if (Equals(self.KeyComparer, equalityComparer))
src\Dependencies\Collections\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
45if (Equals(KeyComparer, value ?? EqualityComparer<T>.Default))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\IAssemblySymbolExtensions.cs (1)
63Equals(assembly, toAssembly) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\IMethodSymbolExtensions.cs (2)
24Debug.Assert(method.PartialImplementationPart == null && !Equals(method.PartialDefinitionPart, method)); 29Debug.Assert(!Equals(method.PartialImplementationPart, method));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamedTypeSymbolExtensions.cs (2)
257return implementation != null && Equals(implementation.ContainingType, classOrStructType); 276return implementation != null && Equals(implementation.ContainingType, classOrStructType);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (1)
726(Equals(iDisposableType, type) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.SubstituteTypesVisitor.cs (4)
60if (!Equals(mapped, symbol)) 81if (!Equals(updatedContainingType, symbol.ContainingType)) 98if (!Equals(mapped, symbol)) 115if (!Equals(mapped, symbol))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.cs (1)
46.FirstOrDefault(o => Equals((o as ILocalFunctionOperation)?.Symbol, localFunction));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFactsExtensions.cs (2)
51if (!Equals(semanticModel.GetTypeInfo(parentBinaryLeft).Type, 57if (!Equals(semanticModel.GetTypeInfo(parentBinaryLeft).ConvertedType,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (2)
418Contract.ThrowIfFalse(Equals(method, _methodSymbolStack[^1])); 434Contract.ThrowIfFalse(Equals(contextualSymbol, _contextualSymbolStack.Peek()));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (3)
1171if (!object.Equals(parameter2.ExplicitDefaultValue, parameter1.ExplicitDefaultValue)) 1176if (object.Equals(parameter1.ExplicitDefaultValue, 0.0)) 1178RoslynDebug.Assert(object.Equals(parameter2.ExplicitDefaultValue, 0.0));
Microsoft.CodeAnalysis.CodeStyle.Fixes (4)
src\Analyzers\Core\CodeFixes\MakeMethodSynchronous\AbstractMakeMethodSynchronousCodeFixProvider.cs (1)
142var referencedSymbol = references.FirstOrDefault(r => Equals(r.Definition, methodSymbol));
src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForAssignment\AbstractUseConditionalExpressionForAssignmentCodeFixProvider.cs (3)
179if (local != null && !Equals(local, falseLocal.Local)) 226if (!Equals(variable, local)) 253Equals(variable, localReference.Local))
Microsoft.CodeAnalysis.Collections.Package (2)
ImmutableSegmentedHashSet`1.cs (1)
308if (Equals(self.KeyComparer, equalityComparer))
ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
45if (Equals(KeyComparer, value ?? EqualityComparer<T>.Default))
Microsoft.CodeAnalysis.CSharp (29)
Binder\Binder.ValueChecks.cs (1)
1845if (!object.Equals(useSiteInfo.DiagnosticInfo, propertySymbol.GetUseSiteInfo().DiagnosticInfo))
Binder\Semantics\AccessCheck.cs (1)
677if (Equals(fromAssembly, toAssembly))
BoundTree\BoundDagTemp.cs (1)
29object.Equals(this.Source, other.Source) &&
Compilation\AwaitExpressionInfo.cs (3)
38return object.Equals(this.GetAwaiterMethod, other.GetAwaiterMethod) 39&& object.Equals(this.IsCompletedProperty, other.IsCompletedProperty) 40&& object.Equals(this.GetResultMethod, other.GetResultMethod)
Compilation\ForEachStatementInfo.cs (5)
92&& object.Equals(this.GetEnumeratorMethod, other.GetEnumeratorMethod) 93&& object.Equals(this.MoveNextMethod, other.MoveNextMethod) 94&& object.Equals(this.CurrentProperty, other.CurrentProperty) 95&& object.Equals(this.DisposeMethod, other.DisposeMethod) 96&& object.Equals(this.ElementType, other.ElementType)
DocumentationComments\PEDocumentationCommentUtils.cs (1)
39if (object.Equals(lazyDocComment.Item1, preferredCulture))
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (7)
578Debug.Assert(StringOrdinalComparer.Equals(@event.Name, other.Name)); 587Debug.Assert(StringOrdinalComparer.Equals(field.Name, other.Name)); 593Debug.Assert(StringOrdinalComparer.Equals(method.Name, other.Name)); 623Debug.Assert(StringOrdinalComparer.Equals(type.MetadataName, other.MetadataName)); 648Debug.Assert(StringOrdinalComparer.Equals(@namespace.MetadataName, other.MetadataName)); 715Debug.Assert(StringOrdinalComparer.Equals(property.MetadataName, other.MetadataName)); 727Debug.Assert(StringOrdinalComparer.Equals(type.Name, other.Name));
FlowAnalysis\DefiniteAssignment.VariableIdentifier.cs (1)
85return Symbol.Equals(other.Symbol, TypeCompareKind.AllIgnoreOptions);
Parser\DirectiveParser.cs (2)
853return object.Equals(Evaluate(((BinaryExpressionSyntax)expr).Left), Evaluate(((BinaryExpressionSyntax)expr).Right)); 855return !object.Equals(Evaluate(((BinaryExpressionSyntax)expr).Left), Evaluate(((BinaryExpressionSyntax)expr).Right));
Symbols\AliasSymbol.cs (1)
258Equals(this.TryGetFirstLocation(), other.TryGetFirstLocation()) &&
Symbols\Metadata\PE\MemberRefMetadataDecoder.cs (1)
326!object.Equals(targetCustomModifier.Modifier, ((CSharpCustomModifier)candidateCustomModifier).ModifierSymbol))
Symbols\NamespaceExtent.cs (1)
126return object.Equals(_symbolOrCompilation, other._symbolOrCompilation);
Symbols\PublicModel\AssemblySymbol.cs (1)
65if (Equals(this, assemblyWantingAccess))
Symbols\Source\SourcePropertySymbol.cs (1)
689bool hasTypeDifferences = !TypeWithAnnotations.Equals(implementation.TypeWithAnnotations, TypeCompareKind.AllIgnoreOptions);
Symbols\TypeParameterSymbol.cs (1)
657return Equals(other, TypeCompareKind.ConsiderEverything);
Utilities\ValueSetFactory.IEqualableValueTC.cs (1)
13/// using <see cref="System.Object.Equals(object?, object?)"/>.
Microsoft.CodeAnalysis.CSharp.CodeStyle (18)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (14)
130if (Equals(enumType?.EnumUnderlyingType, castedType)) 165if (Equals(enumType?.EnumUnderlyingType, castedType)) 273if (!Equals(originalDelegateCreationOperation.Type, rewrittenDelegateCreationOperation.Type)) 416if (!Equals(originalParentConversion.MethodSymbol, rewrittenConversion.MethodSymbol)) 1068if (Equals(castSideType, otherSideType) || Equals(underlyingType, otherSideType)) 1243!Equals(oldSymbolInfo, newSymbolInfo)) 1274if (!Equals(oldConversion.MethodSymbol, newConversion.MethodSymbol)) 1337if (Equals(originalMemberSymbol, rewrittenMemberSymbol)) 1366Equals(implementationMember, rewrittenMemberSymbol) && 1376if (Equals(originalMemberSymbol, current)) 1425return Equals(originalMethodSymbol.ReturnType, rewrittenMethodSymbol.ReturnType); 1477if (!Equals(originalMemberType, rewrittenMemberType)) 1500var argument = invocationOperation.Arguments.FirstOrDefault(a => Equals(originalParameter, a.Parameter)); 1512!Equals(originalParameter.ExplicitDefaultValue, rewrittenParameter.ExplicitDefaultValue) &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (4)
438if (Equals(originalCaseType, newCaseType)) 494if (!Equals(originalExprType.Type, replacedExprType.Type)) 545if (!Equals(originalExpressionTypeInfo.Type, newExpressionTypeInfo.Type)) 563return !object.Equals(originalExpressionType, newExpressionType);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.Rewriter.cs (1)
195!Equals(typeInfo.ConvertedType, typeInfo.Type))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpMoveDeclarationNearReferenceService.cs (1)
63return Equals(localSymbol.Type, rightType.Type);
Microsoft.CodeAnalysis.CSharp.Features (7)
ChangeSignature\CSharpChangeSignatureService.cs (1)
877if (Equals(convertedType, symbol.ContainingType))
ConvertLinq\ConvertForEachToLinqQuery\CSharpConvertForEachToLinqQueryProvider.cs (1)
289.Where(statement => Equals(semanticModel.GetEnclosingSymbol(
ConvertLinq\CSharpConvertLinqQueryToForEachProvider.cs (3)
371=> Equals(typeSymbol.OriginalDefinition, _semanticModel.Compilation.GetTypeByMetadataName(typeof(List<>).FullName)); 666if (Equals(lastSelectExpressionTypeInfo.ConvertedType, lastSelectExpressionTypeInfo.Type) && 667Equals(lastSelectExpressionTypeInfo.ConvertedType, forEachStatementTypeSymbolType))
SignatureHelp\InvocationExpressionSignatureHelpProviderBase_MethodGroup.cs (1)
92if (!Equals(m, method))
src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.Rewriter.cs (1)
195!Equals(typeInfo.ConvertedType, typeInfo.Type))
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Syntax\SyntaxNodeTests.cs (1)
938Assert.True(SyntaxTrivia.Equals(trivia, triviaAgain));
Microsoft.CodeAnalysis.CSharp.Workspaces (25)
Recommendations\CSharpRecommendationServiceRunner.cs (1)
405!Equals(enclosingNamedType, symbol.ContainingType) &&
Rename\CSharpRenameRewriterLanguageService.cs (1)
541(Equals(symbol, _renamedSymbol) || SymbolKey.GetComparer(ignoreCase: true, ignoreAssemblyKeys: false).Equals(symbol.GetSymbolKey(), _renamedSymbol.GetSymbolKey())))
Simplification\CSharpSimplificationService.Expander.cs (2)
807if (Equals(symbol, symbol.OriginalDefinition)) 868object.Equals(((AssignmentExpressionSyntax)currentNode).Left, identifierName);
Simplification\Simplifiers\NameSimplifier.cs (1)
568return object.Equals(namespaceDeclaration.Name, node);
Simplification\Simplifiers\QualifiedCrefSimplifier.cs (1)
91if (Equals(newSymbol, oldSymbol))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (14)
130if (Equals(enumType?.EnumUnderlyingType, castedType)) 165if (Equals(enumType?.EnumUnderlyingType, castedType)) 273if (!Equals(originalDelegateCreationOperation.Type, rewrittenDelegateCreationOperation.Type)) 416if (!Equals(originalParentConversion.MethodSymbol, rewrittenConversion.MethodSymbol)) 1068if (Equals(castSideType, otherSideType) || Equals(underlyingType, otherSideType)) 1243!Equals(oldSymbolInfo, newSymbolInfo)) 1274if (!Equals(oldConversion.MethodSymbol, newConversion.MethodSymbol)) 1337if (Equals(originalMemberSymbol, rewrittenMemberSymbol)) 1366Equals(implementationMember, rewrittenMemberSymbol) && 1376if (Equals(originalMemberSymbol, current)) 1425return Equals(originalMethodSymbol.ReturnType, rewrittenMethodSymbol.ReturnType); 1477if (!Equals(originalMemberType, rewrittenMemberType)) 1500var argument = invocationOperation.Arguments.FirstOrDefault(a => Equals(originalParameter, a.Parameter)); 1512!Equals(originalParameter.ExplicitDefaultValue, rewrittenParameter.ExplicitDefaultValue) &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (4)
438if (Equals(originalCaseType, newCaseType)) 494if (!Equals(originalExprType.Type, replacedExprType.Type)) 545if (!Equals(originalExpressionTypeInfo.Type, newExpressionTypeInfo.Type)) 563return !object.Equals(originalExpressionType, newExpressionType);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpMoveDeclarationNearReferenceService.cs (1)
63return Equals(localSymbol.Type, rightType.Type);
Microsoft.CodeAnalysis.EditorFeatures (3)
Classification\Syntactic\SyntacticClassificationTaggerProvider.TagComputer.cs (1)
300if (Equals(oldProject?.ParseOptions, newProject?.ParseOptions))
CommentSelection\AbstractToggleBlockCommentBase.cs (1)
266if (Equals(blockCommentSelection.GetSubstringFromText(endMarkerPosition, commentInfo.BlockCommentEndString.Length),
IntelliSense\AsyncCompletion\ItemManager.CompletionListUpdater.cs (1)
397if (Equals(matchResults[selectedItemIndex].CompletionItem, bestResult.CompletionItem))
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (3)
CodeGeneration\CodeGenerationTests.cs (1)
555var attribute = attributeTarget.GetAttributes().Single(attr => Equals(attr.AttributeClass, attributeType));
Options\GlobalOptionsTests.cs (1)
129Assert.False(Equals(value, defaultValue), $"{type.FullName}.{property.Name} not initialized from global options");
SymbolFinder\DependentTypeFinderTests.cs (1)
454Assert.True(transitiveDerived.Any(d => !Equals(d.BaseType, rootType)), "At least one result must not immediately derive from the type");
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver.UnitTests (8)
NameComparer.cs (3)
37return Equals(xQualified.Qualifier, yQualified.Qualifier) && 38Equals(xQualified.Name, yQualified.Name); 44return Equals(xGeneric.QualifiedName, yGeneric.QualifiedName) &&
TypeComparer.cs (5)
37return Equals(xQualified.Qualifier, yQualified.Qualifier) && 38Equals(xQualified.Name, yQualified.Name); 44return Equals(xGeneric.QualifiedName, yGeneric.QualifiedName) && 51return Equals(xArray.ElementType, yArray.ElementType) && 58return Equals(xPointer.PointedAtType, yPointer.PointedAtType);
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (1)
src\ExpressionEvaluator\Core\Source\ResultProvider\Helpers\TypeHelpers.cs (1)
419if (object.Equals(hasValue.HostObjectValue, false))
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
src\ExpressionEvaluator\Core\Source\ResultProvider\Helpers\TypeHelpers.cs (1)
419if (object.Equals(hasValue.HostObjectValue, false))
Microsoft.CodeAnalysis.Features (25)
CodeLens\LocationComparer.cs (1)
25return object.Equals(x, y);
ConvertForToForEach\AbstractConvertForToForEachCodeRefactoringProvider.cs (1)
346if (!Equals(indexerType, iterationType))
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (1)
2341return Equals(x?.Identity, y?.Identity);
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.cs (8)
444!object.Equals(oldProject.CompilationOptions, newProject.CompilationOptions) || 445!object.Equals(oldProject.AssemblyName, newProject.AssemblyName) || 446!object.Equals(oldProject.Name, newProject.Name) || 447!object.Equals(oldProject.AnalyzerOptions, newProject.AnalyzerOptions) || 448!object.Equals(oldProject.HostAnalyzerOptions, newProject.HostAnalyzerOptions) || 449!object.Equals(oldProject.DefaultNamespace, newProject.DefaultNamespace) || 450!object.Equals(oldProject.OutputFilePath, newProject.OutputFilePath) || 451!object.Equals(oldProject.OutputRefFilePath, newProject.OutputRefFilePath) ||
FullyQualify\AbstractFullyQualifyService.SymbolResult.cs (1)
38=> Equals(Symbol, other.Symbol);
LanguageServices\AnonymousTypeDisplayService\AbstractStructuralTypeDisplayService.cs (1)
54if (!Equals(invokeMethod, part.Symbol))
src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.cs (1)
215if (Equals(_objectGetHashCodeMethod, current))
src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.OperationDeconstructor.cs (3)
79Equals(_analyzer._equalityComparerType, targetMethod.ContainingType.OriginalDefinition) && 123Equals(_method.ContainingType.BaseType, instanceReference.Type)) 145Equals(fieldOrProp.ContainingType.OriginalDefinition, _method.ContainingType))
src\Analyzers\Core\Analyzers\PopulateSwitch\AbstractPopulateSwitchDiagnosticAnalyzer.cs (1)
128=> constantValue.HasValue && Equals(constantValue.Value, value);
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
108=> Equals(x?.OriginalDefinition, y?.OriginalDefinition);
src\Analyzers\Core\Analyzers\UseAutoProperty\AccessedFields.cs (1)
33=> Equals(TrivialField, field) || NonTrivialFields.Contains(field);
src\Analyzers\Core\Analyzers\UseCollectionInitializer\UpdateExpressionState.cs (1)
297if (arity != 0 || !Equals(name, methodName))
src\Analyzers\Core\Analyzers\UseThrowExpression\AbstractUseThrowExpressionDiagnosticAnalyzer.cs (1)
195if (!Equals(localOrParameter, assignmentValue))
src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForAssignment\AbstractUseConditionalExpressionForAssignmentCodeFixProvider.cs (3)
179if (local != null && !Equals(local, falseLocal.Local)) 226if (!Equals(variable, local)) 253Equals(variable, localReference.Local))
Microsoft.CodeAnalysis.LanguageServer.Protocol (3)
Protocol\Diagnostic.cs (1)
146&& object.Equals(this.Code, other.Code)
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\MethodHandlerDetails.cs (1)
170if (!Equals(types[i], parameters[i].ParameterType))
Workspaces\LspWorkspaceManager.cs (1)
72return Uri.Equals(x, y);
Microsoft.CodeAnalysis.Scripting (4)
Hosting\Resolvers\RuntimeMetadataReferenceResolver.cs (4)
243Equals(PathResolver, other.PathResolver) && 244Equals(PackageResolver, other.PackageResolver) && 245Equals(GacFileResolver, other.GacFileResolver) && 253return Equals(resolver, PathResolver) ? this :
Microsoft.CodeAnalysis.Test.Utilities (6)
Assert\AssertEx.cs (6)
57return object.Equals(@object, default(T)); 69if (object.Equals(x, default(T))) 71return object.Equals(y, default(T)); 74if (object.Equals(y, default(T))) 110if (!Equals(enumeratorX.Current, enumeratorY.Current)) 117return object.Equals(x, y);
Microsoft.CodeAnalysis.UnitTests (3)
Collections\List\IEnumerable.Generic.Tests.cs (1)
244&& Equals(
FileLinePositionSpanTests.cs (2)
20(left, right) => object.Equals(left, right), 21(left, right) => !object.Equals(left, right),
Microsoft.CodeAnalysis.VisualBasic (13)
Binding\Binder_Expressions.vb (1)
2807CaseInsensitiveComparison.Equals(identifier.ValueText, SyntaxFacts.GetText(SyntaxKind.NewKeyword)) Then
Compilation\PreprocessingSymbolInfo.vb (1)
55Equals(Me._constantValue, other._constantValue)
GlobalImport.vb (2)
176Return Object.Equals(left, right) 184Return Not Object.Equals(left, right)
Symbols\AliasSymbol.vb (1)
245Equals(Me.Locations.FirstOrDefault(), other.Locations.FirstOrDefault()) AndAlso
Symbols\AssemblySymbol.vb (1)
740If Equals(Me, assemblyWantingAccess) Then
Symbols\ExtendedErrorTypeSymbol.vb (1)
157Return Object.Equals(Me.ContainingSymbol, other.ContainingSymbol) AndAlso String.Equals(Me.Name, other.Name, StringComparison.Ordinal) AndAlso Me.Arity = other.Arity
Symbols\Source\BoundLambdaParameterSymbol.vb (1)
58Return symbol IsNot Nothing AndAlso Equals(symbol._lambdaSymbol, Me._lambdaSymbol) AndAlso symbol.Ordinal = Me.Ordinal
Symbols\Source\LambdaSymbol.vb (1)
366Equals(symbol.ContainingSymbol, Me.ContainingSymbol) AndAlso
Symbols\Source\LocalSymbol.vb (1)
622Return other IsNot Nothing AndAlso other._identifierToken.Equals(Me._identifierToken) AndAlso Equals(other._container, Me._container) AndAlso String.Equals(other.Name, Me.Name)
Symbols\Source\SourceLabelSymbol.vb (1)
74Equals(symbol._containingMethod, Me._containingMethod)
Symbols\Symbol.vb (2)
839Return Me.[Equals](TryCast(other, Symbol), SymbolEqualityComparer.Default.CompareKind) 843Return Me.[Equals](TryCast(other, Symbol), equalityComparer.CompareKind)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Utilities\CastAnalyzer.vb (2)
69If Not Object.Equals(expressionTypeInfo.Type, expressionTypeInfo.ConvertedType) Then 306Return Equals(castType, speculatedExpressionOuterType)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (3)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ParameterSyntaxExtensions.vb (1)
29Equals(oldSymbol.Type, newSymbol.Type) Then
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\SemanticModelExtensions.vb (1)
37Function(s) Not reservedNames.Any(Function(n) CaseInsensitiveComparison.Equals(s, n)),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\SymbolExtensions.vb (1)
19(containingNamespace.IsGlobalNamespace OrElse Object.Equals(containingNamespace, compilation.RootNamespace))
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (9)
Attributes\InternalsVisibleToAndStrongNameTests.vb (9)
84Assert.True(ByteSequenceComparer.Equals(s_publicKey, other.Assembly.Identity.PublicKey)) 114Assert.True(ByteSequenceComparer.Equals(s_publicKey, comp.Assembly.Identity.PublicKey)) 144Assert.True(ByteSequenceComparer.Equals(s_publicKey, comp.Assembly.Identity.PublicKey)) 163Assert.True(ByteSequenceComparer.Equals(s_publicKey, other.Assembly.Identity.PublicKey)) 182Assert.True(ByteSequenceComparer.Equals(s_publicKey, other.Assembly.Identity.PublicKey)) 220Assert.True(ByteSequenceComparer.Equals(s_publicKey, comp.Assembly.Identity.PublicKey)) 280Assert.True(ByteSequenceComparer.Equals(s_publicKey, comp.Assembly.Identity.PublicKey)) 387Assert.True(ByteSequenceComparer.Equals(s_publicKey, c.Assembly.Identity.PublicKey)) 420Assert.True(ByteSequenceComparer.Equals(s_publicKey, c.Assembly.Identity.PublicKey))
Microsoft.CodeAnalysis.VisualBasic.Features (7)
ChangeSignature\VisualBasicChangeSignatureService.vb (2)
708If Equals(convertedType, symbol.ContainingType) Then 727If Equals(nodeType, symbol.ContainingType) Then
CodeFixes\GenerateEvent\GenerateEventCodeFixProvider.vb (1)
135AndAlso Equals(existingSymbol.ContainingNamespace, targetType.ContainingNamespace)) Then
CodeRefactorings\InlineTemporary\VisualBasicInlineTemporaryCodeRefactoringProvider.ReferenceRewriter.vb (1)
44Return Equals(symbolInfo.Symbol, _localSymbol)
EditAndContinue\VisualBasicEditAndContinueAnalyzer.vb (1)
725Dim newSymbol = newSymbols.FirstOrDefault(Function(s, o) CaseInsensitiveComparison.Equals(s.Name, o.Name), oldSymbol)
NavigationBar\VisualBasicNavigationBarItemService.vb (2)
242If Not CaseInsensitiveComparison.Equals(memberGroup.Key, WellKnownMemberNames.DestructorName) Then 325.Where(Function(m) m.HandledEvents.Any(Function(he) Object.Equals(he.EventContainer, eventContainer)))
Microsoft.CodeAnalysis.VisualBasic.Workspaces (13)
CaseCorrection\VisualBasicCaseCorrectionService.Rewriter.vb (2)
98If otherPartOfPartial IsNot Nothing And Equals(otherPartOfPartial, definitionPart) Then 110If otherPartOfPartial IsNot Nothing And Equals(otherPartOfPartial, definitionPart) Then
Rename\VisualBasicRenameRewriterLanguageService.vb (6)
267If CaseInsensitiveComparison.Equals(possibleNameConflict, candidate) Then 404(Equals(symbol, Me._renamedSymbol) OrElse SymbolKey.GetComparer(ignoreCase:=True, ignoreAssemblyKeys:=False).Equals(symbol.GetSymbolKey(), Me._renamedSymbol.GetSymbolKey())) Then 794.Where(Function(t) CaseInsensitiveComparison.Equals(t.Name, renamedSymbol.Name)) _ 952If CaseInsensitiveComparison.Equals(symbol.Name, "MoveNext") Then 956ElseIf CaseInsensitiveComparison.Equals(symbol.Name, "GetEnumerator") Then 965ElseIf CaseInsensitiveComparison.Equals(symbol.Name, "Current") Then
Simplification\VisualBasicSimplificationService.Expander.vb (1)
363If CaseInsensitiveComparison.Equals(elementName, name) Then
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Utilities\CastAnalyzer.vb (2)
69If Not Object.Equals(expressionTypeInfo.Type, expressionTypeInfo.ConvertedType) Then 306Return Equals(castType, speculatedExpressionOuterType)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\SemanticModelExtensions.vb (1)
37Function(s) Not reservedNames.Any(Function(n) CaseInsensitiveComparison.Equals(s, n)),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\SymbolExtensions.vb (1)
19(containingNamespace.IsGlobalNamespace OrElse Object.Equals(containingNamespace, compilation.RootNamespace))
Microsoft.CodeAnalysis.Workspaces (38)
Editing\SyntaxGenerator.cs (1)
248return Equals(current, typeParameter) && current.NullableAnnotation == NullableAnnotation.Annotated;
FindSymbols\FindReferences\MetadataUnifyingEquivalenceComparer.cs (1)
31return object.Equals(x, y);
FindSymbols\SymbolFinder_Helpers.cs (1)
185if (Equals(resolvedType, forwardedTo))
Options\LegacyWorkspaceOptionService.cs (1)
61if (Equals(value, GetExternallyDefinedOption(optionKey)))
Options\SolutionOptionSet.cs (1)
67if (Equals(internalValue, currentInternalValue))
ReassignedVariable\AbstractReassignedVariableService.cs (2)
367return Equals(getParameter, symbol) || Equals(setParameter, symbol);
Rename\ConflictEngine\DeclarationConflictHelpers.cs (2)
61if (!(conflictingMethod.PartialDefinitionPart != null && Equals(conflictingMethod.PartialDefinitionPart, renamedMethod)) && 62!(conflictingMethod.PartialImplementationPart != null && Equals(conflictingMethod.PartialImplementationPart, renamedMethod)))
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (1)
127&& Equals(possibleConstructor.ContainingType.ConstructedFrom, namedType.ConstructedFrom);
Shared\Extensions\INamespaceSymbolExtensions.cs (1)
170if (Equals(constituent.ContainingAssembly, assembly))
Shared\Extensions\ISymbolExtensions.cs (3)
118if (Equals(attribute.AttributeClass, hideModuleNameAttribute)) 135if (Equals(attribute.AttributeConstructor, constructor) && 190if (Equals(attribute.AttributeConstructor, constructor))
src\Compilers\Core\Portable\InternalUtilities\DocumentationCommentXmlNames.cs (1)
64return object.Equals(left, right);
src\Compilers\Core\Portable\InternalUtilities\SpecializedCollections.Singleton.Collection`1.cs (1)
83if (Equals(_loneValue, item))
src\Dependencies\Collections\ImmutableSegmentedHashSet`1.cs (1)
308if (Equals(self.KeyComparer, equalityComparer))
src\Dependencies\Collections\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
45if (Equals(KeyComparer, value ?? EqualityComparer<T>.Default))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\IAssemblySymbolExtensions.cs (1)
63Equals(assembly, toAssembly) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\IMethodSymbolExtensions.cs (2)
24Debug.Assert(method.PartialImplementationPart == null && !Equals(method.PartialDefinitionPart, method)); 29Debug.Assert(!Equals(method.PartialImplementationPart, method));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamedTypeSymbolExtensions.cs (2)
257return implementation != null && Equals(implementation.ContainingType, classOrStructType); 276return implementation != null && Equals(implementation.ContainingType, classOrStructType);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (1)
726(Equals(iDisposableType, type) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.SubstituteTypesVisitor.cs (4)
60if (!Equals(mapped, symbol)) 81if (!Equals(updatedContainingType, symbol.ContainingType)) 98if (!Equals(mapped, symbol)) 115if (!Equals(mapped, symbol))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.cs (1)
46.FirstOrDefault(o => Equals((o as ILocalFunctionOperation)?.Symbol, localFunction));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFactsExtensions.cs (2)
51if (!Equals(semanticModel.GetTypeInfo(parentBinaryLeft).Type, 57if (!Equals(semanticModel.GetTypeInfo(parentBinaryLeft).ConvertedType,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (2)
418Contract.ThrowIfFalse(Equals(method, _methodSymbolStack[^1])); 434Contract.ThrowIfFalse(Equals(contextualSymbol, _contextualSymbolStack.Peek()));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (3)
1171if (!object.Equals(parameter2.ExplicitDefaultValue, parameter1.ExplicitDefaultValue)) 1176if (object.Equals(parameter1.ExplicitDefaultValue, 0.0)) 1178RoslynDebug.Assert(object.Equals(parameter2.ExplicitDefaultValue, 0.0));
Workspace\ProjectSystem\ProjectSystemProject.cs (1)
256if (object.Equals(field, newValue))
Workspace\Solution\SolutionCompilationState.cs (1)
129Equals(newFrozenSourceGeneratedDocumentStates, FrozenSourceGeneratedDocumentStates))
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (4)
src\Compilers\Core\Portable\InternalUtilities\DocumentationCommentXmlNames.cs (1)
64return object.Equals(left, right);
src\Compilers\Core\Portable\InternalUtilities\SpecializedCollections.Singleton.Collection`1.cs (1)
83if (Equals(_loneValue, item))
src\Dependencies\Collections\ImmutableSegmentedHashSet`1.cs (1)
308if (Equals(self.KeyComparer, equalityComparer))
src\Dependencies\Collections\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
45if (Equals(KeyComparer, value ?? EqualityComparer<T>.Default))
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
ObjectSerializationTests.cs (1)
114return object.Equals(value1, value2)
Microsoft.CommonLanguageServerProtocol.Framework.Package (1)
MethodHandlerDetails.cs (1)
170if (!Equals(types[i], parameters[i].ParameterType))
Microsoft.DotNet.Build.Tasks.Packaging (1)
GenerateNuSpec.cs (1)
283return Object.Equals(x, y) ||
Microsoft.DotNet.NuGetRepack.Tests (6)
TestHelpers\AssertEx.cs (6)
41return object.Equals(@object, default(T)); 53if (object.Equals(x, default(T))) 55return object.Equals(y, default(T)); 58if (object.Equals(y, default(T))) 105if (!Equals(enumeratorX.Current, enumeratorY.Current)) 112return object.Equals(x, y);
Microsoft.DotNet.SignTool.Tests (1)
FakeSignTool.cs (1)
33ByteSequenceComparer.Equals(buffer, _stamp) ? SigningStatus.Signed : SigningStatus.NotSigned;
Microsoft.DotNet.SourceBuild.Tasks (1)
src\UsageReport\Usage.cs (1)
100Equals(PackageIdentity, other.PackageIdentity) &&
Microsoft.Extensions.Caching.Hybrid.Tests (1)
TestEventListener.cs (1)
155if (!Equals(expected, actual))
Microsoft.Extensions.DependencyInjection.Abstractions (4)
Extensions\ServiceCollectionDescriptorExtensions.cs (3)
70&& object.Equals(collection[i].ServiceKey, descriptor.ServiceKey)) 477object.Equals(service.ServiceKey, descriptor.ServiceKey)) 535if (collection[i].ServiceType == descriptor.ServiceType && object.Equals(collection[i].ServiceKey, descriptor.ServiceKey))
Extensions\ServiceCollectionDescriptorExtensions.Keyed.cs (1)
404if (descriptor.ServiceType == serviceType && object.Equals(descriptor.ServiceKey, serviceKey))
Microsoft.Extensions.Diagnostics (2)
src\libraries\Common\src\System\Diagnostics\DiagnosticsHelper.cs (2)
61if (compareResult == 0 && object.Equals(pair.Value, pair1.Value)) 100if (compareResult == 0 && object.Equals(pair.Value, pair1.Value))
Microsoft.Extensions.Diagnostics.Testing (2)
Metrics\CollectedMeasurement.cs (1)
68if (!object.Equals(kvp.Value, value))
Metrics\MetricCollector.cs (1)
90Initialize(instrument => Equals(instrument.Meter.Scope, meterScope) && instrument.Meter.Name == meterName && instrument.Name == instrumentName);
Microsoft.Extensions.Http.Resilience.Tests (3)
artifacts\obj\Microsoft.Extensions.Http.Resilience.Tests\Debug\net8.0\Protos\Greet.cs (2)
119return Equals(_unknownFields, other._unknownFields); 312return Equals(_unknownFields, other._unknownFields);
Helpers\OptionsUtilities.cs (1)
40!Equals(propertyValue1, propertyValue2))
Microsoft.Extensions.Identity.Stores (1)
UserStoreBase.cs (1)
241if (object.Equals(id, default(TKey)))
Microsoft.Maui (2)
Extensions\EnumerableExtensions.cs (2)
83 if (Equals(element, item)) 121 if (Equals(element, item))
Microsoft.Maui.Controls (10)
AnimatableKey.cs (1)
111 return Equals(thisAnimatable, thatAnimatable);
BindableObject.cs (2)
138 var changed = !Equals(original.Value, newValue); 637 bool sameValue = ReferenceEquals(context.Property, BindingContextProperty) ? ReferenceEquals(value, original) : Equals(value, original);
BindingExpression.cs (1)
499 else if (object.Equals(elem, chainMember))
ListProxy.cs (1)
102 if (Equals(kvp.Value, item))
RadioButton\RadioButton.cs (2)
425 if (!IsChecked || selected == this || string.IsNullOrEmpty(GroupName) || GroupName != selected.GroupName || (Value is not null && object.Equals(Value, args.Value)) || !MatchesScope(args)) 435 if (IsChecked || string.IsNullOrEmpty(GroupName) || GroupName != args.GroupName || !object.Equals(Value, args.Value) || !MatchesScope(args))
RadioButton\RadioButtonGroupController.cs (1)
107 if (object.Equals(radioButton.Value, this.SelectedValue))
ScrollView\ScrollView.cs (1)
350 return Equals(element, this) || element.RealParent != null && CheckElementBelongsToScrollViewer(element.RealParent);
TypedBinding.cs (1)
394 else if (object.Equals(elem, chainMember))
Microsoft.Maui.Controls.BindingSourceGen (1)
EquatableArray.cs (1)
42 return obj is EquatableArray<T> array && Equals(this, array);
Microsoft.Maui.Controls.Maps (3)
Pin.cs (3)
130 return Equals(left, right); 141 return !Equals(left, right); 173 Equals(Location, other.Location) && Type == other.Type &&
Microsoft.Maui.Essentials (2)
Types\Location.shared.cs (2)
281 return Equals(left, right); 292 return !Equals(left, right);
Microsoft.Maui.Graphics (1)
Text\TextAttributesExtensions.cs (1)
148 if (Equals(value, defaultValue))
Microsoft.Maui.Maps (2)
Primitives\MapSpan.cs (2)
70 return Equals(left, right); 75 return !Equals(left, right);
Microsoft.ML.EntryPoints (1)
JsonUtils\JsonManifestUtils.cs (1)
505needValue = !Equals(actualValue, defaultValue);
Microsoft.ML.InternalCodeAnalyzer (7)
BaseTestClassAnalyzer.cs (2)
92if (Equals(current, _baseTestClass) || 93Equals(current, _ITbaseTestClass))
BestFriendAnalyzer.cs (3)
81if (Equals(symbolAssembly, myAssembly)) 99assemblyWantsBestFriends = symbolAssembly.GetAttributes().Any(a => Equals(a.AttributeClass, wantsToBeBestFriendsAttributeType)); 104if (symbol.GetAttributes().Any(a => Equals(a.AttributeClass, bestFriendAttributeType)))
BestFriendOnPublicDeclarationsAnalyzer.cs (1)
62var attribute = context.Symbol.GetAttributes().FirstOrDefault(a => Equals(a.AttributeClass, attributeType));
INamedTypeSymbolExtensions.cs (1)
26if (Equals(current, factAttribute))
Microsoft.ML.OnnxConverter (36)
OnnxMl.cs (36)
534if (!object.Equals(T, other.T)) return false; 535if (!object.Equals(G, other.G)) return false; 536if (!object.Equals(SparseTensor, other.SparseTensor)) return false; 543return Equals(_unknownFields, other._unknownFields); 1022if (!object.Equals(Type, other.Type)) return false; 1024return Equals(_unknownFields, other._unknownFields); 1342return Equals(_unknownFields, other._unknownFields); 1749if (!object.Equals(Graph, other.Graph)) return false; 1751return Equals(_unknownFields, other._unknownFields); 2067return Equals(_unknownFields, other._unknownFields); 2262return Equals(_unknownFields, other._unknownFields); 2572return Equals(_unknownFields, other._unknownFields); 3068if (!object.Equals(Segment, other.Segment)) return false; 3080return Equals(_unknownFields, other._unknownFields); 3515return Equals(_unknownFields, other._unknownFields); 3743if (!object.Equals(Values, other.Values)) return false; 3744if (!object.Equals(Indices, other.Indices)) return false; 3746return Equals(_unknownFields, other._unknownFields); 3951return Equals(_unknownFields, other._unknownFields); 4172return Equals(_unknownFields, other._unknownFields); 4503if (!object.Equals(TensorType, other.TensorType)) return false; 4504if (!object.Equals(SequenceType, other.SequenceType)) return false; 4505if (!object.Equals(MapType, other.MapType)) return false; 4506if (!object.Equals(SparseTensorType, other.SparseTensorType)) return false; 4507if (!object.Equals(OpaqueType, other.OpaqueType)) return false; 4510return Equals(_unknownFields, other._unknownFields); 4834if (!object.Equals(Shape, other.Shape)) return false; 4835return Equals(_unknownFields, other._unknownFields); 5025if (!object.Equals(ElemType, other.ElemType)) return false; 5026return Equals(_unknownFields, other._unknownFields); 5216if (!object.Equals(ValueType, other.ValueType)) return false; 5217return Equals(_unknownFields, other._unknownFields); 5420if (!object.Equals(Shape, other.Shape)) return false; 5421return Equals(_unknownFields, other._unknownFields); 5626return Equals(_unknownFields, other._unknownFields); 5837return Equals(_unknownFields, other._unknownFields);
Microsoft.ML.OnnxTransformer (36)
src\Microsoft.ML.OnnxConverter\OnnxMl.cs (36)
534if (!object.Equals(T, other.T)) return false; 535if (!object.Equals(G, other.G)) return false; 536if (!object.Equals(SparseTensor, other.SparseTensor)) return false; 543return Equals(_unknownFields, other._unknownFields); 1022if (!object.Equals(Type, other.Type)) return false; 1024return Equals(_unknownFields, other._unknownFields); 1342return Equals(_unknownFields, other._unknownFields); 1749if (!object.Equals(Graph, other.Graph)) return false; 1751return Equals(_unknownFields, other._unknownFields); 2067return Equals(_unknownFields, other._unknownFields); 2262return Equals(_unknownFields, other._unknownFields); 2572return Equals(_unknownFields, other._unknownFields); 3068if (!object.Equals(Segment, other.Segment)) return false; 3080return Equals(_unknownFields, other._unknownFields); 3515return Equals(_unknownFields, other._unknownFields); 3743if (!object.Equals(Values, other.Values)) return false; 3744if (!object.Equals(Indices, other.Indices)) return false; 3746return Equals(_unknownFields, other._unknownFields); 3951return Equals(_unknownFields, other._unknownFields); 4172return Equals(_unknownFields, other._unknownFields); 4503if (!object.Equals(TensorType, other.TensorType)) return false; 4504if (!object.Equals(SequenceType, other.SequenceType)) return false; 4505if (!object.Equals(MapType, other.MapType)) return false; 4506if (!object.Equals(SparseTensorType, other.SparseTensorType)) return false; 4507if (!object.Equals(OpaqueType, other.OpaqueType)) return false; 4510return Equals(_unknownFields, other._unknownFields); 4834if (!object.Equals(Shape, other.Shape)) return false; 4835return Equals(_unknownFields, other._unknownFields); 5025if (!object.Equals(ElemType, other.ElemType)) return false; 5026return Equals(_unknownFields, other._unknownFields); 5216if (!object.Equals(ValueType, other.ValueType)) return false; 5217return Equals(_unknownFields, other._unknownFields); 5420if (!object.Equals(Shape, other.Shape)) return false; 5421return Equals(_unknownFields, other._unknownFields); 5626return Equals(_unknownFields, other._unknownFields); 5837return Equals(_unknownFields, other._unknownFields);
Microsoft.ML.TimeSeries (6)
RootCauseAnalyzer.cs (4)
81if (object.Equals(aggSymbol, entry.Value)) 726if (!bigDictionary.ContainsKey(item.Key) || !object.Equals(bigDictionary[item.Key], smallDictionary[item.Key])) 737return object.Equals(val, aggSymbol); 830if (!object.Equals(pair.Value, y[pair.Key]))
RootCauseLocalizationType.cs (2)
158if (!object.Equals(other.Dimension[item.Key], item.Value)) 231if (!object.Equals(other.Dimension[item.Key], item.Value))
Microsoft.ML.Tokenizers (15)
SentencepieceModel.cs (15)
1655if (!Equals(_extensions, other._extensions)) { 1658return Equals(_unknownFields, other._unknownFields); 3102if (!Equals(_extensions, other._extensions)) { 3105return Equals(_unknownFields, other._unknownFields); 3454if (!Equals(_extensions, other._extensions)) { 3457return Equals(_unknownFields, other._unknownFields); 3721return Equals(_unknownFields, other._unknownFields); 4014if (!object.Equals(TrainerSpec, other.TrainerSpec)) return false; 4015if (!object.Equals(NormalizerSpec, other.NormalizerSpec)) return false; 4016if (!object.Equals(SelfTestData, other.SelfTestData)) return false; 4017if (!object.Equals(DenormalizerSpec, other.DenormalizerSpec)) return false; 4018if (!Equals(_extensions, other._extensions)) { 4021return Equals(_unknownFields, other._unknownFields); 4451if (!Equals(_extensions, other._extensions)) { 4454return Equals(_unknownFields, other._unknownFields);
Microsoft.ML.Transforms (1)
MissingValueReplacingUtils.cs (1)
480if (Equals(count, (ulong)_cna))
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\Collection.vb (1)
471Return Object.Equals(obj1, obj2)
Microsoft.VisualStudio.LanguageServices (4)
Options\PackageSettingsPersister.cs (1)
82if (!Equals(optionKey.Option, SolutionCrawlerOptionsStorage.SolutionBackgroundAnalysisScopeOption))
Progression\GraphNodeIdCreation.cs (3)
156if (namedType.ContainingType == null && Equals(namedType.ConstructedFrom, namedType) && namedType.Arity == 0) 187var hasGenericArguments = (!Equals(namedType.ConstructedFrom, namedType) || isInGenericArguments) && namedType.TypeArguments != null && namedType.TypeArguments.Any(); 383if (Equals(typeSymbol, underlyingType))
Microsoft.VisualStudio.LanguageServices.CSharp (1)
ProjectSystemShim\CSharpProjectShim.OptionsProcessor.cs (1)
43if (object.Equals(_options[(int)compilerOption], value))
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
CodeModel\VisualBasicCodeModelService.vb (1)
4153If CaseInsensitiveComparison.Equals(eventName, handledEventName) Then
MSBuild (2)
CollectionHelpers.cs (1)
72if (!Equals(aKvp.Value, bValue))
XMake.cs (1)
1948&& !Equals(CultureInfo.InvariantCulture, thisThread.CurrentUICulture))
MSBuildTaskHost (1)
Immutable\ImmutableDictionary.cs (1)
132if (TryGetValue(key, out V existingValue) && Object.Equals(existingValue, value))
MyFrontend (11)
artifacts\obj\MyFrontend\Debug\net8.0\Basket.cs (11)
141return Equals(_unknownFields, other._unknownFields); 352return Equals(_unknownFields, other._unknownFields); 576return Equals(_unknownFields, other._unknownFields); 840if (!object.Equals(UnitPrice, other.UnitPrice)) return false; 841if (!object.Equals(OldUnitPrice, other.OldUnitPrice)) return false; 843return Equals(_unknownFields, other._unknownFields); 1151return Equals(_unknownFields, other._unknownFields); 1335return Equals(_unknownFields, other._unknownFields); 1510return Equals(_unknownFields, other._unknownFields); 1694return Equals(_unknownFields, other._unknownFields); 1894return Equals(_unknownFields, other._unknownFields);
PresentationCore (1)
MS\Internal\Span.cs (1)
442static private Equals _equals = new Equals(Object.Equals);
PresentationFramework (41)
MS\Internal\Data\BindingWorker.cs (1)
128internal void SetValue(Feature id, object value, object defaultValue) { if (Object.Equals(value, defaultValue)) _values.ClearValue((int)id); else _values.SetValue((int)id, value); }
MS\Internal\Data\CollectionViewGroupRoot.cs (1)
255if (Object.Equals(name, child.Group.Name))
MS\Internal\Data\IndexedEnumerable.cs (1)
106if (object.Equals(_enumerator.Current, item))
MS\Internal\Data\PropertyPathWorker.cs (2)
1254if (!Object.Equals(info, svs.info)) 1269if (!Object.Equals(args[i], svs.args[i]))
MS\Internal\Data\ValueTable.cs (3)
249if (Object.Equals(item, key.Item)) 342Object.Equals(item, that.Item) && 343Object.Equals(descriptor, that.PropertyDescriptor);
MS\Internal\WeakDictionary.cs (1)
283if (object.Equals(_hashTable[item.Key], item.Value))
MS\Internal\WeakObjectHashtable.cs (1)
178return object.Equals(x, y);
System\Windows\Automation\Peers\ItemAutomationPeer.cs (1)
694System.Diagnostics.Debug.Assert(Object.Equals(item, Item), "ItemPeer reuse for an unequal item is not supported");
System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (2)
593if (Object.Equals(item, pair.Key)) 653if (Object.Equals(item, pair.Key))
System\Windows\Controls\ItemsControl.cs (5)
2253if ((object.Equals(startingItem, firstItem) || 2254object.Equals(startingElement, firstElement)) && 3522return Object.Equals(o1, o2); 3881return Object.Equals(info1, info2); 3886return !Object.Equals(info1, info2);
System\Windows\Controls\Primitives\Selector.cs (3)
641return Object.Equals(tempValue, itemValue); 1131!Object.Equals(SelectedValue, InternalSelectedValue)) 1753if (!Object.Equals(SelectedValue, desiredSelectedValue))
System\Windows\Controls\TextBox.cs (1)
1585if (Object.Equals(_newTextValue, newText))
System\Windows\Controls\Validation.cs (1)
197if (!Object.Equals(oldValue, value))
System\Windows\Controls\ValidationResult.cs (2)
70return Object.Equals(left, right); 81return !Object.Equals(left, right);
System\Windows\Controls\VirtualizingStackPanel.cs (2)
8038result = !Object.Equals(oldValue, value); 12176if (Object.Equals(parentItem, oldsti.ParentItem))
System\Windows\Data\BindingBase.cs (1)
533internal void SetValue(Feature id, object value, object defaultValue) { if (Object.Equals(value, defaultValue)) _values.ClearValue((int)id); else _values.SetValue((int)id, value); }
System\Windows\Data\BindingExpressionBase.cs (1)
2964internal void SetValue(Feature id, object value, object defaultValue) { if (Object.Equals(value, defaultValue)) _values.ClearValue((int)id); else _values.SetValue((int)id, value); }
System\Windows\Data\PropertyGroupDescription.cs (1)
237return Object.Equals(groupName, itemName);
System\Windows\Diagnostics\ResourceDictionaryDiagnostics.cs (2)
370if (!Object.Equals(result.Requester.ResourceKey, key)) 417Debug.Assert(Object.Equals(result.Requester, requester), "Reverting a request for the wrong requester");
System\Windows\Documents\DocumentReference.cs (1)
144if (!object.Equals(e.OldValue, e.NewValue))
System\Windows\Documents\TextRangeEdit.cs (2)
819if (!Object.Equals(currentValue, value)) 899if (!Object.Equals(currentValue, newValue))
System\Windows\ResourceDictionary.cs (2)
989if (!Object.Equals(_baseDictionary[key], value)) 1796if (deferredResourceReference != null && (resourceKey == null || Object.Equals(resourceKey, deferredResourceReference.Key)))
System\Windows\ResourcesChangeInfo.cs (1)
238if (Object.Equals(_key, key))
System\Windows\StyleHelper.cs (2)
5865return Object.Equals(state, referenceValue); 5869return !Object.Equals(state, referenceValue);
System\Windows\TemplateKey.cs (1)
110Object.Equals(_dataType, key._dataType);
PresentationUI (1)
MS\Internal\Documents\RightsManagementManager.cs (1)
1123if (!Uri.Equals(
ReachFramework (8)
AlphaFlattener\SegmentTree.cs (4)
155if (! Double.Equals(values[i].value, val)) 172if (! Double.Equals(values[i].value, newvalues[last].value)) 239bool left = Double.Equals(c.value, dl[c.index].Left); 293if (Double.Equals(c.value, dl[c.index].Left))
PrintConfig\PrintSchemaShim.cs (1)
1162if (object.Equals(pair.Value, value))
PrintConfig\PTManager.cs (1)
140object.Equals(this.ConflictStatus, other.ConflictStatus)
Serialization\Manager\MetroSerializationManager.cs (1)
1052canSerializeValue = !object.Equals(propertyCache.DefaultValueAttr.Value,
Serialization\Manager\ReachSerializationCacheItems.cs (1)
573canSerializeValue = !object.Equals(propertyCache.DefaultValueAttr.Value,
Sandbox (14)
artifacts\obj\Sandbox\Release\net10.0\Greet.cs (4)
121return Equals(_unknownFields, other._unknownFields); 325return Equals(_unknownFields, other._unknownFields); 551if (!object.Equals(Nested, other.Nested)) return false; 552return Equals(_unknownFields, other._unknownFields);
artifacts\obj\Sandbox\Release\net10.0\Transcoding.cs (10)
260if (!object.Equals(Sub, other.Sub)) return false; 261if (!object.Equals(Data, other.Data)) return false; 262if (!object.Equals(Wrappers, other.Wrappers)) return false; 264return Equals(_unknownFields, other._unknownFields); 579return Equals(_unknownFields, other._unknownFields); 1005if (!object.Equals(SingleMessage, other.SingleMessage)) return false; 1006return Equals(_unknownFields, other._unknownFields); 1587return Equals(_unknownFields, other._unknownFields); 1912return Equals(_unknownFields, other._unknownFields); 2372return Equals(_unknownFields, other._unknownFields);
SocialWeather (1)
Protobuf\WeatherReport.cs (1)
158return Equals(_unknownFields, other._unknownFields);
Stress.TelemetryService (63)
artifacts\obj\Stress.TelemetryService\Debug\net8.0\opentelemetry\proto\collector\logs\v1\LogsService.cs (4)
135return Equals(_unknownFields, other._unknownFields); 339if (!object.Equals(PartialSuccess, other.PartialSuccess)) return false; 340return Equals(_unknownFields, other._unknownFields); 576return Equals(_unknownFields, other._unknownFields);
artifacts\obj\Stress.TelemetryService\Debug\net8.0\opentelemetry\proto\collector\metrics\v1\MetricsService.cs (4)
137return Equals(_unknownFields, other._unknownFields); 341if (!object.Equals(PartialSuccess, other.PartialSuccess)) return false; 342return Equals(_unknownFields, other._unknownFields); 578return Equals(_unknownFields, other._unknownFields);
artifacts\obj\Stress.TelemetryService\Debug\net8.0\opentelemetry\proto\collector\trace\v1\TraceService.cs (4)
136return Equals(_unknownFields, other._unknownFields); 340if (!object.Equals(PartialSuccess, other.PartialSuccess)) return false; 341return Equals(_unknownFields, other._unknownFields); 577return Equals(_unknownFields, other._unknownFields);
artifacts\obj\Stress.TelemetryService\Debug\net8.0\opentelemetry\proto\common\v1\Common.cs (8)
332if (!object.Equals(ArrayValue, other.ArrayValue)) return false; 333if (!object.Equals(KvlistValue, other.KvlistValue)) return false; 336return Equals(_unknownFields, other._unknownFields); 708return Equals(_unknownFields, other._unknownFields); 908return Equals(_unknownFields, other._unknownFields); 1113if (!object.Equals(Value, other.Value)) return false; 1114return Equals(_unknownFields, other._unknownFields); 1397return Equals(_unknownFields, other._unknownFields);
artifacts\obj\Stress.TelemetryService\Debug\net8.0\opentelemetry\proto\logs\v1\Logs.cs (7)
229return Equals(_unknownFields, other._unknownFields); 455if (!object.Equals(Resource, other.Resource)) return false; 458return Equals(_unknownFields, other._unknownFields); 739if (!object.Equals(Scope, other.Scope)) return false; 742return Equals(_unknownFields, other._unknownFields); 1182if (!object.Equals(Body, other.Body)) return false; 1188return Equals(_unknownFields, other._unknownFields);
artifacts\obj\Stress.TelemetryService\Debug\net8.0\opentelemetry\proto\metrics\v1\Metrics.cs (25)
329return Equals(_unknownFields, other._unknownFields); 555if (!object.Equals(Resource, other.Resource)) return false; 558return Equals(_unknownFields, other._unknownFields); 839if (!object.Equals(Scope, other.Scope)) return false; 842return Equals(_unknownFields, other._unknownFields); 1311if (!object.Equals(Gauge, other.Gauge)) return false; 1312if (!object.Equals(Sum, other.Sum)) return false; 1313if (!object.Equals(Histogram, other.Histogram)) return false; 1314if (!object.Equals(ExponentialHistogram, other.ExponentialHistogram)) return false; 1315if (!object.Equals(Summary, other.Summary)) return false; 1317return Equals(_unknownFields, other._unknownFields); 1755return Equals(_unknownFields, other._unknownFields); 1981return Equals(_unknownFields, other._unknownFields); 2236return Equals(_unknownFields, other._unknownFields); 2468return Equals(_unknownFields, other._unknownFields); 2686return Equals(_unknownFields, other._unknownFields); 3044return Equals(_unknownFields, other._unknownFields); 3631return Equals(_unknownFields, other._unknownFields); 4338if (!object.Equals(Positive, other.Positive)) return false; 4339if (!object.Equals(Negative, other.Negative)) return false; 4345return Equals(_unknownFields, other._unknownFields); 4876return Equals(_unknownFields, other._unknownFields); 5220return Equals(_unknownFields, other._unknownFields); 5572return Equals(_unknownFields, other._unknownFields); 5951return Equals(_unknownFields, other._unknownFields);
artifacts\obj\Stress.TelemetryService\Debug\net8.0\opentelemetry\proto\resource\v1\Resource.cs (1)
144return Equals(_unknownFields, other._unknownFields);
artifacts\obj\Stress.TelemetryService\Debug\net8.0\opentelemetry\proto\trace\v1\Trace.cs (10)
175return Equals(_unknownFields, other._unknownFields); 401if (!object.Equals(Resource, other.Resource)) return false; 404return Equals(_unknownFields, other._unknownFields); 685if (!object.Equals(Scope, other.Scope)) return false; 688return Equals(_unknownFields, other._unknownFields); 1225if (!object.Equals(Status, other.Status)) return false; 1226return Equals(_unknownFields, other._unknownFields); 1828return Equals(_unknownFields, other._unknownFields); 2165return Equals(_unknownFields, other._unknownFields); 2474return Equals(_unknownFields, other._unknownFields);
System.Collections.Specialized (2)
System\Collections\Specialized\OrderedDictionary.cs (2)
591if (object.Equals(((DictionaryEntry)o).Value, value)) 619else if (object.Equals(((DictionaryEntry)_objects[i]!).Value, value))
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\CompareAttribute.cs (1)
49if (!Equals(value, otherPropertyValue))
System.ComponentModel.Composition (1)
System\ComponentModel\Composition\ReflectionModel\LazyMemberInfo.cs (1)
126return object.Equals(_accessorsCreator, other._accessorsCreator);
System.ComponentModel.TypeConverter (4)
System\ComponentModel\ReflectPropertyDescriptor.cs (4)
530return !Equals(ExtenderGetValue(provider, component), _defaultValue); 694return !Equals(DefaultValue, ExtenderGetValue(prov, component)); 718return !Equals(GetValue(component), DefaultValue); 1194return !Equals(DefaultValue, GetValue(component));
System.Configuration.ConfigurationManager (10)
System\Configuration\ConfigurationElement.cs (5)
686if (!Equals(thisValue, otherValue)) 689if (!((IsNullOrNullProperty(thisValue) && Equals(otherValue, configProperty.DefaultValue)) 690|| (IsNullOrNullProperty(otherValue) && Equals(thisValue, configProperty.DefaultValue)))) 968if (!Equals(value, value2) || prop.IsRequired) 979((parentElement == null) && inherited && !Equals(value, value2)))
System\Configuration\ConfigurationElementCollection.cs (3)
223if (!Equals(thisEntry.Value, compareEntry.Value)) continue; 407if (Equals(entry.GetKey(this), parentEntry.GetKey(this))) 423if (!Equals(entry.Value, parentEntry.Value)) continue;
System\Configuration\SettingElement.cs (1)
48return (element != null && base.Equals(settings) && Equals(element.Value, Value));
System\Configuration\SettingValueElement.cs (1)
40return (u != null && Equals(u.ValueXml, ValueXml));
System.Diagnostics.DiagnosticSource (2)
src\libraries\Common\src\System\Diagnostics\DiagnosticsHelper.cs (2)
61if (compareResult == 0 && object.Equals(pair.Value, pair1.Value)) 100if (compareResult == 0 && object.Equals(pair.Value, pair1.Value))
System.Linq.Expressions (4)
System\Dynamic\ExpandoObject.cs (3)
218if (deleteValue != Uninitialized && !object.Equals(oldValue, deleteValue)) 538if (object.Equals(data[i], item)) 710return object.Equals(value, item.Value);
System\Linq\Expressions\Interpreter\LightCompiler.cs (1)
1591if (object.Equals(node.Comparison, equality))
System.Memory (1)
System\SequencePosition.cs (1)
43public bool Equals(SequencePosition other) => _integer == other._integer && object.Equals(this._object, other._object);
System.Net.Http (2)
src\libraries\Common\src\System\Net\Security\SslClientAuthenticationOptionsExtensions.cs (2)
59Debug.Assert(Equals(e1.Current, e2.Current), $"{pi.Name}. Cloned enumerator's values don't match."); 75Debug.Assert(Equals(origValue, cloneValue), $"{pi.Name}. Expected: {origValue}, Actual: {cloneValue}");
System.Net.Mail (1)
src\libraries\Common\src\System\Net\ContextAwareResult.cs (1)
44if (!object.Equals(_savedCallback, callback))
System.Net.Requests (1)
src\libraries\Common\src\System\Net\ContextAwareResult.cs (1)
44if (!object.Equals(_savedCallback, callback))
System.Net.Sockets (3)
System\Net\Sockets\Socket.Unix.cs (1)
304Debug.Assert(Equals(origValue, cloneValue), $"{pi.Name}. Expected: {origValue}, Actual: {cloneValue}");
System\Net\Sockets\UdpReceiveResult.cs (2)
76return object.Equals(_buffer, other._buffer) && object.Equals(_remoteEndPoint, other._remoteEndPoint);
System.Private.CoreLib (54)
src\libraries\System.Private.CoreLib\src\System\ApplicationId.cs (4)
73Equals(Name, other.Name) && 74Equals(Version, other.Version) && 75Equals(ProcessorArchitecture, other.ProcessorArchitecture) && 76Equals(Culture, other.Culture) &&
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\ReferenceEqualityComparer.cs (1)
41/// It is not necessarily equivalent to calling <see cref="object.Equals(object?, object?)"/>.
src\libraries\System.Private.CoreLib\src\System\Globalization\Ordinal.cs (4)
470Vector256<ushort> cmpCh2 = Vector256.Equals(ch2, Vector256.BitwiseOr(Vector256.LoadUnsafe(ref searchSpace, (nuint)(offset + ch1ch2Distance)), Vector256.Create((ushort)0x20))); 471Vector256<ushort> cmpCh1 = Vector256.Equals(ch1, Vector256.BitwiseOr(Vector256.LoadUnsafe(ref searchSpace, (nuint)offset), Vector256.Create((ushort)0x20))); 536Vector128<ushort> cmpCh2 = Vector128.Equals(ch2, Vector128.BitwiseOr(Vector128.LoadUnsafe(ref searchSpace, (nuint)(offset + ch1ch2Distance)), Vector128.Create((ushort)0x20))); 537Vector128<ushort> cmpCh1 = Vector128.Equals(ch1, Vector128.BitwiseOr(Vector128.LoadUnsafe(ref searchSpace, (nuint)offset), Vector128.Create((ushort)0x20)));
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector256_1.cs (2)
399Vector256<T> result = Vector256.Equals(this, other) | ~(Vector256.Equals(this, this) | Vector256.Equals(other, other));
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector512_1.cs (2)
399Vector512<T> result = Vector512.Equals(this, other) | ~(Vector512.Equals(this, this) | Vector512.Equals(other, other));
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\SingleStringSearchValuesThreeChars.cs (3)
261Vector128<ushort> cmpCh1 = Vector128.Equals(ch1, Vector128.LoadUnsafe(ref searchSpace)); 289Vector256<ushort> cmpCh1 = Vector256.Equals(ch1, Vector256.LoadUnsafe(ref searchSpace)); 312Vector512<ushort> cmpCh1 = Vector512.Equals(ch1, Vector512.LoadUnsafe(ref searchSpace));
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.Byte.cs (12)
87Vector512<byte> cmpCh2 = Vector512.Equals(ch2, Vector512.LoadUnsafe(ref searchSpace, (nuint)(offset + ch1ch2Distance))); 88Vector512<byte> cmpCh1 = Vector512.Equals(ch1, Vector512.LoadUnsafe(ref searchSpace, (nuint)offset)); 148Vector256<byte> cmpCh2 = Vector256.Equals(ch2, Vector256.LoadUnsafe(ref searchSpace, (nuint)(offset + ch1ch2Distance))); 149Vector256<byte> cmpCh1 = Vector256.Equals(ch1, Vector256.LoadUnsafe(ref searchSpace, (nuint)offset)); 209Vector128<byte> cmpCh2 = Vector128.Equals(ch2, Vector128.LoadUnsafe(ref searchSpace, (nuint)(offset + ch1ch2Distance))); 210Vector128<byte> cmpCh1 = Vector128.Equals(ch1, Vector128.LoadUnsafe(ref searchSpace, (nuint)offset)); 314Vector512<byte> cmpCh1 = Vector512.Equals(ch1, Vector512.LoadUnsafe(ref searchSpace, (nuint)offset)); 315Vector512<byte> cmpCh2 = Vector512.Equals(ch2, Vector512.LoadUnsafe(ref searchSpace, (nuint)(offset + ch1ch2Distance))); 361Vector256<byte> cmpCh1 = Vector256.Equals(ch1, Vector256.LoadUnsafe(ref searchSpace, (nuint)offset)); 362Vector256<byte> cmpCh2 = Vector256.Equals(ch2, Vector256.LoadUnsafe(ref searchSpace, (nuint)(offset + ch1ch2Distance))); 409Vector128<byte> cmpCh1 = Vector128.Equals(ch1, Vector128.LoadUnsafe(ref searchSpace, (nuint)offset)); 410Vector128<byte> cmpCh2 = Vector128.Equals(ch2, Vector128.LoadUnsafe(ref searchSpace, (nuint)(offset + ch1ch2Distance)));
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.Char.cs (12)
91Vector512<ushort> cmpCh2 = Vector512.Equals(ch2, Vector512.LoadUnsafe(ref searchSpace, (nuint)(offset + ch1ch2Distance))); 92Vector512<ushort> cmpCh1 = Vector512.Equals(ch1, Vector512.LoadUnsafe(ref searchSpace, (nuint)offset)); 158Vector256<ushort> cmpCh2 = Vector256.Equals(ch2, Vector256.LoadUnsafe(ref searchSpace, (nuint)(offset + ch1ch2Distance))); 159Vector256<ushort> cmpCh1 = Vector256.Equals(ch1, Vector256.LoadUnsafe(ref searchSpace, (nuint)offset)); 220Vector128<ushort> cmpCh2 = Vector128.Equals(ch2, Vector128.LoadUnsafe(ref searchSpace, (nuint)(offset + ch1ch2Distance))); 221Vector128<ushort> cmpCh1 = Vector128.Equals(ch1, Vector128.LoadUnsafe(ref searchSpace, (nuint)offset)); 330Vector512<ushort> cmpCh1 = Vector512.Equals(ch1, Vector512.LoadUnsafe(ref searchSpace, (nuint)offset)); 331Vector512<ushort> cmpCh2 = Vector512.Equals(ch2, Vector512.LoadUnsafe(ref searchSpace, (nuint)(offset + ch1ch2Distance))); 380Vector256<ushort> cmpCh1 = Vector256.Equals(ch1, Vector256.LoadUnsafe(ref searchSpace, (nuint)offset)); 381Vector256<ushort> cmpCh2 = Vector256.Equals(ch2, Vector256.LoadUnsafe(ref searchSpace, (nuint)(offset + ch1ch2Distance))); 429Vector128<ushort> cmpCh1 = Vector128.Equals(ch1, Vector128.LoadUnsafe(ref searchSpace, (nuint)offset)); 430Vector128<ushort> cmpCh2 = Vector128.Equals(ch2, Vector128.LoadUnsafe(ref searchSpace, (nuint)(offset + ch1ch2Distance)));
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.T.cs (14)
1406equals = Vector256.Equals(values, Vector256.LoadUnsafe(ref currentSearchSpace)); 1420equals = Vector256.Equals(values, Vector256.LoadUnsafe(ref oneVectorAwayFromEnd)); 1436equals = Vector128.Equals(values, Vector128.LoadUnsafe(ref currentSearchSpace)); 1450equals = Vector128.Equals(values, Vector128.LoadUnsafe(ref oneVectorAwayFromEnd)); 1597equals = TNegator.NegateIfNeeded(Vector256.Equals(values, Vector256.LoadUnsafe(ref currentSearchSpace))); 1611equals = TNegator.NegateIfNeeded(Vector256.Equals(values, Vector256.LoadUnsafe(ref oneVectorAwayFromEnd))); 1627equals = TNegator.NegateIfNeeded(Vector128.Equals(values, Vector128.LoadUnsafe(ref currentSearchSpace))); 1641equals = TNegator.NegateIfNeeded(Vector128.Equals(values, Vector128.LoadUnsafe(ref oneVectorAwayFromEnd))); 3789count += BitOperations.PopCount(Vector512.Equals(Vector512.LoadUnsafe(ref current), targetVector).ExtractMostSignificantBits()); 3794ulong mask = Vector512.Equals(Vector512.LoadUnsafe(ref oneVectorAwayFromEnd), targetVector).ExtractMostSignificantBits(); 3804count += BitOperations.PopCount(Vector256.Equals(Vector256.LoadUnsafe(ref current), targetVector).ExtractMostSignificantBits()); 3809uint mask = Vector256.Equals(Vector256.LoadUnsafe(ref oneVectorAwayFromEnd), targetVector).ExtractMostSignificantBits(); 3819count += BitOperations.PopCount(Vector128.Equals(Vector128.LoadUnsafe(ref current), targetVector).ExtractMostSignificantBits()); 3824uint mask = Vector128.Equals(Vector128.LoadUnsafe(ref oneVectorAwayFromEnd), targetVector).ExtractMostSignificantBits();
System.Private.DataContractSerialization (1)
System\Xml\XmlBaseReader.cs (1)
2828if (Equals(prefix, _namespaces[j].Prefix))
System.Private.Windows.Core (1)
System\Collections\Specialized\CompatibleIComparer.cs (1)
38return object.Equals(x, y);
System.Private.Xml (1)
System\Xml\Xsl\Runtime\XmlCollation.cs (1)
355object.Equals(_cultInfo, that._cultInfo);
System.Windows.Controls.Ribbon (4)
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroup.cs (1)
461if (tab != null && tab.IsContextualTab && Object.Equals(tab.ContextualTabGroupHeader, Header))
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroupItemsControl.cs (1)
254if (tabGroup != null && Object.Equals(tabGroup.Header, content))
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (1)
1522return Object.Equals(knownValue, itemValue);
Microsoft\Windows\Controls\Ribbon\RibbonQuickAccessToolBar.cs (1)
515if (object.Equals(currentID, targetID))
System.Windows.Forms (20)
System\Windows\Forms\Control.cs (4)
738if (Equals(value, DataContext)) 745if (Properties.ContainsKey(s_dataContextProperty) && Equals(ParentInternal?.DataContext, value)) 1812if (Equals(previous, value)) 6938if (Equals(Properties.GetValueOrDefault<object>(s_dataContextProperty), Parent?.DataContext))
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
235if (!Equals(_commandParameter, value))
System\Windows\Forms\Controls\DataGridView\DataGridViewBand.cs (1)
330if (DataGridView is not null && !Equals(priorValue, value))
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (1)
643if (DataGridView is not null && !Equals(dataGridViewCellStyle, value))
System\Windows\Forms\Controls\DataGridView\DataGridViewCellStyle.cs (2)
132&& Equals(oldValue, value)) 248if (Equals(originalValue, value))
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.cs (1)
443return !Equals(Font, ToolStripManager.DefaultFont);
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
455if (!Equals(_commandParameter, value))
System\Windows\Forms\DataBinding\BindableComponent.cs (1)
33if (!Equals(_bindingContext, value))
System\Windows\Forms\DataBinding\Binding.cs (4)
350if (!Equals(_nullValue, value)) 370if (!Equals(_dsNullValue, value)) 684if (!Equals(value, newValue)) 907if (force || !FormattingEnabled || !Equals(formattedObject, value))
System\Windows\Forms\DataBinding\ICommandBindingTargetProvider.cs (1)
93if (!Equals(commandBackingField, newCommand))
System\Windows\Forms\Dialogs\TaskDialog\TaskDialogButton.cs (1)
306return Equals(b1, b2);
System\Windows\Forms\Internal\Formatter.cs (2)
413return Equals(value, formattedNullValue); 496Equals(value, NullData(value.GetType(), dataSourceNullValue));
System.Windows.Forms.Design (20)
System\ComponentModel\Design\ComponentDesigner.cs (1)
420if (Equals(prop.Attributes[typeof(DesignOnlyAttribute)], DesignOnlyAttribute.Yes))
System\ComponentModel\Design\ComponentDesigner.ShadowPropertyCollection.cs (1)
82return !Equals(this[propertyName], defaultValue);
System\ComponentModel\Design\DesignerActionPanel.PropertyLine.cs (1)
70if (!Equals(Value, newValue))
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (2)
198if (Equals(Value, standardValues[i])) 228if (Equals(Value, standardValues[i]))
System\ComponentModel\Design\InheritedPropertyDescriptor.cs (3)
117public override bool IsReadOnly => _propertyDescriptor.IsReadOnly || Equals(Attributes[typeof(ReadOnlyAttribute)], ReadOnlyAttribute.Yes); 148return !Equals(GetValue(component), _defaultValue); 288return !Equals(GetValue(component), _defaultValue);
System\Windows\Forms\Design\CommandSet.cs (9)
742if (Equals(cmd, MenuCommands.KeyMoveUp)) 746else if (Equals(cmd, MenuCommands.KeyMoveDown)) 750else if (Equals(cmd, MenuCommands.KeyMoveLeft)) 754else if (Equals(cmd, MenuCommands.KeyMoveRight)) 758else if (Equals(cmd, MenuCommands.KeyNudgeUp)) 763else if (Equals(cmd, MenuCommands.KeyNudgeDown)) 768else if (Equals(cmd, MenuCommands.KeyNudgeLeft)) 773else if (Equals(cmd, MenuCommands.KeyNudgeRight)) 2927if (!Equals(TypeDescriptor.GetAttributes(obj)[typeof(InheritanceAttribute)], InheritanceAttribute.NotInherited))
System\Windows\Forms\Design\TabOrder.cs (3)
682if (Equals(_commands[i].CommandID, cmd.CommandID)) 701if (Equals(_commands[i].CommandID, cmd.CommandID)) 712if (!Equals(cmd.CommandID, StandardCommands.TabOrder))
System.Windows.Forms.Design.Tests (3)
System\Windows\Forms\Design\MaskDescriptorComparerTests.cs (3)
80bool result = MaskDescriptorComparer.Equals(maskDescriptorA, maskDescriptorB); 85bool resultSameInstance = MaskDescriptorComparer.Equals(maskDescriptorA, maskDescriptorA); 93bool resultDifferentInstances = MaskDescriptorComparer.Equals(maskDescriptorC, maskDescriptorD);
System.Windows.Forms.Tests (1)
System\Windows\Forms\Mocks\DataBinding\ViewModelBase.cs (1)
40if (Equals(storage, value))
System.Xaml (2)
System\Xaml\XamlObjectReader.cs (2)
929return !Equals(defaultValue, actualValue); 2095return Equals(valueInfo.XamlNode.Value, string.Empty);
UIAutomationClientSideProviders (2)
MS\Internal\AutomationProxies\WindowsRichEditRange.cs (2)
393if (object.Equals(v1, v2)) 439return object.Equals(v1, (int)v2);
xunit.assert (14)
CollectionAsserts.cs (1)
652 GetSingleResult(collection.Cast<object>(), item => object.Equals(item, expected), ArgumentFormatter.Format(expected));
EqualityAsserts.cs (12)
349 if (!object.Equals(expectedRounded, actualRounded)) 375 if (!object.Equals(expectedRounded, actualRounded)) 398 if (!(object.Equals(expected, actual) || Math.Abs(expected - actual) <= tolerance)) 421 if (!object.Equals(expectedRounded, actualRounded)) 447 if (!object.Equals(expectedRounded, actualRounded)) 470 if (!(object.Equals(expected, actual) || Math.Abs(expected - actual) <= tolerance)) 830 if (object.Equals(expectedRounded, actualRounded)) 856 if (object.Equals(expectedRounded, actualRounded)) 879 if (object.Equals(expected, actual) || Math.Abs(expected - actual) <= tolerance) 902 if (object.Equals(expectedRounded, actualRounded)) 928 if (object.Equals(expectedRounded, actualRounded)) 951 if (object.Equals(expected, actual) || Math.Abs(expected - actual) <= tolerance)
Sdk\AssertEqualityComparer.cs (1)
374 return object.Equals(x, y);