2635 references to ReferenceEquals
Accessibility_Core_App (1)
Properties\Resources.Designer.cs (1)
41if (object.ReferenceEquals(resourceMan, null)) {
Aspire.Dashboard (139)
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\collector\logs\v1\LogsService.cs (6)
128if (ReferenceEquals(other, null)) { 131if (ReferenceEquals(other, this)) { 333if (ReferenceEquals(other, null)) { 336if (ReferenceEquals(other, this)) { 568if (ReferenceEquals(other, null)) { 571if (ReferenceEquals(other, this)) {
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\collector\metrics\v1\MetricsService.cs (6)
130if (ReferenceEquals(other, null)) { 133if (ReferenceEquals(other, this)) { 335if (ReferenceEquals(other, null)) { 338if (ReferenceEquals(other, this)) { 570if (ReferenceEquals(other, null)) { 573if (ReferenceEquals(other, this)) {
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\collector\trace\v1\TraceService.cs (6)
129if (ReferenceEquals(other, null)) { 132if (ReferenceEquals(other, this)) { 334if (ReferenceEquals(other, null)) { 337if (ReferenceEquals(other, this)) { 569if (ReferenceEquals(other, null)) { 572if (ReferenceEquals(other, this)) {
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\common\v1\Common.cs (10)
322if (ReferenceEquals(other, null)) { 325if (ReferenceEquals(other, this)) { 701if (ReferenceEquals(other, null)) { 704if (ReferenceEquals(other, this)) { 901if (ReferenceEquals(other, null)) { 904if (ReferenceEquals(other, this)) { 1106if (ReferenceEquals(other, null)) { 1109if (ReferenceEquals(other, this)) { 1387if (ReferenceEquals(other, null)) { 1390if (ReferenceEquals(other, this)) {
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\logs\v1\Logs.cs (8)
222if (ReferenceEquals(other, null)) { 225if (ReferenceEquals(other, this)) { 449if (ReferenceEquals(other, null)) { 452if (ReferenceEquals(other, this)) { 733if (ReferenceEquals(other, null)) { 736if (ReferenceEquals(other, this)) { 1172if (ReferenceEquals(other, null)) { 1175if (ReferenceEquals(other, this)) {
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\metrics\v1\Metrics.cs (32)
322if (ReferenceEquals(other, null)) { 325if (ReferenceEquals(other, this)) { 549if (ReferenceEquals(other, null)) { 552if (ReferenceEquals(other, this)) { 833if (ReferenceEquals(other, null)) { 836if (ReferenceEquals(other, this)) { 1302if (ReferenceEquals(other, null)) { 1305if (ReferenceEquals(other, this)) { 1748if (ReferenceEquals(other, null)) { 1751if (ReferenceEquals(other, this)) { 1972if (ReferenceEquals(other, null)) { 1975if (ReferenceEquals(other, this)) { 2228if (ReferenceEquals(other, null)) { 2231if (ReferenceEquals(other, this)) { 2460if (ReferenceEquals(other, null)) { 2463if (ReferenceEquals(other, this)) { 2679if (ReferenceEquals(other, null)) { 2682if (ReferenceEquals(other, this)) { 3030if (ReferenceEquals(other, null)) { 3033if (ReferenceEquals(other, this)) { 3614if (ReferenceEquals(other, null)) { 3617if (ReferenceEquals(other, this)) { 4325if (ReferenceEquals(other, null)) { 4328if (ReferenceEquals(other, this)) { 4868if (ReferenceEquals(other, null)) { 4871if (ReferenceEquals(other, this)) { 5207if (ReferenceEquals(other, null)) { 5210if (ReferenceEquals(other, this)) { 5564if (ReferenceEquals(other, null)) { 5567if (ReferenceEquals(other, this)) { 5938if (ReferenceEquals(other, null)) { 5941if (ReferenceEquals(other, this)) {
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\resource\v1\Resource.cs (2)
136if (ReferenceEquals(other, null)) { 139if (ReferenceEquals(other, this)) {
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\trace\v1\Trace.cs (14)
168if (ReferenceEquals(other, null)) { 171if (ReferenceEquals(other, this)) { 395if (ReferenceEquals(other, null)) { 398if (ReferenceEquals(other, this)) { 679if (ReferenceEquals(other, null)) { 682if (ReferenceEquals(other, this)) { 1205if (ReferenceEquals(other, null)) { 1208if (ReferenceEquals(other, this)) { 1818if (ReferenceEquals(other, null)) { 1821if (ReferenceEquals(other, this)) { 2154if (ReferenceEquals(other, null)) { 2157if (ReferenceEquals(other, this)) { 2466if (ReferenceEquals(other, null)) { 2469if (ReferenceEquals(other, this)) {
artifacts\obj\Aspire.Dashboard\Debug\net8.0\ResourceService.cs (44)
224if (ReferenceEquals(other, null)) { 227if (ReferenceEquals(other, this)) { 398if (ReferenceEquals(other, null)) { 401if (ReferenceEquals(other, this)) { 799if (ReferenceEquals(other, null)) { 802if (ReferenceEquals(other, this)) { 1258if (ReferenceEquals(other, null)) { 1261if (ReferenceEquals(other, this)) { 1564if (ReferenceEquals(other, null)) { 1567if (ReferenceEquals(other, this)) { 1842if (ReferenceEquals(other, null)) { 1845if (ReferenceEquals(other, this)) { 2118if (ReferenceEquals(other, null)) { 2121if (ReferenceEquals(other, this)) { 2400if (ReferenceEquals(other, null)) { 2403if (ReferenceEquals(other, this)) { 2700if (ReferenceEquals(other, null)) { 2703if (ReferenceEquals(other, this)) { 3038if (ReferenceEquals(other, null)) { 3041if (ReferenceEquals(other, this)) { 3327if (ReferenceEquals(other, null)) { 3330if (ReferenceEquals(other, this)) { 3634if (ReferenceEquals(other, null)) { 3637if (ReferenceEquals(other, this)) { 4163if (ReferenceEquals(other, null)) { 4166if (ReferenceEquals(other, this)) { 4692if (ReferenceEquals(other, null)) { 4695if (ReferenceEquals(other, this)) { 4907if (ReferenceEquals(other, null)) { 4910if (ReferenceEquals(other, this)) { 5170if (ReferenceEquals(other, null)) { 5173if (ReferenceEquals(other, this)) { 5422if (ReferenceEquals(other, null)) { 5425if (ReferenceEquals(other, this)) { 5633if (ReferenceEquals(other, null)) { 5636if (ReferenceEquals(other, this)) { 5882if (ReferenceEquals(other, null)) { 5885if (ReferenceEquals(other, this)) { 6181if (ReferenceEquals(other, null)) { 6184if (ReferenceEquals(other, this)) { 6433if (ReferenceEquals(other, null)) { 6436if (ReferenceEquals(other, this)) { 6634if (ReferenceEquals(other, null)) { 6637if (ReferenceEquals(other, this)) {
Resources\Columns.Designer.cs (1)
41if (object.ReferenceEquals(resourceMan, null)) {
Resources\ConsoleLogs.Designer.cs (1)
41if (object.ReferenceEquals(resourceMan, null)) {
Resources\ControlsStrings.Designer.cs (1)
40if (object.ReferenceEquals(resourceMan, null)) {
Resources\Dialogs.Designer.cs (1)
40if (object.ReferenceEquals(resourceMan, null)) {
Resources\Login.Designer.cs (1)
41if (object.ReferenceEquals(resourceMan, null)) {
Resources\Metrics.Designer.cs (1)
41if (object.ReferenceEquals(resourceMan, null)) {
Resources\Resources.Designer.cs (1)
41if (object.ReferenceEquals(resourceMan, null)) {
Resources\Routes.Designer.cs (1)
41if (object.ReferenceEquals(resourceMan, null)) {
Resources\StructuredFiltering.Designer.cs (1)
41if (object.ReferenceEquals(resourceMan, null)) {
Resources\StructuredLogs.Designer.cs (1)
41if (object.ReferenceEquals(resourceMan, null)) {
Resources\Traces.Designer.cs (1)
41if (object.ReferenceEquals(resourceMan, null)) {
Aspire.Hosting (45)
artifacts\obj\Aspire.Hosting\Debug\net8.0\Dashboard\proto\ResourceService.cs (44)
224if (ReferenceEquals(other, null)) { 227if (ReferenceEquals(other, this)) { 398if (ReferenceEquals(other, null)) { 401if (ReferenceEquals(other, this)) { 799if (ReferenceEquals(other, null)) { 802if (ReferenceEquals(other, this)) { 1258if (ReferenceEquals(other, null)) { 1261if (ReferenceEquals(other, this)) { 1564if (ReferenceEquals(other, null)) { 1567if (ReferenceEquals(other, this)) { 1842if (ReferenceEquals(other, null)) { 1845if (ReferenceEquals(other, this)) { 2118if (ReferenceEquals(other, null)) { 2121if (ReferenceEquals(other, this)) { 2400if (ReferenceEquals(other, null)) { 2403if (ReferenceEquals(other, this)) { 2700if (ReferenceEquals(other, null)) { 2703if (ReferenceEquals(other, this)) { 3038if (ReferenceEquals(other, null)) { 3041if (ReferenceEquals(other, this)) { 3327if (ReferenceEquals(other, null)) { 3330if (ReferenceEquals(other, this)) { 3634if (ReferenceEquals(other, null)) { 3637if (ReferenceEquals(other, this)) { 4163if (ReferenceEquals(other, null)) { 4166if (ReferenceEquals(other, this)) { 4692if (ReferenceEquals(other, null)) { 4695if (ReferenceEquals(other, this)) { 4907if (ReferenceEquals(other, null)) { 4910if (ReferenceEquals(other, this)) { 5170if (ReferenceEquals(other, null)) { 5173if (ReferenceEquals(other, this)) { 5422if (ReferenceEquals(other, null)) { 5425if (ReferenceEquals(other, this)) { 5633if (ReferenceEquals(other, null)) { 5636if (ReferenceEquals(other, this)) { 5882if (ReferenceEquals(other, null)) { 5885if (ReferenceEquals(other, this)) { 6181if (ReferenceEquals(other, null)) { 6184if (ReferenceEquals(other, this)) { 6433if (ReferenceEquals(other, null)) { 6436if (ReferenceEquals(other, this)) { 6634if (ReferenceEquals(other, null)) { 6637if (ReferenceEquals(other, this)) {
Properties\Resources.Designer.cs (1)
41if (object.ReferenceEquals(resourceMan, null)) {
Aspire.Hosting.Azure.Functions (1)
src\Aspire.Hosting\Properties\Resources.Designer.cs (1)
41if (object.ReferenceEquals(resourceMan, null)) {
Aspire.Hosting.Testing (1)
Properties\Resources.Designer.cs (1)
41if (object.ReferenceEquals(resourceMan, null)) {
BasketService (18)
artifacts\obj\BasketService\Debug\net8.0\Protos\Basket.cs (18)
134if (ReferenceEquals(other, null)) { 137if (ReferenceEquals(other, this)) { 344if (ReferenceEquals(other, null)) { 347if (ReferenceEquals(other, this)) { 568if (ReferenceEquals(other, null)) { 571if (ReferenceEquals(other, this)) { 832if (ReferenceEquals(other, null)) { 835if (ReferenceEquals(other, this)) { 1144if (ReferenceEquals(other, null)) { 1147if (ReferenceEquals(other, this)) { 1329if (ReferenceEquals(other, null)) { 1332if (ReferenceEquals(other, this)) { 1503if (ReferenceEquals(other, null)) { 1506if (ReferenceEquals(other, this)) { 1688if (ReferenceEquals(other, null)) { 1691if (ReferenceEquals(other, this)) { 1886if (ReferenceEquals(other, null)) { 1889if (ReferenceEquals(other, this)) {
BinaryFormatTests (1)
TestResources.Designer.cs (1)
41if (object.ReferenceEquals(resourceMan, null)) {
ClientSample (4)
Tcp\SocketAwaitable.cs (4)
32public bool IsCompleted => ReferenceEquals(_callback, _callbackCompleted); 36Debug.Assert(ReferenceEquals(_callback, _callbackCompleted)); 50if (ReferenceEquals(_callback, _callbackCompleted) || 51ReferenceEquals(Interlocked.CompareExchange(ref _callback, continuation, null), _callbackCompleted))
DesignSurface (1)
Properties\Resources.Designer.cs (1)
41if (object.ReferenceEquals(resourceMan, null)) {
dotnet-svcutil-lib (76)
CodeDomFixup\CodeDomVisitors\RemoveSyncMethodsFromInterface.cs (1)
31if (taskAyncMethod != null && !ReferenceEquals(taskAyncMethod, syncMethod))
FrameworkFork\Microsoft.Xml\Xml\Dom\DocumentSchemaValidator.cs (1)
489if (object.ReferenceEquals(defaultNS, attributeNS))
FrameworkFork\Microsoft.Xml\Xml\schema\ChameleonKey.cs (2)
59if (Ref.ReferenceEquals(this, obj)) 73Ref.ReferenceEquals(originalSchema, cKey.originalSchema);
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaSet.cs (1)
1498if (cKey.originalSchema == null || Ref.ReferenceEquals(cKey.originalSchema, reprocessList[i]))
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContract.cs (2)
493if (object.ReferenceEquals(ns, DictionaryGlobals.SerializationNamespace) && !IsPrimitive) 1254if (object.ReferenceEquals(ns, DictionaryGlobals.SerializationNamespace) && !IsPrimitive)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContractSerializer.cs (1)
431if (contract.IsPrimitive && object.ReferenceEquals(contract.UnderlyingType, _rootType) /*handle Nullable<T> differently*/)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ObjectReferenceStack.cs (1)
99if (Object.ReferenceEquals(obj, _objectArray[i]) && _isReferenceArray != null && !_isReferenceArray[i])
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\PrimitiveDataContract.cs (1)
859if (object.ReferenceEquals(ns, DictionaryGlobals.SerializationNamespace))
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializer.cs (2)
217return (object.ReferenceEquals(contract.Name, declaredContract.Name) && object.ReferenceEquals(contract.Namespace, declaredContract.Namespace))
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (1)
411if (object.ReferenceEquals(oldObj, newObj))
FrameworkFork\System.Runtime.Serialization\System\Xml\PrefixHandle.cs (1)
183if (ReferenceEquals(prefix2, null))
FrameworkFork\System.Runtime.Serialization\System\Xml\StringHandle.cs (1)
232if (ReferenceEquals(other, null))
FrameworkFork\System.Runtime.Serialization\System\Xml\UniqueId.cs (3)
395if (object.ReferenceEquals(id1, id2)) 398if (object.ReferenceEquals(id1, null) || object.ReferenceEquals(id2, null))
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBaseReader.cs (2)
2898if (object.ReferenceEquals(s, _uriString)) 2910if (object.ReferenceEquals(s.Value, _uriString))
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBaseWriter.cs (2)
1975if (object.ReferenceEquals(nameSpace.Uri, ns)) 2052if (object.ReferenceEquals(nameSpace.Uri, ns))
FrameworkFork\System.ServiceModel\Internals\System\Runtime\InputQueue.cs (1)
711if (object.ReferenceEquals(temp, reader))
FrameworkFork\System.ServiceModel\Internals\System\Runtime\MruCache.cs (2)
118if (object.ReferenceEquals(_mruEntry.node, entry.node)) 156&& !object.ReferenceEquals(_mruList.First, entry.node))
FrameworkFork\System.ServiceModel\Internals\TraceCore.Designer.cs (1)
37if (object.ReferenceEquals(resourceManager, null))
FrameworkFork\System.ServiceModel\System\IdentityModel\Claims\ClaimComparer.cs (4)
144if (ReferenceEquals(claim1, claim2)) 188if (ReferenceEquals(obj1, obj2)) 228if (ReferenceEquals(obj1, obj2)) 249if (ReferenceEquals(obj1, obj2))
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\BinaryKeyIdentifierClause.cs (1)
54return ReferenceEquals(this, that) || (that != null && that.Matches(_identificationData));
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\EncryptedKeyIdentifierClause.cs (1)
66return ReferenceEquals(this, that) || (that != null && that.Matches(this.GetRawBuffer(), _encryptionMethod, _carriedKeyName));
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\LocalIdKeyIdentifierClause.cs (1)
63return ReferenceEquals(this, that) || (that != null && that.Matches(_localId, this.OwnerType));
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\SecurityKeyIdentifierClause.cs (1)
57return ReferenceEquals(this, keyIdentifierClause);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\Addressing.cs (3)
678if (object.ReferenceEquals(messageId, null)) 776if (object.ReferenceEquals(messageId, null)) 785if (object.ReferenceEquals(messageId, null))
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ConnectionPoolRegistry.cs (1)
71if (object.ReferenceEquals(registryEntry[i], pool))
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CoreClrSocketConnection.cs (5)
356if (object.ReferenceEquals(exceptionToThrow, objectDisposedException)) 408if (object.ReferenceEquals(exceptionToThrow, objectDisposedException)) 551if (object.ReferenceEquals(exceptionToThrow, objectDisposedException)) 594if (object.ReferenceEquals(exceptionToThrow, objectDisposedException)) 669if (object.ReferenceEquals(exceptionToThrow, objectDisposedException))
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelFactory.cs (1)
973if (!ReferenceEquals(request, message))
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageHeaders.cs (1)
1492if (!object.ReferenceEquals(messageId, null))
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\RequestReplyCorrelator.cs (3)
136if (object.ReferenceEquals(messageId, null)) 141if (object.ReferenceEquals(replyHeaders.RelatesTo, null)) 160if (object.ReferenceEquals(replyHeaders.RelatesTo, null))
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SessionConnectionReader.cs (1)
351if (!object.ReferenceEquals(buffer, EnvelopeBuffer))
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\DataContractSerializerOperationGenerator.cs (2)
122if (!Object.ReferenceEquals(targetCompileUnit, codeCompileUnit)) 240if (Object.ReferenceEquals(x, y))
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\DispatcherBuilder.cs (1)
83if (object.ReferenceEquals(this, other))
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceReflector.cs (4)
293if (object.ReferenceEquals(obj, this)) 298if (object.ReferenceEquals(obj, null)) 330if (object.ReferenceEquals(a, null)) 332return object.ReferenceEquals(b, null);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ChannelHandler.cs (2)
991if (!object.ReferenceEquals(requestMessage, null)) 1002if (!object.ReferenceEquals(requestID, null) && !_isManualAddressing)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ErrorBehavior.cs (1)
256if (!object.ReferenceEquals(e, e2))
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ImmutableDispatchRuntime.cs (2)
368if (!object.ReferenceEquals(rpc.RequestID, null)) 695!object.ReferenceEquals(rpc.ErrorProcessor, _processMessageCleanupError),
FrameworkFork\System.ServiceModel\System\ServiceModel\EndpointAddress.cs (8)
206_isAnonymous = object.ReferenceEquals(uri, AnonymousUri) || uri == AnonymousUri; 207_isNone = object.ReferenceEquals(uri, NoneUri) || uri == NoneUri; 428if (object.ReferenceEquals(this, endpointAddress)) 463if (object.ReferenceEquals(obj, this)) 1241if (object.ReferenceEquals(address2, null)) 1243return (object.ReferenceEquals(address1, null)); 1251if (object.ReferenceEquals(address2, null)) 1253return !object.ReferenceEquals(address1, null);
FrameworkFork\System.ServiceModel\System\ServiceModel\InstanceContext.cs (1)
320Fx.Assert(object.ReferenceEquals(this, result.AsyncState), "AsyncState should be this");
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\InMemoryNonceCache.cs (1)
112if (Object.ReferenceEquals(x, y))
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityContextKeyIdentifierClause.cs (1)
53return ReferenceEquals(this, that) || (that != null && that.Matches(_contextId, _generation));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityProtocolFactory.cs (2)
745if (object.ReferenceEquals(spec, spec2)) 787return (Object.ReferenceEquals(_channelSupportingTokenAuthenticatorSpecification, EmptyTokenAuthenticators)) ? null : (IList<SupportingTokenAuthenticatorSpecification>)_channelSupportingTokenAuthenticatorSpecification;
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\TimeBoundedCache.cs (1)
472if (ReferenceEquals(item1, item2))
Metadata\MetadataFileInfo.cs (1)
35return other != null && (Object.ReferenceEquals(this, other) || this.Equals(other.FilePath));
http2cat (2)
src\Shared\runtime\Http2\Hpack\HPackEncoder.cs (2)
464int encodedStringLength = valueEncoding is null || ReferenceEquals(valueEncoding, Encoding.Latin1) 533if (valueEncoding is null || ReferenceEquals(valueEncoding, Encoding.Latin1))
IIS.FunctionalTests (2)
src\Shared\runtime\Http2\Hpack\HPackEncoder.cs (2)
464int encodedStringLength = valueEncoding is null || ReferenceEquals(valueEncoding, Encoding.Latin1) 533if (valueEncoding is null || ReferenceEquals(valueEncoding, Encoding.Latin1))
IIS.LongTests (2)
src\Shared\runtime\Http2\Hpack\HPackEncoder.cs (2)
464int encodedStringLength = valueEncoding is null || ReferenceEquals(valueEncoding, Encoding.Latin1) 533if (valueEncoding is null || ReferenceEquals(valueEncoding, Encoding.Latin1))
IIS.NewHandler.FunctionalTests (2)
src\Shared\runtime\Http2\Hpack\HPackEncoder.cs (2)
464int encodedStringLength = valueEncoding is null || ReferenceEquals(valueEncoding, Encoding.Latin1) 533if (valueEncoding is null || ReferenceEquals(valueEncoding, Encoding.Latin1))
IIS.NewShim.FunctionalTests (2)
src\Shared\runtime\Http2\Hpack\HPackEncoder.cs (2)
464int encodedStringLength = valueEncoding is null || ReferenceEquals(valueEncoding, Encoding.Latin1) 533if (valueEncoding is null || ReferenceEquals(valueEncoding, Encoding.Latin1))
IISExpress.FunctionalTests (2)
src\Shared\runtime\Http2\Hpack\HPackEncoder.cs (2)
464int encodedStringLength = valueEncoding is null || ReferenceEquals(valueEncoding, Encoding.Latin1) 533if (valueEncoding is null || ReferenceEquals(valueEncoding, Encoding.Latin1))
illink (5)
ILLink.RoslynAnalyzer (2)
DataFlow\LocalDataFlowVisitor.cs (1)
206 return !ReferenceEquals (local.ContainingSymbol, OwningSymbol);
DataFlow\MethodBodyValue.cs (1)
30 if (!ReferenceEquals (OwningSymbol, other.OwningSymbol))
InMemory.FunctionalTests (1)
src\Servers\Kestrel\shared\HPackHeaderWriter.cs (1)
127ReferenceEquals(headersEnumerator.EncodingSelector, KestrelServerOptions.DefaultHeaderEncodingSelector)
IntegrationTestsWebsite (10)
artifacts\obj\IntegrationTestsWebsite\Release\net10.0\Protos\Greet.cs (10)
162if (ReferenceEquals(other, null)) { 165if (ReferenceEquals(other, this)) { 352if (ReferenceEquals(other, null)) { 355if (ReferenceEquals(other, this)) { 567if (ReferenceEquals(other, null)) { 570if (ReferenceEquals(other, this)) { 786if (ReferenceEquals(other, null)) { 789if (ReferenceEquals(other, this)) { 979if (ReferenceEquals(other, null)) { 982if (ReferenceEquals(other, this)) {
InteropClient (26)
artifacts\obj\InteropClient\Release\net10.0\Empty.cs (2)
100if (ReferenceEquals(other, null)) { 103if (ReferenceEquals(other, this)) {
artifacts\obj\InteropClient\Release\net10.0\Messages.cs (24)
165if (ReferenceEquals(other, null)) { 168if (ReferenceEquals(other, this)) { 377if (ReferenceEquals(other, null)) { 380if (ReferenceEquals(other, this)) { 608if (ReferenceEquals(other, null)) { 611if (ReferenceEquals(other, this)) { 944if (ReferenceEquals(other, null)) { 947if (ReferenceEquals(other, this)) { 1377if (ReferenceEquals(other, null)) { 1380if (ReferenceEquals(other, this)) { 1649if (ReferenceEquals(other, null)) { 1652if (ReferenceEquals(other, this)) { 1887if (ReferenceEquals(other, null)) { 1890if (ReferenceEquals(other, this)) { 2119if (ReferenceEquals(other, null)) { 2122if (ReferenceEquals(other, this)) { 2422if (ReferenceEquals(other, null)) { 2425if (ReferenceEquals(other, this)) { 2698if (ReferenceEquals(other, null)) { 2701if (ReferenceEquals(other, this)) { 2901if (ReferenceEquals(other, null)) { 2904if (ReferenceEquals(other, this)) { 3108if (ReferenceEquals(other, null)) { 3111if (ReferenceEquals(other, this)) {
InteropWebsite (26)
artifacts\obj\InteropWebsite\Release\net10.0\Empty.cs (2)
100if (ReferenceEquals(other, null)) { 103if (ReferenceEquals(other, this)) {
artifacts\obj\InteropWebsite\Release\net10.0\Messages.cs (24)
165if (ReferenceEquals(other, null)) { 168if (ReferenceEquals(other, this)) { 377if (ReferenceEquals(other, null)) { 380if (ReferenceEquals(other, this)) { 608if (ReferenceEquals(other, null)) { 611if (ReferenceEquals(other, this)) { 944if (ReferenceEquals(other, null)) { 947if (ReferenceEquals(other, this)) { 1377if (ReferenceEquals(other, null)) { 1380if (ReferenceEquals(other, this)) { 1649if (ReferenceEquals(other, null)) { 1652if (ReferenceEquals(other, this)) { 1887if (ReferenceEquals(other, null)) { 1890if (ReferenceEquals(other, this)) { 2119if (ReferenceEquals(other, null)) { 2122if (ReferenceEquals(other, this)) { 2422if (ReferenceEquals(other, null)) { 2425if (ReferenceEquals(other, this)) { 2698if (ReferenceEquals(other, null)) { 2701if (ReferenceEquals(other, this)) { 2901if (ReferenceEquals(other, null)) { 2904if (ReferenceEquals(other, this)) { 3108if (ReferenceEquals(other, null)) { 3111if (ReferenceEquals(other, this)) {
Microsoft.Analyzers.Extra (1)
Resources.Designer.cs (1)
41if (object.ReferenceEquals(resourceMan, null)) {
Microsoft.Analyzers.Local (1)
Resources.Designer.cs (1)
41if (object.ReferenceEquals(resourceMan, null)) {
Microsoft.Analyzers.Local.Tests (1)
InternalReferencedInPublicDocAnalyzerTests.cs (1)
476private static bool IsInternalReferencedInPublicDocDiagnostic(Diagnostic d) => ReferenceEquals(d.Descriptor, DiagDescriptors.InternalReferencedInPublicDoc);
Microsoft.Arcade.Test.Common (2)
AssertEx.cs (2)
125if (ReferenceEquals(expected, actual)) 184if (ReferenceEquals(expected, actual))
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (1)
src\Tools\Shared\TestHelpers\TemporaryCSharpProject.cs (1)
115if (ReferenceEquals(this, reference))
Microsoft.AspNetCore.Authentication.Negotiate (1)
NegotiateHandler.cs (1)
209Debug.Assert(object.ReferenceEquals(persistence?.State, _negotiateState),
Microsoft.AspNetCore.Components (8)
EventCallback.cs (2)
45internal bool RequiresExplicitReceiver => Receiver != null && !object.ReferenceEquals(Receiver, Delegate?.Target); 82&& ReferenceEquals(Receiver, other.Receiver)
EventCallbackOfT.cs (2)
40internal bool RequiresExplicitReceiver => Receiver != null && !object.ReferenceEquals(Receiver, Delegate?.Target); 82&& ReferenceEquals(Receiver, other.Receiver)
ParameterView.cs (1)
118if (ReferenceEquals(_frames, _emptyFrames))
RenderTree\StackObjectPool.cs (1)
62if (!ReferenceEquals(instance, expectedInstance))
src\Components\Shared\src\ArrayBuilder.cs (1)
192if (!ReferenceEquals(_items, Empty))
src\Http\Routing\src\Patterns\RoutePattern.cs (1)
35return object.ReferenceEquals(RequiredValueAny, value);
Microsoft.AspNetCore.Components.Endpoints (1)
Assets\ImportMap.cs (1)
45if (!_firstRender && ReferenceEquals(ImportMapDefinition, _computedImportMapDefinition))
Microsoft.AspNetCore.Components.Forms (1)
FieldIdentifier.cs (1)
91return ReferenceEquals(otherIdentifier.Model, Model) &&
Microsoft.AspNetCore.Components.Server (1)
src\Components\Shared\src\ArrayBuilder.cs (1)
192if (!ReferenceEquals(_items, Empty))
Microsoft.AspNetCore.Components.WebView (1)
src\Components\Shared\src\ArrayBuilder.cs (1)
192if (!ReferenceEquals(_items, Empty))
Microsoft.AspNetCore.Cryptography.Internal (1)
WeakReferenceHelpers.cs (1)
45if (ReferenceEquals(currentWeakRef, existingWeakRef))
Microsoft.AspNetCore.DataProtection (3)
KeyManagement\DefaultKeyResolver.cs (1)
199where !ReferenceEquals(key, preferredDefaultKey) // Don't reconsider it as a fallback
KeyManagement\KeyRingProvider.cs (1)
450if (!ReferenceEquals(task, _cacheableKeyRingTask))
Repositories\EphemeralXmlRepository.cs (1)
85var index = _storedElements.FindIndex(e => ReferenceEquals(e, storedElement));
Microsoft.AspNetCore.DataProtection.Tests (2)
KeyManagement\KeyRingProviderTests.cs (2)
852Assert.All(actualKeyRings, actualKeyRing => ReferenceEquals(expectedKeyRing1, actualKeyRing)); 868if (ReferenceEquals(expectedKeyRing2, updatedKeyRing))
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (36)
artifacts\obj\Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests\Release\net10.0\Proto\Httpbody.cs (4)
124if (ReferenceEquals(other, null)) { 127if (ReferenceEquals(other, this)) { 347if (ReferenceEquals(other, null)) { 350if (ReferenceEquals(other, this)) {
artifacts\obj\Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests\Release\net10.0\Proto\Issue045270\Hello.cs (4)
126if (ReferenceEquals(other, null)) { 129if (ReferenceEquals(other, this)) { 353if (ReferenceEquals(other, null)) { 356if (ReferenceEquals(other, this)) {
artifacts\obj\Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests\Release\net10.0\Proto\Issue047349\Message.cs (2)
130if (ReferenceEquals(other, null)) { 133if (ReferenceEquals(other, this)) {
artifacts\obj\Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests\Release\net10.0\Proto\Issue048192\Customhttp.cs (6)
148if (ReferenceEquals(other, null)) { 151if (ReferenceEquals(other, this)) { 896if (ReferenceEquals(other, null)) { 899if (ReferenceEquals(other, this)) { 1332if (ReferenceEquals(other, null)) { 1335if (ReferenceEquals(other, this)) {
artifacts\obj\Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests\Release\net10.0\Proto\Issue048192\Hello.cs (4)
110if (ReferenceEquals(other, null)) { 113if (ReferenceEquals(other, this)) { 300if (ReferenceEquals(other, null)) { 303if (ReferenceEquals(other, this)) {
artifacts\obj\Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests\Release\net10.0\Proto\Transcoding.cs (16)
607if (ReferenceEquals(other, null)) { 610if (ReferenceEquals(other, this)) { 1433if (ReferenceEquals(other, null)) { 1436if (ReferenceEquals(other, this)) { 1845if (ReferenceEquals(other, null)) { 1848if (ReferenceEquals(other, this)) { 2442if (ReferenceEquals(other, null)) { 2445if (ReferenceEquals(other, this)) { 2759if (ReferenceEquals(other, null)) { 2762if (ReferenceEquals(other, this)) { 3253if (ReferenceEquals(other, null)) { 3256if (ReferenceEquals(other, this)) { 3568if (ReferenceEquals(other, null)) { 3571if (ReferenceEquals(other, this)) { 3777if (ReferenceEquals(other, null)) { 3780if (ReferenceEquals(other, this)) {
Microsoft.AspNetCore.Grpc.Microbenchmarks (6)
artifacts\obj\Microsoft.AspNetCore.Grpc.Microbenchmarks\Release\net10.0\Proto\Chat.cs (2)
123if (ReferenceEquals(other, null)) { 126if (ReferenceEquals(other, this)) {
artifacts\obj\Microsoft.AspNetCore.Grpc.Microbenchmarks\Release\net10.0\Proto\Greet.cs (4)
114if (ReferenceEquals(other, null)) { 117if (ReferenceEquals(other, this)) { 320if (ReferenceEquals(other, null)) { 323if (ReferenceEquals(other, this)) {
Microsoft.AspNetCore.Grpc.Swagger.Tests (70)
artifacts\obj\Microsoft.AspNetCore.Grpc.Swagger.Tests\Release\net10.0\Proto\Body.cs (6)
146if (ReferenceEquals(other, null)) { 149if (ReferenceEquals(other, this)) { 373if (ReferenceEquals(other, null)) { 376if (ReferenceEquals(other, this)) { 563if (ReferenceEquals(other, null)) { 566if (ReferenceEquals(other, this)) {
artifacts\obj\Microsoft.AspNetCore.Grpc.Swagger.Tests\Release\net10.0\Proto\Counter.cs (4)
123if (ReferenceEquals(other, null)) { 126if (ReferenceEquals(other, this)) { 337if (ReferenceEquals(other, null)) { 340if (ReferenceEquals(other, this)) {
artifacts\obj\Microsoft.AspNetCore.Grpc.Swagger.Tests\Release\net10.0\Proto\Greeter.cs (4)
115if (ReferenceEquals(other, null)) { 118if (ReferenceEquals(other, this)) { 311if (ReferenceEquals(other, null)) { 314if (ReferenceEquals(other, this)) {
artifacts\obj\Microsoft.AspNetCore.Grpc.Swagger.Tests\Release\net10.0\Proto\Messages.cs (26)
232if (ReferenceEquals(other, null)) { 235if (ReferenceEquals(other, this)) { 550if (ReferenceEquals(other, null)) { 553if (ReferenceEquals(other, this)) { 962if (ReferenceEquals(other, null)) { 965if (ReferenceEquals(other, this)) { 1559if (ReferenceEquals(other, null)) { 1562if (ReferenceEquals(other, this)) { 1876if (ReferenceEquals(other, null)) { 1879if (ReferenceEquals(other, this)) { 2329if (ReferenceEquals(other, null)) { 2332if (ReferenceEquals(other, this)) { 2535if (ReferenceEquals(other, null)) { 2538if (ReferenceEquals(other, this)) { 2731if (ReferenceEquals(other, null)) { 2734if (ReferenceEquals(other, this)) { 2945if (ReferenceEquals(other, null)) { 2948if (ReferenceEquals(other, this)) { 3165if (ReferenceEquals(other, null)) { 3168if (ReferenceEquals(other, this)) { 3525if (ReferenceEquals(other, null)) { 3528if (ReferenceEquals(other, this)) { 3796if (ReferenceEquals(other, null)) { 3799if (ReferenceEquals(other, this)) { 3976if (ReferenceEquals(other, null)) { 3979if (ReferenceEquals(other, this)) {
artifacts\obj\Microsoft.AspNetCore.Grpc.Swagger.Tests\Release\net10.0\Proto\Parameters.cs (16)
175if (ReferenceEquals(other, null)) { 178if (ReferenceEquals(other, this)) { 428if (ReferenceEquals(other, null)) { 431if (ReferenceEquals(other, this)) { 728if (ReferenceEquals(other, null)) { 731if (ReferenceEquals(other, this)) { 951if (ReferenceEquals(other, null)) { 954if (ReferenceEquals(other, this)) { 1215if (ReferenceEquals(other, null)) { 1218if (ReferenceEquals(other, this)) { 1504if (ReferenceEquals(other, null)) { 1507if (ReferenceEquals(other, this)) { 1763if (ReferenceEquals(other, null)) { 1766if (ReferenceEquals(other, this)) { 1953if (ReferenceEquals(other, null)) { 1956if (ReferenceEquals(other, this)) {
artifacts\obj\Microsoft.AspNetCore.Grpc.Swagger.Tests\Release\net10.0\Proto\Responsebody.cs (6)
128if (ReferenceEquals(other, null)) { 131if (ReferenceEquals(other, this)) { 332if (ReferenceEquals(other, null)) { 335if (ReferenceEquals(other, this)) { 580if (ReferenceEquals(other, null)) { 583if (ReferenceEquals(other, this)) {
artifacts\obj\Microsoft.AspNetCore.Grpc.Swagger.Tests\Release\net10.0\Proto\Xmldoc.cs (8)
128if (ReferenceEquals(other, null)) { 131if (ReferenceEquals(other, this)) { 340if (ReferenceEquals(other, null)) { 343if (ReferenceEquals(other, this)) { 572if (ReferenceEquals(other, null)) { 575if (ReferenceEquals(other, this)) { 773if (ReferenceEquals(other, null)) { 776if (ReferenceEquals(other, this)) {
Microsoft.AspNetCore.HostFiltering.Tests (2)
MiddlewareConfigurationManagerTests.cs (2)
67Assert.False(ReferenceEquals(configurationBeforeChange, configurationAfterChange)); 93Assert.True(ReferenceEquals(result1, result2));
Microsoft.AspNetCore.Hosting (4)
GenericHost\GenericWebHostBuilder.cs (4)
178if (object.ReferenceEquals(_startupObject, startupType)) 204if (object.ReferenceEquals(_startupObject, startupFactory)) 323if (object.ReferenceEquals(_startupObject, configure)) 346if (object.ReferenceEquals(_startupObject, configure))
Microsoft.AspNetCore.Hosting.Tests (7)
HostingApplicationDiagnosticsTests.cs (3)
184ShouldListenTo = activitySource => ReferenceEquals(activitySource, testSource), 957ShouldListenTo = activitySource => ReferenceEquals(activitySource, testSource), 1027ShouldListenTo = activitySource => ReferenceEquals(activitySource, testSource),
HostingApplicationTests.cs (4)
99ShouldListenTo = activitySource => (ReferenceEquals(activitySource, testSource) || 100ReferenceEquals(activitySource, dummySource)), 141ShouldListenTo = activitySource => (ReferenceEquals(activitySource, testSource) || 142ReferenceEquals(activitySource, dummySource)),
Microsoft.AspNetCore.Http (2)
Features\RequestBodyPipeFeature.cs (1)
36!ReferenceEquals(_streamInstanceWhenWrapped, _context.Request.Body))
Internal\DefaultHttpResponse.cs (1)
76&& object.ReferenceEquals(value, streamFeature.PriorFeature.Stream))
Microsoft.AspNetCore.Http.Abstractions (11)
FragmentString.cs (1)
127if (ReferenceEquals(null, obj))
HostString.cs (1)
297if (ReferenceEquals(null, obj))
HttpMethods.cs (1)
193return object.ReferenceEquals(methodA, methodB) || StringComparer.OrdinalIgnoreCase.Equals(methodA, methodB);
HttpProtocol.cs (5)
54return object.ReferenceEquals(Http09, protocol) || StringComparer.OrdinalIgnoreCase.Equals(Http09, protocol); 66return object.ReferenceEquals(Http10, protocol) || StringComparer.OrdinalIgnoreCase.Equals(Http10, protocol); 78return object.ReferenceEquals(Http11, protocol) || StringComparer.OrdinalIgnoreCase.Equals(Http11, protocol); 90return object.ReferenceEquals(Http2, protocol) || StringComparer.OrdinalIgnoreCase.Equals(Http2, protocol); 102return object.ReferenceEquals(Http3, protocol) || StringComparer.OrdinalIgnoreCase.Equals(Http3, protocol);
Internal\HeaderSegment.cs (1)
39if (ReferenceEquals(null, obj))
Internal\HeaderSegmentCollection.cs (1)
25if (ReferenceEquals(null, obj))
QueryString.cs (1)
230if (ReferenceEquals(null, obj))
Microsoft.AspNetCore.Http.Connections.Client (4)
Internal\WebSocketsTransport.cs (4)
181if (ReferenceEquals(webSocket.Options.Cookies, context.Options.Cookies)) 189if (ReferenceEquals(webSocket.Options.Credentials, context.Options.Credentials)) 197if (ReferenceEquals(webSocket.Options.Proxy, context.Options.Proxy)) 224if (!ReferenceEquals(left![i], right![i]))
Microsoft.AspNetCore.Http.Extensions (1)
RequestDelegateFactory.cs (1)
494if (ReferenceEquals(initialFilteredInvocation, filteredInvocation))
Microsoft.AspNetCore.Http.Tests (3)
DefaultHttpContextTests.cs (3)
85Assert.True(object.ReferenceEquals(context.User, context.User)); 92Assert.True(object.ReferenceEquals(context.User, context.User)); 99Assert.True(object.ReferenceEquals(context.User, context.User));
Microsoft.AspNetCore.Mvc.Abstractions (2)
Filters\FilterContext.cs (1)
69return ReferenceEquals(policy, effective);
ModelBinding\ModelMetadata.cs (1)
714if (object.ReferenceEquals(this, other))
Microsoft.AspNetCore.Mvc.Core (9)
ApplicationModels\DefaultApplicationModelProvider.cs (2)
591if (ReferenceEquals(attribute, routeProvider)) 644if (ReferenceEquals(rp, attribute))
Authorization\AuthorizeFilter.cs (1)
125if (ReferenceEquals(this, context.Filters[i]))
Infrastructure\StringArrayComparer.cs (1)
21if (object.ReferenceEquals(x, y))
ModelBinding\ModelBinderFactory.cs (1)
293return _metadata.Equals(other._metadata) && object.ReferenceEquals(_token, other._token);
ModelBinding\Validation\ValidationStack.cs (2)
56Debug.Assert(ReferenceEquals(List[List.Count - 1], model)); 66if (ReferenceEquals(model, List[i]))
Routing\ActionEndpointFactory.cs (1)
481controllerActionDescriptor.FilterDelegate = ReferenceEquals(del, initialFilteredInvocation) ? null : del;
Routing\DynamicControllerEndpointMatcherPolicy.cs (1)
166Debug.Assert(currentSelector == null || ReferenceEquals(currentSelector, selector));
Microsoft.AspNetCore.Mvc.Razor (1)
ViewLocationCacheKey.cs (1)
96if (ReferenceEquals(ViewLocationExpanderValues, y.ViewLocationExpanderValues))
Microsoft.AspNetCore.Mvc.RazorPages (3)
Infrastructure\DynamicPageEndpointMatcherPolicy.cs (1)
183Debug.Assert(currentSelector == null || ReferenceEquals(currentSelector, selector));
Infrastructure\PageActionInvoker.cs (2)
206if (object.ReferenceEquals(_handler, _actionDescriptor.HandlerMethods[i])) 260if (object.ReferenceEquals(handler, _actionDescriptor.HandlerMethods[i]))
Microsoft.AspNetCore.Mvc.ViewFeatures (5)
DefaultHtmlGenerator.cs (1)
1620object.ReferenceEquals(optGroup, groupItem.Group))
LambdaExpressionComparer.cs (1)
16if (ReferenceEquals(lambdaExpression1, lambdaExpression2))
ViewDataDictionary.cs (2)
215else if (object.ReferenceEquals(model, source.ModelExplorer.Model)) 460else if (object.ReferenceEquals(value, Model))
ViewDataInfo.cs (1)
91if (ReferenceEquals(_valueAccessor, _propertyInfoResolver))
Microsoft.AspNetCore.OpenApi (2)
Comparers\OpenApiTagComparer.cs (1)
26if (object.ReferenceEquals(x, y))
Extensions\OpenApiEndpointConventionBuilderExtensions.cs (1)
73if (!ReferenceEquals(configuredOperation, existingOperation))
Microsoft.AspNetCore.OutputCaching (1)
RecyclableSequenceBuilder.cs (1)
35if (ReferenceEquals(_firstSegment, _currentSegment))
Microsoft.AspNetCore.Routing (16)
Builder\EndpointRoutingApplicationBuilderExtensions.cs (1)
145if (endpointRouteBuilder is DefaultEndpointRouteBuilder defaultRouteBuilder && !object.ReferenceEquals(app, defaultRouteBuilder.ApplicationBuilder))
Matching\DfaMatcherBuilder.cs (2)
610ReferenceEquals(node.Parameters, node.CatchAll)) 681if (ReferenceEquals(node, next))
Matching\DfaNode.cs (3)
91if (Parameters != null && !ReferenceEquals(this, Parameters)) 97if (CatchAll != null && !ReferenceEquals(this, CatchAll)) 131return ReferenceEquals(this, other) ? "this" : other.DebuggerToString();
Matching\HttpMethodMatcherPolicy.cs (1)
402if (object.ReferenceEquals(methods[i], httpMethod))
Patterns\DefaultRoutePatternTransformer.cs (2)
225if (object.ReferenceEquals(parameter, segment.Parts[j])) 236if (ReferenceEquals(parameter, parameters[k]))
Patterns\RoutePattern.cs (1)
35return object.ReferenceEquals(RequiredValueAny, value);
RequestDelegateFilterPipelineBuilder.cs (1)
49if (ReferenceEquals(initialFilteredInvocation, filteredInvocation))
RouteEndpointDataSource.cs (1)
236var conventionOverriddenRequestDelegate = ReferenceEquals(builder.RequestDelegate, redirectRequestDelegate) ? null : builder.RequestDelegate;
Template\TemplateBinder.cs (4)
325if (hasExplicitValue && !ReferenceEquals(value, SentinullValue.Instance)) 647var sa = a as string ?? (ReferenceEquals(SentinullValue.Instance, a) ? string.Empty : null); 648var sb = b as string ?? (ReferenceEquals(SentinullValue.Instance, b) ? string.Empty : null); 684if (ReferenceEquals(SentinullValue.Instance, part))
Microsoft.AspNetCore.Routing.Microbenchmarks (1)
EndpointRoutingBenchmarkBase.cs (1)
70if (!object.ReferenceEquals(expected, actual))
Microsoft.AspNetCore.Routing.Tests (1)
Matching\MatcherAssert.cs (1)
73if (!object.ReferenceEquals(expected, httpContext.GetEndpoint()))
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (2)
src\Shared\runtime\Http2\Hpack\HPackEncoder.cs (2)
464int encodedStringLength = valueEncoding is null || ReferenceEquals(valueEncoding, Encoding.Latin1) 533if (valueEncoding is null || ReferenceEquals(valueEncoding, Encoding.Latin1))
Microsoft.AspNetCore.Server.IIS (2)
Core\IO\AsyncIOOperation.cs (2)
23if (ReferenceEquals(Volatile.Read(ref _continuation), null)) 44if (!ReferenceEquals(previousContinuation, CallbackCompleted))
Microsoft.AspNetCore.Server.Kestrel.Core (397)
Internal\Http\Http1Connection.cs (1)
397if (ReferenceEquals(_parsedQueryString, string.Empty))
Internal\Http\HttpHeaders.cs (2)
279var requireAscii = ReferenceEquals(encodingSelector, KestrelServerOptions.DefaultHeaderEncodingSelector) 346if (ReferenceEquals(connection.ToString(), KeepAlive))
Internal\Http\HttpHeaders.Generated.cs (372)
2596if (ReferenceEquals(HeaderNames.TE, key)) 2619if (ReferenceEquals(HeaderNames.Via, key)) 2642if (ReferenceEquals(HeaderNames.Host, key)) 2651if (ReferenceEquals(HeaderNames.Date, key)) 2660if (ReferenceEquals(HeaderNames.From, key)) 2701if (ReferenceEquals(InternalHeaderNames.Path, key)) 2710if (ReferenceEquals(HeaderNames.Range, key)) 2742if (ReferenceEquals(HeaderNames.Accept, key)) 2751if (ReferenceEquals(HeaderNames.Cookie, key)) 2760if (ReferenceEquals(HeaderNames.Expect, key)) 2769if (ReferenceEquals(HeaderNames.Origin, key)) 2778if (ReferenceEquals(HeaderNames.Pragma, key)) 2837if (ReferenceEquals(InternalHeaderNames.Method, key)) 2846if (ReferenceEquals(InternalHeaderNames.Scheme, key)) 2855if (ReferenceEquals(HeaderNames.Baggage, key)) 2864if (ReferenceEquals(HeaderNames.Referer, key)) 2873if (ReferenceEquals(HeaderNames.Upgrade, key)) 2882if (ReferenceEquals(HeaderNames.Warning, key)) 2950if (ReferenceEquals(InternalHeaderNames.AltUsed, key)) 2959if (ReferenceEquals(HeaderNames.IfMatch, key)) 2968if (ReferenceEquals(HeaderNames.IfRange, key)) 3009if (ReferenceEquals(InternalHeaderNames.Protocol, key)) 3018if (ReferenceEquals(HeaderNames.Translate, key)) 3050if (ReferenceEquals(HeaderNames.Connection, key)) 3059if (ReferenceEquals(HeaderNames.UserAgent, key)) 3068if (ReferenceEquals(InternalHeaderNames.Authority, key)) 3077if (ReferenceEquals(HeaderNames.KeepAlive, key)) 3086if (ReferenceEquals(HeaderNames.RequestId, key)) 3095if (ReferenceEquals(HeaderNames.TraceState, key)) 3163if (ReferenceEquals(HeaderNames.TraceParent, key)) 3186if (ReferenceEquals(HeaderNames.ContentType, key)) 3195if (ReferenceEquals(HeaderNames.GrpcTimeout, key)) 3204if (ReferenceEquals(HeaderNames.MaxForwards, key)) 3245if (ReferenceEquals(HeaderNames.Authorization, key)) 3254if (ReferenceEquals(HeaderNames.CacheControl, key)) 3263if (ReferenceEquals(HeaderNames.GrpcEncoding, key)) 3272if (ReferenceEquals(HeaderNames.IfNoneMatch, key)) 3322if (ReferenceEquals(HeaderNames.AcceptCharset, key)) 3331if (ReferenceEquals(HeaderNames.ContentLength, key)) 3363if (ReferenceEquals(HeaderNames.AcceptEncoding, key)) 3372if (ReferenceEquals(HeaderNames.AcceptLanguage, key)) 3404if (ReferenceEquals(HeaderNames.IfModifiedSince, key)) 3413if (ReferenceEquals(HeaderNames.TransferEncoding, key)) 3445if (ReferenceEquals(HeaderNames.CorrelationContext, key)) 3454if (ReferenceEquals(HeaderNames.IfUnmodifiedSince, key)) 3463if (ReferenceEquals(HeaderNames.ProxyAuthorization, key)) 3504if (ReferenceEquals(HeaderNames.GrpcAcceptEncoding, key)) 3527if (ReferenceEquals(HeaderNames.UpgradeInsecureRequests, key)) 3550if (ReferenceEquals(HeaderNames.AccessControlRequestMethod, key)) 3573if (ReferenceEquals(HeaderNames.AccessControlRequestHeaders, key)) 3605if (ReferenceEquals(HeaderNames.TE, key)) 3622if (ReferenceEquals(HeaderNames.Via, key)) 3639if (ReferenceEquals(HeaderNames.Host, key)) 3645if (ReferenceEquals(HeaderNames.Date, key)) 3651if (ReferenceEquals(HeaderNames.From, key)) 3680if (ReferenceEquals(InternalHeaderNames.Path, key)) 3686if (ReferenceEquals(HeaderNames.Range, key)) 3709if (ReferenceEquals(HeaderNames.Accept, key)) 3715if (ReferenceEquals(HeaderNames.Cookie, key)) 3721if (ReferenceEquals(HeaderNames.Expect, key)) 3727if (ReferenceEquals(HeaderNames.Origin, key)) 3733if (ReferenceEquals(HeaderNames.Pragma, key)) 3774if (ReferenceEquals(InternalHeaderNames.Method, key)) 3780if (ReferenceEquals(InternalHeaderNames.Scheme, key)) 3786if (ReferenceEquals(HeaderNames.Baggage, key)) 3792if (ReferenceEquals(HeaderNames.Referer, key)) 3798if (ReferenceEquals(HeaderNames.Upgrade, key)) 3804if (ReferenceEquals(HeaderNames.Warning, key)) 3851if (ReferenceEquals(InternalHeaderNames.AltUsed, key)) 3857if (ReferenceEquals(HeaderNames.IfMatch, key)) 3863if (ReferenceEquals(HeaderNames.IfRange, key)) 3892if (ReferenceEquals(InternalHeaderNames.Protocol, key)) 3898if (ReferenceEquals(HeaderNames.Translate, key)) 3921if (ReferenceEquals(HeaderNames.Connection, key)) 3927if (ReferenceEquals(HeaderNames.UserAgent, key)) 3933if (ReferenceEquals(InternalHeaderNames.Authority, key)) 3939if (ReferenceEquals(HeaderNames.KeepAlive, key)) 3945if (ReferenceEquals(HeaderNames.RequestId, key)) 3951if (ReferenceEquals(HeaderNames.TraceState, key)) 3998if (ReferenceEquals(HeaderNames.TraceParent, key)) 4015if (ReferenceEquals(HeaderNames.ContentType, key)) 4021if (ReferenceEquals(HeaderNames.GrpcTimeout, key)) 4027if (ReferenceEquals(HeaderNames.MaxForwards, key)) 4056if (ReferenceEquals(HeaderNames.Authorization, key)) 4062if (ReferenceEquals(HeaderNames.CacheControl, key)) 4068if (ReferenceEquals(HeaderNames.GrpcEncoding, key)) 4074if (ReferenceEquals(HeaderNames.IfNoneMatch, key)) 4109if (ReferenceEquals(HeaderNames.AcceptCharset, key)) 4115if (ReferenceEquals(HeaderNames.ContentLength, key)) 4136if (ReferenceEquals(HeaderNames.AcceptEncoding, key)) 4142if (ReferenceEquals(HeaderNames.AcceptLanguage, key)) 4165if (ReferenceEquals(HeaderNames.IfModifiedSince, key)) 4171if (ReferenceEquals(HeaderNames.TransferEncoding, key)) 4194if (ReferenceEquals(HeaderNames.CorrelationContext, key)) 4200if (ReferenceEquals(HeaderNames.IfUnmodifiedSince, key)) 4206if (ReferenceEquals(HeaderNames.ProxyAuthorization, key)) 4235if (ReferenceEquals(HeaderNames.GrpcAcceptEncoding, key)) 4252if (ReferenceEquals(HeaderNames.UpgradeInsecureRequests, key)) 4269if (ReferenceEquals(HeaderNames.AccessControlRequestMethod, key)) 4286if (ReferenceEquals(HeaderNames.AccessControlRequestHeaders, key)) 4312if (ReferenceEquals(HeaderNames.TE, key)) 4337if (ReferenceEquals(HeaderNames.Via, key)) 4362if (ReferenceEquals(HeaderNames.Host, key)) 4372if (ReferenceEquals(HeaderNames.Date, key)) 4382if (ReferenceEquals(HeaderNames.From, key)) 4427if (ReferenceEquals(InternalHeaderNames.Path, key)) 4437if (ReferenceEquals(HeaderNames.Range, key)) 4472if (ReferenceEquals(HeaderNames.Accept, key)) 4482if (ReferenceEquals(HeaderNames.Cookie, key)) 4492if (ReferenceEquals(HeaderNames.Expect, key)) 4502if (ReferenceEquals(HeaderNames.Origin, key)) 4512if (ReferenceEquals(HeaderNames.Pragma, key)) 4577if (ReferenceEquals(InternalHeaderNames.Method, key)) 4587if (ReferenceEquals(InternalHeaderNames.Scheme, key)) 4597if (ReferenceEquals(HeaderNames.Baggage, key)) 4607if (ReferenceEquals(HeaderNames.Referer, key)) 4617if (ReferenceEquals(HeaderNames.Upgrade, key)) 4627if (ReferenceEquals(HeaderNames.Warning, key)) 4702if (ReferenceEquals(InternalHeaderNames.AltUsed, key)) 4712if (ReferenceEquals(HeaderNames.IfMatch, key)) 4722if (ReferenceEquals(HeaderNames.IfRange, key)) 4767if (ReferenceEquals(InternalHeaderNames.Protocol, key)) 4777if (ReferenceEquals(HeaderNames.Translate, key)) 4812if (ReferenceEquals(HeaderNames.Connection, key)) 4822if (ReferenceEquals(HeaderNames.UserAgent, key)) 4832if (ReferenceEquals(InternalHeaderNames.Authority, key)) 4842if (ReferenceEquals(HeaderNames.KeepAlive, key)) 4852if (ReferenceEquals(HeaderNames.RequestId, key)) 4862if (ReferenceEquals(HeaderNames.TraceState, key)) 4937if (ReferenceEquals(HeaderNames.TraceParent, key)) 4962if (ReferenceEquals(HeaderNames.ContentType, key)) 4972if (ReferenceEquals(HeaderNames.GrpcTimeout, key)) 4982if (ReferenceEquals(HeaderNames.MaxForwards, key)) 5027if (ReferenceEquals(HeaderNames.Authorization, key)) 5037if (ReferenceEquals(HeaderNames.CacheControl, key)) 5047if (ReferenceEquals(HeaderNames.GrpcEncoding, key)) 5057if (ReferenceEquals(HeaderNames.IfNoneMatch, key)) 5112if (ReferenceEquals(HeaderNames.AcceptCharset, key)) 5122if (ReferenceEquals(HeaderNames.ContentLength, key)) 5155if (ReferenceEquals(HeaderNames.AcceptEncoding, key)) 5165if (ReferenceEquals(HeaderNames.AcceptLanguage, key)) 5200if (ReferenceEquals(HeaderNames.IfModifiedSince, key)) 5210if (ReferenceEquals(HeaderNames.TransferEncoding, key)) 5245if (ReferenceEquals(HeaderNames.CorrelationContext, key)) 5255if (ReferenceEquals(HeaderNames.IfUnmodifiedSince, key)) 5265if (ReferenceEquals(HeaderNames.ProxyAuthorization, key)) 5310if (ReferenceEquals(HeaderNames.GrpcAcceptEncoding, key)) 5335if (ReferenceEquals(HeaderNames.UpgradeInsecureRequests, key)) 5360if (ReferenceEquals(HeaderNames.AccessControlRequestMethod, key)) 5385if (ReferenceEquals(HeaderNames.AccessControlRequestHeaders, key)) 5419if (ReferenceEquals(HeaderNames.TE, key)) 5444if (ReferenceEquals(HeaderNames.Via, key)) 5469if (ReferenceEquals(HeaderNames.Host, key)) 5479if (ReferenceEquals(HeaderNames.Date, key)) 5489if (ReferenceEquals(HeaderNames.From, key)) 5534if (ReferenceEquals(InternalHeaderNames.Path, key)) 5544if (ReferenceEquals(HeaderNames.Range, key)) 5579if (ReferenceEquals(HeaderNames.Accept, key)) 5589if (ReferenceEquals(HeaderNames.Cookie, key)) 5599if (ReferenceEquals(HeaderNames.Expect, key)) 5609if (ReferenceEquals(HeaderNames.Origin, key)) 5619if (ReferenceEquals(HeaderNames.Pragma, key)) 5684if (ReferenceEquals(InternalHeaderNames.Method, key)) 5694if (ReferenceEquals(InternalHeaderNames.Scheme, key)) 5704if (ReferenceEquals(HeaderNames.Baggage, key)) 5714if (ReferenceEquals(HeaderNames.Referer, key)) 5724if (ReferenceEquals(HeaderNames.Upgrade, key)) 5734if (ReferenceEquals(HeaderNames.Warning, key)) 5809if (ReferenceEquals(InternalHeaderNames.AltUsed, key)) 5819if (ReferenceEquals(HeaderNames.IfMatch, key)) 5829if (ReferenceEquals(HeaderNames.IfRange, key)) 5874if (ReferenceEquals(InternalHeaderNames.Protocol, key)) 5884if (ReferenceEquals(HeaderNames.Translate, key)) 5919if (ReferenceEquals(HeaderNames.Connection, key)) 5929if (ReferenceEquals(HeaderNames.UserAgent, key)) 5939if (ReferenceEquals(InternalHeaderNames.Authority, key)) 5949if (ReferenceEquals(HeaderNames.KeepAlive, key)) 5959if (ReferenceEquals(HeaderNames.RequestId, key)) 5969if (ReferenceEquals(HeaderNames.TraceState, key)) 6044if (ReferenceEquals(HeaderNames.TraceParent, key)) 6069if (ReferenceEquals(HeaderNames.ContentType, key)) 6079if (ReferenceEquals(HeaderNames.GrpcTimeout, key)) 6089if (ReferenceEquals(HeaderNames.MaxForwards, key)) 6134if (ReferenceEquals(HeaderNames.Authorization, key)) 6144if (ReferenceEquals(HeaderNames.CacheControl, key)) 6154if (ReferenceEquals(HeaderNames.GrpcEncoding, key)) 6164if (ReferenceEquals(HeaderNames.IfNoneMatch, key)) 6219if (ReferenceEquals(HeaderNames.AcceptCharset, key)) 6229if (ReferenceEquals(HeaderNames.ContentLength, key)) 6262if (ReferenceEquals(HeaderNames.AcceptEncoding, key)) 6272if (ReferenceEquals(HeaderNames.AcceptLanguage, key)) 6307if (ReferenceEquals(HeaderNames.IfModifiedSince, key)) 6317if (ReferenceEquals(HeaderNames.TransferEncoding, key)) 6352if (ReferenceEquals(HeaderNames.CorrelationContext, key)) 6362if (ReferenceEquals(HeaderNames.IfUnmodifiedSince, key)) 6372if (ReferenceEquals(HeaderNames.ProxyAuthorization, key)) 6417if (ReferenceEquals(HeaderNames.GrpcAcceptEncoding, key)) 6442if (ReferenceEquals(HeaderNames.UpgradeInsecureRequests, key)) 6467if (ReferenceEquals(HeaderNames.AccessControlRequestMethod, key)) 6492if (ReferenceEquals(HeaderNames.AccessControlRequestHeaders, key)) 7781var customEncoding = ReferenceEquals(EncodingSelector, KestrelServerOptions.DefaultHeaderEncodingSelector) 7990var customEncoding = ReferenceEquals(EncodingSelector, KestrelServerOptions.DefaultHeaderEncodingSelector) 8159var customEncoding = ReferenceEquals(EncodingSelector, KestrelServerOptions.DefaultHeaderEncodingSelector) 10882if (ReferenceEquals(HeaderNames.Age, key)) 10891if (ReferenceEquals(HeaderNames.Via, key)) 10923if (ReferenceEquals(HeaderNames.Date, key)) 10932if (ReferenceEquals(HeaderNames.ETag, key)) 10941if (ReferenceEquals(HeaderNames.Vary, key)) 10982if (ReferenceEquals(HeaderNames.Allow, key)) 11005if (ReferenceEquals(HeaderNames.Server, key)) 11014if (ReferenceEquals(HeaderNames.Pragma, key)) 11046if (ReferenceEquals(HeaderNames.AltSvc, key)) 11055if (ReferenceEquals(HeaderNames.Expires, key)) 11064if (ReferenceEquals(HeaderNames.Trailer, key)) 11073if (ReferenceEquals(HeaderNames.Upgrade, key)) 11082if (ReferenceEquals(HeaderNames.Warning, key)) 11141if (ReferenceEquals(HeaderNames.Location, key)) 11164if (ReferenceEquals(HeaderNames.Connection, key)) 11173if (ReferenceEquals(HeaderNames.KeepAlive, key)) 11182if (ReferenceEquals(HeaderNames.SetCookie, key)) 11223if (ReferenceEquals(HeaderNames.ContentMD5, key)) 11232if (ReferenceEquals(HeaderNames.RetryAfter, key)) 11264if (ReferenceEquals(HeaderNames.ContentType, key)) 11287if (ReferenceEquals(HeaderNames.AcceptRanges, key)) 11296if (ReferenceEquals(HeaderNames.CacheControl, key)) 11305if (ReferenceEquals(HeaderNames.ContentRange, key)) 11314if (ReferenceEquals(HeaderNames.GrpcEncoding, key)) 11323if (ReferenceEquals(HeaderNames.LastModified, key)) 11382if (ReferenceEquals(HeaderNames.ContentLength, key)) 11405if (ReferenceEquals(HeaderNames.ContentEncoding, key)) 11414if (ReferenceEquals(HeaderNames.ContentLanguage, key)) 11423if (ReferenceEquals(HeaderNames.ContentLocation, key)) 11432if (ReferenceEquals(HeaderNames.ProxyConnection, key)) 11441if (ReferenceEquals(HeaderNames.WWWAuthenticate, key)) 11500if (ReferenceEquals(HeaderNames.TransferEncoding, key)) 11523if (ReferenceEquals(HeaderNames.ProxyAuthenticate, key)) 11546if (ReferenceEquals(HeaderNames.AccessControlMaxAge, key)) 11569if (ReferenceEquals(HeaderNames.AccessControlAllowOrigin, key)) 11592if (ReferenceEquals(HeaderNames.AccessControlAllowHeaders, key)) 11601if (ReferenceEquals(HeaderNames.AccessControlAllowMethods, key)) 11633if (ReferenceEquals(HeaderNames.AccessControlExposeHeaders, key)) 11656if (ReferenceEquals(HeaderNames.AccessControlAllowCredentials, key)) 11689if (ReferenceEquals(HeaderNames.Age, key)) 11695if (ReferenceEquals(HeaderNames.Via, key)) 11718if (ReferenceEquals(HeaderNames.Date, key)) 11725if (ReferenceEquals(HeaderNames.ETag, key)) 11731if (ReferenceEquals(HeaderNames.Vary, key)) 11761if (ReferenceEquals(HeaderNames.Allow, key)) 11778if (ReferenceEquals(HeaderNames.Server, key)) 11785if (ReferenceEquals(HeaderNames.Pragma, key)) 11809if (ReferenceEquals(HeaderNames.AltSvc, key)) 11816if (ReferenceEquals(HeaderNames.Expires, key)) 11822if (ReferenceEquals(HeaderNames.Trailer, key)) 11828if (ReferenceEquals(HeaderNames.Upgrade, key)) 11834if (ReferenceEquals(HeaderNames.Warning, key)) 11876if (ReferenceEquals(HeaderNames.Location, key)) 11893if (ReferenceEquals(HeaderNames.Connection, key)) 11900if (ReferenceEquals(HeaderNames.KeepAlive, key)) 11906if (ReferenceEquals(HeaderNames.SetCookie, key)) 11936if (ReferenceEquals(HeaderNames.ContentMD5, key)) 11942if (ReferenceEquals(HeaderNames.RetryAfter, key)) 11965if (ReferenceEquals(HeaderNames.ContentType, key)) 11982if (ReferenceEquals(HeaderNames.AcceptRanges, key)) 11988if (ReferenceEquals(HeaderNames.CacheControl, key)) 11994if (ReferenceEquals(HeaderNames.ContentRange, key)) 12000if (ReferenceEquals(HeaderNames.GrpcEncoding, key)) 12006if (ReferenceEquals(HeaderNames.LastModified, key)) 12047if (ReferenceEquals(HeaderNames.ContentLength, key)) 12062if (ReferenceEquals(HeaderNames.ContentEncoding, key)) 12068if (ReferenceEquals(HeaderNames.ContentLanguage, key)) 12074if (ReferenceEquals(HeaderNames.ContentLocation, key)) 12080if (ReferenceEquals(HeaderNames.ProxyConnection, key)) 12086if (ReferenceEquals(HeaderNames.WWWAuthenticate, key)) 12127if (ReferenceEquals(HeaderNames.TransferEncoding, key)) 12146if (ReferenceEquals(HeaderNames.ProxyAuthenticate, key)) 12163if (ReferenceEquals(HeaderNames.AccessControlMaxAge, key)) 12180if (ReferenceEquals(HeaderNames.AccessControlAllowOrigin, key)) 12197if (ReferenceEquals(HeaderNames.AccessControlAllowHeaders, key)) 12203if (ReferenceEquals(HeaderNames.AccessControlAllowMethods, key)) 12226if (ReferenceEquals(HeaderNames.AccessControlExposeHeaders, key)) 12243if (ReferenceEquals(HeaderNames.AccessControlAllowCredentials, key)) 12270if (ReferenceEquals(HeaderNames.Age, key)) 12280if (ReferenceEquals(HeaderNames.Via, key)) 12315if (ReferenceEquals(HeaderNames.Date, key)) 12326if (ReferenceEquals(HeaderNames.ETag, key)) 12336if (ReferenceEquals(HeaderNames.Vary, key)) 12382if (ReferenceEquals(HeaderNames.Allow, key)) 12407if (ReferenceEquals(HeaderNames.Server, key)) 12418if (ReferenceEquals(HeaderNames.Pragma, key)) 12454if (ReferenceEquals(HeaderNames.AltSvc, key)) 12465if (ReferenceEquals(HeaderNames.Expires, key)) 12475if (ReferenceEquals(HeaderNames.Trailer, key)) 12485if (ReferenceEquals(HeaderNames.Upgrade, key)) 12495if (ReferenceEquals(HeaderNames.Warning, key)) 12561if (ReferenceEquals(HeaderNames.Location, key)) 12586if (ReferenceEquals(HeaderNames.Connection, key)) 12597if (ReferenceEquals(HeaderNames.KeepAlive, key)) 12607if (ReferenceEquals(HeaderNames.SetCookie, key)) 12653if (ReferenceEquals(HeaderNames.ContentMD5, key)) 12663if (ReferenceEquals(HeaderNames.RetryAfter, key)) 12698if (ReferenceEquals(HeaderNames.ContentType, key)) 12723if (ReferenceEquals(HeaderNames.AcceptRanges, key)) 12733if (ReferenceEquals(HeaderNames.CacheControl, key)) 12743if (ReferenceEquals(HeaderNames.ContentRange, key)) 12753if (ReferenceEquals(HeaderNames.GrpcEncoding, key)) 12763if (ReferenceEquals(HeaderNames.LastModified, key)) 12828if (ReferenceEquals(HeaderNames.ContentLength, key)) 12851if (ReferenceEquals(HeaderNames.ContentEncoding, key)) 12861if (ReferenceEquals(HeaderNames.ContentLanguage, key)) 12871if (ReferenceEquals(HeaderNames.ContentLocation, key)) 12881if (ReferenceEquals(HeaderNames.ProxyConnection, key)) 12891if (ReferenceEquals(HeaderNames.WWWAuthenticate, key)) 12956if (ReferenceEquals(HeaderNames.TransferEncoding, key)) 12983if (ReferenceEquals(HeaderNames.ProxyAuthenticate, key)) 13008if (ReferenceEquals(HeaderNames.AccessControlMaxAge, key)) 13033if (ReferenceEquals(HeaderNames.AccessControlAllowOrigin, key)) 13058if (ReferenceEquals(HeaderNames.AccessControlAllowHeaders, key)) 13068if (ReferenceEquals(HeaderNames.AccessControlAllowMethods, key)) 13103if (ReferenceEquals(HeaderNames.AccessControlExposeHeaders, key)) 13128if (ReferenceEquals(HeaderNames.AccessControlAllowCredentials, key)) 13162if (ReferenceEquals(HeaderNames.Age, key)) 13172if (ReferenceEquals(HeaderNames.Via, key)) 13207if (ReferenceEquals(HeaderNames.Date, key)) 13218if (ReferenceEquals(HeaderNames.ETag, key)) 13228if (ReferenceEquals(HeaderNames.Vary, key)) 13274if (ReferenceEquals(HeaderNames.Allow, key)) 13299if (ReferenceEquals(HeaderNames.Server, key)) 13310if (ReferenceEquals(HeaderNames.Pragma, key)) 13346if (ReferenceEquals(HeaderNames.AltSvc, key)) 13357if (ReferenceEquals(HeaderNames.Expires, key)) 13367if (ReferenceEquals(HeaderNames.Trailer, key)) 13377if (ReferenceEquals(HeaderNames.Upgrade, key)) 13387if (ReferenceEquals(HeaderNames.Warning, key)) 13453if (ReferenceEquals(HeaderNames.Location, key)) 13478if (ReferenceEquals(HeaderNames.Connection, key)) 13489if (ReferenceEquals(HeaderNames.KeepAlive, key)) 13499if (ReferenceEquals(HeaderNames.SetCookie, key)) 13545if (ReferenceEquals(HeaderNames.ContentMD5, key)) 13555if (ReferenceEquals(HeaderNames.RetryAfter, key)) 13590if (ReferenceEquals(HeaderNames.ContentType, key)) 13615if (ReferenceEquals(HeaderNames.AcceptRanges, key)) 13625if (ReferenceEquals(HeaderNames.CacheControl, key)) 13635if (ReferenceEquals(HeaderNames.ContentRange, key)) 13645if (ReferenceEquals(HeaderNames.GrpcEncoding, key)) 13655if (ReferenceEquals(HeaderNames.LastModified, key)) 13720if (ReferenceEquals(HeaderNames.ContentLength, key)) 13743if (ReferenceEquals(HeaderNames.ContentEncoding, key)) 13753if (ReferenceEquals(HeaderNames.ContentLanguage, key)) 13763if (ReferenceEquals(HeaderNames.ContentLocation, key)) 13773if (ReferenceEquals(HeaderNames.ProxyConnection, key)) 13783if (ReferenceEquals(HeaderNames.WWWAuthenticate, key)) 13848if (ReferenceEquals(HeaderNames.TransferEncoding, key)) 13875if (ReferenceEquals(HeaderNames.ProxyAuthenticate, key)) 13900if (ReferenceEquals(HeaderNames.AccessControlMaxAge, key)) 13925if (ReferenceEquals(HeaderNames.AccessControlAllowOrigin, key)) 13950if (ReferenceEquals(HeaderNames.AccessControlAllowHeaders, key)) 13960if (ReferenceEquals(HeaderNames.AccessControlAllowMethods, key)) 13995if (ReferenceEquals(HeaderNames.AccessControlExposeHeaders, key)) 14020if (ReferenceEquals(HeaderNames.AccessControlAllowCredentials, key)) 15169var encoding = ReferenceEquals(EncodingSelector, KestrelServerOptions.DefaultHeaderEncodingSelector) 17179if (ReferenceEquals(HeaderNames.ETag, key)) 17202if (ReferenceEquals(HeaderNames.GrpcStatus, key)) 17225if (ReferenceEquals(HeaderNames.GrpcMessage, key)) 17258if (ReferenceEquals(HeaderNames.ETag, key)) 17275if (ReferenceEquals(HeaderNames.GrpcStatus, key)) 17292if (ReferenceEquals(HeaderNames.GrpcMessage, key)) 17319if (ReferenceEquals(HeaderNames.ETag, key)) 17344if (ReferenceEquals(HeaderNames.GrpcStatus, key)) 17369if (ReferenceEquals(HeaderNames.GrpcMessage, key)) 17403if (ReferenceEquals(HeaderNames.ETag, key)) 17428if (ReferenceEquals(HeaderNames.GrpcStatus, key)) 17453if (ReferenceEquals(HeaderNames.GrpcMessage, key))
Internal\Http\HttpProtocol.cs (4)
186if (ReferenceEquals(value, AspNetCore.Http.HttpProtocol.Http3)) 190else if (ReferenceEquals(value, AspNetCore.Http.HttpProtocol.Http2)) 194else if (ReferenceEquals(value, AspNetCore.Http.HttpProtocol.Http11)) 198else if (ReferenceEquals(value, AspNetCore.Http.HttpProtocol.Http10))
Internal\Http\HttpProtocol.FeatureCollection.cs (1)
92if (!ReferenceEquals(_requestStreamInternal, RequestBody))
Internal\Http\HttpResponseHeaders.cs (1)
47if (ReferenceEquals(encodingSelector, KestrelServerOptions.DefaultHeaderEncodingSelector))
Internal\Http2\Http2Stream.cs (1)
299if (!ReferenceEquals(headerScheme, Scheme) &&
Internal\Http3\Http3Stream.cs (1)
1020if (!ReferenceEquals(headerScheme, Scheme) &&
Internal\Http3\QPackHeaderWriter.cs (1)
83var valueEncoding = ReferenceEquals(headersEnumerator.EncodingSelector, KestrelServerOptions.DefaultHeaderEncodingSelector)
Internal\Infrastructure\HttpUtilities.cs (2)
119if (ReferenceEquals(KestrelServerOptions.DefaultHeaderEncodingSelector, encodingSelector)) 163if (ReferenceEquals(encoding, Encoding.Latin1))
Internal\Infrastructure\KestrelEventSource.cs (1)
269if (!weakReference.TryGetTarget(out var target) || ReferenceEquals(target, options))
Internal\Infrastructure\PipeWriterHelpers\ConcurrentPipeWriter.cs (1)
296if (ReferenceEquals(_completeException, _successfullyCompletedSentinel))
Internal\Infrastructure\StreamCloseAwaitable.cs (4)
18public bool IsCompleted => ReferenceEquals(_callback, _callbackCompleted); 22Debug.Assert(ReferenceEquals(_callback, _callbackCompleted)); 29if (ReferenceEquals(_callback, _callbackCompleted) || 30ReferenceEquals(Interlocked.CompareExchange(ref _callback, continuation, null), _callbackCompleted))
src\Servers\Kestrel\shared\HPackHeaderWriter.cs (1)
127ReferenceEquals(headersEnumerator.EncodingSelector, KestrelServerOptions.DefaultHeaderEncodingSelector)
src\Shared\runtime\Http2\Hpack\HPackEncoder.cs (2)
464int encodedStringLength = valueEncoding is null || ReferenceEquals(valueEncoding, Encoding.Latin1) 533if (valueEncoding is null || ReferenceEquals(valueEncoding, Encoding.Latin1))
src\Shared\runtime\Http3\QPack\QPackEncoder.cs (2)
188int encodedStringLength = valueEncoding is null || ReferenceEquals(valueEncoding, Encoding.Latin1) 239if (valueEncoding is null || ReferenceEquals(valueEncoding, Encoding.Latin1))
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (5)
Http1\Http1HttpProtocolFeatureCollectionTests.cs (1)
204var matches = _collection.Where(kv => ReferenceEquals(kv.Value, item.Value)).ToList();
HttpRequestHeadersTests.cs (1)
677if (ReferenceEquals(headerName, HeaderNames.Accept))
src\Servers\Kestrel\shared\HPackHeaderWriter.cs (1)
127ReferenceEquals(headersEnumerator.EncodingSelector, KestrelServerOptions.DefaultHeaderEncodingSelector)
StartLineTests.cs (2)
221Assert.True(query.Length == 0 || !ReferenceEquals(query, Http1Connection.QueryString)); 314Assert.True(query.Length == 0 || !ReferenceEquals(query, Http1Connection.QueryString));
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
src\Servers\Kestrel\shared\HPackHeaderWriter.cs (1)
127ReferenceEquals(headersEnumerator.EncodingSelector, KestrelServerOptions.DefaultHeaderEncodingSelector)
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (2)
Internal\SocketAwaitableEventArgs.cs (2)
66return !ReferenceEquals(_continuation, _continuationCompleted) ? ValueTaskSourceStatus.Pending : 75if (ReferenceEquals(prevContinuation, _continuationCompleted))
Microsoft.AspNetCore.Shared.Tests (4)
src\Shared\runtime\Http2\Hpack\HPackEncoder.cs (2)
464int encodedStringLength = valueEncoding is null || ReferenceEquals(valueEncoding, Encoding.Latin1) 533if (valueEncoding is null || ReferenceEquals(valueEncoding, Encoding.Latin1))
src\Shared\runtime\Http3\QPack\QPackEncoder.cs (2)
188int encodedStringLength = valueEncoding is null || ReferenceEquals(valueEncoding, Encoding.Latin1) 239if (valueEncoding is null || ReferenceEquals(valueEncoding, Encoding.Latin1))
Microsoft.AspNetCore.SignalR.Client.Core (8)
HubConnection.cs (5)
1277SafeAssert(ReferenceEquals(expectedConnectionState, connectionState), "The connection state changed unexpectedly!"); 1735SafeAssert(ReferenceEquals(_state.CurrentConnectionStateUnsynchronized, connectionState), 1869SafeAssert(ReferenceEquals(_state.CurrentConnectionStateUnsynchronized, null), 1910SafeAssert(ReferenceEquals(_state.CurrentConnectionStateUnsynchronized, null), 2366SafeAssert(ReferenceEquals(_hubConnection._state.CurrentConnectionStateUnsynchronized, this),
src\SignalR\common\Shared\TimerAwaitable.cs (3)
65public bool IsCompleted => ReferenceEquals(_callback, _callbackCompleted); 82if (ReferenceEquals(_callback, _callbackCompleted) || 83ReferenceEquals(Interlocked.CompareExchange(ref _callback, continuation, null), _callbackCompleted))
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (12)
HubConnectionTests.Tracing.cs (12)
42ShouldListenTo = activitySource => ReferenceEquals(activitySource, serverSource) || ReferenceEquals(activitySource, clientSourceContainer.ActivitySource), 237ShouldListenTo = activitySource => ReferenceEquals(activitySource, serverSource) || ReferenceEquals(activitySource, clientSourceContainer.ActivitySource), 381ShouldListenTo = activitySource => ReferenceEquals(activitySource, serverSource) || ReferenceEquals(activitySource, clientSourceContainer.ActivitySource), 484ShouldListenTo = activitySource => ReferenceEquals(activitySource, serverSource) || ReferenceEquals(activitySource, clientSourceContainer.ActivitySource), 580ShouldListenTo = activitySource => ReferenceEquals(activitySource, serverSource) || ReferenceEquals(activitySource, clientSourceContainer.ActivitySource), 670ShouldListenTo = activitySource => ReferenceEquals(activitySource, serverSource) || ReferenceEquals(activitySource, clientSourceContainer.ActivitySource),
Microsoft.AspNetCore.SignalR.Client.Tests (5)
HubConnectionTests.Tracing.cs (5)
29ShouldListenTo = activitySource => ReferenceEquals(activitySource, clientSourceContainer.ActivitySource), 66ShouldListenTo = activitySource => ReferenceEquals(activitySource, clientSourceContainer.ActivitySource), 104ShouldListenTo = activitySource => ReferenceEquals(activitySource, clientSourceContainer.ActivitySource), 138ShouldListenTo = activitySource => ReferenceEquals(activitySource, clientSourceContainer.ActivitySource), 176ShouldListenTo = activitySource => ReferenceEquals(activitySource, clientSourceContainer.ActivitySource),
Microsoft.AspNetCore.SignalR.Tests (18)
HubConnectionHandlerTests.Activity.cs (18)
37ShouldListenTo = activitySource => (ReferenceEquals(activitySource, testSource)) 38|| ReferenceEquals(activitySource, hubMethodTestSource.ActivitySource) || ReferenceEquals(activitySource, signalrSource), 112ShouldListenTo = activitySource => (ReferenceEquals(activitySource, testSource)) 113|| ReferenceEquals(activitySource, hubMethodTestSource.ActivitySource) || ReferenceEquals(activitySource, signalrSource), 181ShouldListenTo = activitySource => (ReferenceEquals(activitySource, testSource)) 182|| ReferenceEquals(activitySource, signalrSource), 240ShouldListenTo = activitySource => (ReferenceEquals(activitySource, testSource)) 241|| ReferenceEquals(activitySource, signalrSource), 313ShouldListenTo = activitySource => (ReferenceEquals(activitySource, testSource)) 314|| ReferenceEquals(activitySource, signalrSource), 360ShouldListenTo = activitySource => (ReferenceEquals(activitySource, testSource)) 361|| ReferenceEquals(activitySource, signalrSource), 412ShouldListenTo = activitySource => (ReferenceEquals(activitySource, testSource)) 413|| ReferenceEquals(activitySource, signalrSource), 463ShouldListenTo = activitySource => (ReferenceEquals(activitySource, testSource)) 464|| ReferenceEquals(activitySource, signalrSource),
Microsoft.Build (51)
AssemblyNameExtension.cs (4)
683if (object.ReferenceEquals(this, that)) 698if (object.ReferenceEquals(asAssemblyName, that.asAssemblyName)) 897if (object.ReferenceEquals(this, that)) 912if (object.ReferenceEquals(asAssemblyName, that.asAssemblyName))
BackEnd\BuildManager\BuildManager.cs (2)
2228else if (unresolvedConfiguration.Project != null && resolvedConfiguration.Project != null && !ReferenceEquals(unresolvedConfiguration.Project, resolvedConfiguration.Project)) 3167if (ReferenceEquals(this, s_singletonInstance))
BackEnd\Components\BuildRequestEngine\FullyQualifiedBuildRequest.cs (1)
128if (ReferenceEquals(this, other))
BackEnd\Components\Caching\ResultsCache.cs (1)
71if (Object.ReferenceEquals(buildResult, result))
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (1)
819if (!object.ReferenceEquals(_clientToServerStream, _serverToClientStream))
BackEnd\Components\ProjectCache\ProjectCacheDescriptorEqualityComparer.cs (2)
20if (ReferenceEquals(x, y)) 31&& ReferenceEquals(x.PluginInstance, y.PluginInstance)
BackEnd\Components\RequestBuilder\Lookup.cs (1)
264ErrorUtilities.VerifyThrow(Object.ReferenceEquals(scopeToLeave, _lookupScopes.First.Value), "Attempting to leave with scope '{0}' but scope '{1}' is on top of the stack.", scopeToLeave.Description, _lookupScopes.First.Value.Description);
BackEnd\Components\RequestBuilder\TargetBuilder.cs (1)
304while (!Object.ReferenceEquals(_targetsToBuild.Peek(), currentTargetEntry))
BackEnd\Shared\BuildRequestConfiguration.cs (1)
1014if (ReferenceEquals(this, other))
BackEnd\Shared\BuildResult.cs (2)
571if (ReferenceEquals(this, results) || ReferenceEquals(_resultsByTarget, results._resultsByTarget))
BackEnd\Shared\ConfigurationMetadata.cs (1)
163if (ReferenceEquals(this, other))
BuildCheck\Infrastructure\CustomConfigurationData.cs (2)
49if (ReferenceEquals(null, obj)) 54if (ReferenceEquals(this, obj))
Collections\CopyOnWritePropertyDictionary.cs (2)
169if (ReferenceEquals(thisBacking, thatBacking)) 216if (ReferenceEquals(thisBacking, otherCopyOnWritePropertyDictionary._backing))
Collections\MultiDictionary.cs (2)
270if (ReferenceEquals((TT)_entry, value)) 283if (ReferenceEquals(value, list[i]))
Collections\PropertyDictionary.cs (2)
274if (ReferenceEquals(this, other)) 417return ReferenceEquals(value, item.Value);
Collections\RetrievableEntryHashSet\RetrievableEntryHashSet.cs (2)
870if (Object.ReferenceEquals(this, other)) 883if (!TryGetValue(element.Key, out ours) || !Object.ReferenceEquals(element, ours))
Construction\ProjectElement.cs (1)
461if (ReferenceEquals(newElement, XmlElement))
Construction\ProjectElementContainer.cs (2)
317if (ReferenceEquals(child, FirstChild)) 322if (ReferenceEquals(child, LastChild))
Construction\Solution\SolutionFile.cs (1)
833if (ReferenceEquals(proj, otherProj))
CopyOnWriteDictionary.cs (1)
381return ReferenceEquals(other._backing, _backing);
Definition\Project.cs (6)
1809ErrorUtilities.VerifyThrowInvalidOperation(ReferenceEquals(Xml, otherXml), "OM_CannotModifyEvaluatedObjectInImportedFile", otherXml.Location.File); 2938ReferenceEquals(property.Xml.ContainingProject, Xml)) 3360if (ReferenceEquals(Xml, xmlRootElement)) 3365if (_data.ImportClosure.Any(import => ReferenceEquals(import.ImportedProject, xmlRootElement))) 3585ErrorUtilities.VerifyThrowInvalidOperation(ReferenceEquals(Xml, otherXml), "OM_CannotModifyEvaluatedObjectInImportedFile", otherXml.Location.File); 3927IEnumerable<ProjectRootElement> children = _data.ImportClosure.Where(resolvedImport => ReferenceEquals(resolvedImport.ImportingElement, import)).Select(triple => triple.ImportedProject);
Definition\ProjectCollection.cs (1)
1611ErrorUtilities.VerifyThrowInvalidOperation(ReferenceEquals(project.ProjectCollection, this), "OM_IncorrectObjectAssociation", "Project", "ProjectCollection");
Definition\ProjectItem.cs (1)
251bool isImported = !Object.ReferenceEquals(_xml.ContainingProject, _project.Xml);
Definition\ProjectMetadata.cs (2)
214bool isImported = !Object.ReferenceEquals(_xml.ContainingProject, _parent.Project.Xml); 280if (Object.ReferenceEquals(this, other))
Definition\ProjectProperty.cs (2)
255if (Object.ReferenceEquals(this, other)) 477bool isImported = !Object.ReferenceEquals(_xml.ContainingProject, _project.Xml);
Definition\ResolvedImport.cs (1)
46IsImported = importingElement != null && !ReferenceEquals(project.Xml, importingElement.ContainingProject);
Evaluation\ProjectRootElementCache.cs (2)
561if (existingWeakEntry != null && !object.ReferenceEquals(existingWeakEntry, projectRootElement)) 589if (Object.ReferenceEquals(node.Value, projectRootElement))
Instance\ProjectItemInstance.cs (1)
1609if (Object.ReferenceEquals(this, other))
Instance\ProjectMetadataInstance.cs (1)
197if (Object.ReferenceEquals(this, other))
Instance\ProjectPropertyInstance.cs (1)
151if (ReferenceEquals(this, other))
MSBuildNameIgnoreCaseComparer.cs (1)
57if (ReferenceEquals(compareToString, constrainedString))
Microsoft.Build.BuildCheck.UnitTests (1)
EditorConfig_Tests.cs (1)
724if (ReferenceEquals(expected, actual))
Microsoft.Build.Engine.OM.UnitTests (85)
Construction\ConstructionEditing_Tests.cs (1)
2198Assert.True(Object.ReferenceEquals(property1, property2));
Construction\ElementLocationPublic_Tests.cs (2)
76Assert.True(Object.ReferenceEquals(e1, target.Location)); 77Assert.True(Object.ReferenceEquals(e2, target.OutputsLocation));
Construction\ProjectRootElement_Tests.cs (5)
180Assert.True(object.ReferenceEquals(projectXml1, projectXml2)); 196Assert.True(object.ReferenceEquals(projectXml1, projectXml2)); 212Assert.True(object.ReferenceEquals(projectXml1, projectXml2)); 231Assert.True(object.ReferenceEquals(projectXml1, projectXml2)); 250Assert.True(object.ReferenceEquals(projectXml1, projectXml2));
Definition\DefinitionEditing_Tests.cs (18)
484Assert.True(object.ReferenceEquals(item1, item2)); 547Assert.True(object.ReferenceEquals(item1, item2)); 572Assert.False(object.ReferenceEquals(item1, item2)); 899Assert.True(object.ReferenceEquals(item.Xml, newItemElement)); 927Assert.True(object.ReferenceEquals(item.Xml, newItemElement)); 953Assert.True(object.ReferenceEquals(item.Xml, newItemElement)); 1190Assert.True(object.ReferenceEquals(itemGroupElement, item.Xml.Parent)); 1198Assert.True(object.ReferenceEquals(item, Helpers.GetFirst(project.GetItems("j")))); 1199Assert.True(object.ReferenceEquals(item, Helpers.GetFirst(project.GetItemsIgnoringCondition("j")))); 1200Assert.True(object.ReferenceEquals(item, Helpers.GetFirst(project.GetItemsByEvaluatedInclude("i1")))); 1237Assert.True(object.ReferenceEquals(itemElement, metadatumElement1.Parent)); 1284Assert.True(object.ReferenceEquals(itemGroupElement, item.Xml.Parent)); 1285Assert.True(object.ReferenceEquals(itemGroupElement, Helpers.GetFirst(project.GetItems("i")).Xml.Parent)); 1942Assert.True(object.ReferenceEquals(metadatum1, metadatum2)); 1955Assert.True(object.ReferenceEquals(items[0].Xml, items[1].Xml)); 2405Assert.True(object.ReferenceEquals(item1, item2)); 2464Assert.True(object.ReferenceEquals(item1, item2)); 2489Assert.False(object.ReferenceEquals(item1, item2));
Definition\Project_Tests.cs (17)
612object.ReferenceEquals(imports.First().ImportingElement, xml.Imports.ElementAt(0)).ShouldBeTrue(); 616object.ReferenceEquals(imports.First().ImportedProject, ProjectRootElement.Open(importPath)).ShouldBeTrue(); 1652object.ReferenceEquals(property1, property2).ShouldBeFalse(); // different object indicates reevaluation occurred 2576object.ReferenceEquals(zero, logicalProject[0].ContainingProject).ShouldBeTrue(); 2577object.ReferenceEquals(zero, logicalProject[1].ContainingProject).ShouldBeTrue(); 2578object.ReferenceEquals(one, logicalProject[2].ContainingProject).ShouldBeTrue(); 2579object.ReferenceEquals(one, logicalProject[3].ContainingProject).ShouldBeTrue(); 2580object.ReferenceEquals(three, logicalProject[4].ContainingProject).ShouldBeTrue(); 2581object.ReferenceEquals(three, logicalProject[5].ContainingProject).ShouldBeTrue(); 2582object.ReferenceEquals(two, logicalProject[6].ContainingProject).ShouldBeTrue(); 2583object.ReferenceEquals(two, logicalProject[7].ContainingProject).ShouldBeTrue(); 2622object.ReferenceEquals(zero, logicalProject[0].ContainingProject).ShouldBeTrue(); // PropertyGroup 2623object.ReferenceEquals(zero, logicalProject[1].ContainingProject).ShouldBeTrue(); // p = 0 2624object.ReferenceEquals(one, logicalProject[2].ContainingProject).ShouldBeTrue(); // PropertyGroup 2625object.ReferenceEquals(one, logicalProject[3].ContainingProject).ShouldBeTrue(); // p = 1 2626object.ReferenceEquals(two, logicalProject[4].ContainingProject).ShouldBeTrue(); // PropertyGroup 2627object.ReferenceEquals(two, logicalProject[5].ContainingProject).ShouldBeTrue(); // p = 2
Definition\ProjectCollection_Tests.cs (16)
73Assert.True(ReferenceEquals(project, project2)); 102Assert.True(ReferenceEquals(project, project2)); 131Assert.True(ReferenceEquals(project, project2)); 151Assert.True(ReferenceEquals(project, project2)); 328Assert.True(ReferenceEquals(project2, collection.LoadProject("c:\\1"))); 329Assert.False(ReferenceEquals(project1, collection.LoadProject("c:\\1"))); 350Assert.True(ReferenceEquals(project1.Xml, project1b.Xml)); 355Assert.False(ReferenceEquals(project1.Xml, project2.Xml)); 425Assert.True(ReferenceEquals(project1, ProjectCollection.GlobalProjectCollection.LoadProject(projectDirectory, globalProperties1, ObjectModelHelpers.MSBuildDefaultToolsVersion))); 426Assert.True(ReferenceEquals(project2, ProjectCollection.GlobalProjectCollection.LoadProject(projectDirectory, globalProperties2, ObjectModelHelpers.MSBuildDefaultToolsVersion))); 513Assert.True(ReferenceEquals(project1, ProjectCollection.GlobalProjectCollection.LoadProject("c:\\1", null, "2.0"))); 514Assert.True(ReferenceEquals(project2, ProjectCollection.GlobalProjectCollection.LoadProject("c:\\1", null, ObjectModelHelpers.MSBuildDefaultToolsVersion))); 536Assert.True(ReferenceEquals(project, project2)); 558Assert.True(ReferenceEquals(project, project2)); 575Assert.True(ReferenceEquals(project, newProject)); 794Assert.True(ReferenceEquals(project, Helpers.MakeList(ProjectCollection.GlobalProjectCollection.LoadedProjects)[0]));
Definition\ProjectItem_Tests.cs (16)
82Assert.True(Object.ReferenceEquals(project, item.Project)); 172Assert.True(Object.ReferenceEquals(m0, idm0)); 173Assert.False(Object.ReferenceEquals(m1, idm1)); 1208Assert.True(Object.ReferenceEquals(item1.GetMetadata("m").Xml, item2.GetMetadata("m").Xml)); 1406Assert.True(Object.ReferenceEquals(project.GetItems("i").First().GetMetadata("l").Xml, project.GetItems("m").First().GetMetadata("l").Xml)); 1407Assert.True(Object.ReferenceEquals(project.GetItems("i").First().GetMetadata("m").Xml, project.GetItems("m").First().GetMetadata("m").Xml)); 1408Assert.True(Object.ReferenceEquals(project.GetItems("i").First().GetMetadata("n").Xml, project.GetItems("m").First().GetMetadata("n").Xml)); 1409Assert.True(Object.ReferenceEquals(project.GetItems("j").First().GetMetadata("o").Xml, project.GetItems("k").First().GetMetadata("o").Xml)); 1410Assert.True(Object.ReferenceEquals(project.GetItems("k").First().GetMetadata("p").Xml, project.GetItems("m").First().GetMetadata("p").Xml)); 1411Assert.True(!Object.ReferenceEquals(project.GetItems("j").First().GetMetadata("p").Xml, project.GetItems("m").First().GetMetadata("p").Xml)); 1504Assert.True(Object.ReferenceEquals(project.GetItems("i").First().GetMetadata("l").Xml, project.GetItems("m").First().GetMetadata("l").Xml)); 1505Assert.True(Object.ReferenceEquals(project.GetItems("i").First().GetMetadata("m").Xml, project.GetItems("m").First().GetMetadata("m").Xml)); 1506Assert.True(Object.ReferenceEquals(project.GetItems("i").First().GetMetadata("n").Xml, project.GetItems("m").First().GetMetadata("n").Xml)); 1507Assert.True(Object.ReferenceEquals(project.GetItems("j").First().GetMetadata("o").Xml, project.GetItems("k").First().GetMetadata("o").Xml)); 1508Assert.True(Object.ReferenceEquals(project.GetItems("k").First().GetMetadata("p").Xml, project.GetItems("m").First().GetMetadata("p").Xml)); 1509Assert.True(!Object.ReferenceEquals(project.GetItems("j").First().GetMetadata("p").Xml, project.GetItems("m").First().GetMetadata("p").Xml));
Definition\ProjectMetadata_Tests.cs (1)
33Assert.True(Object.ReferenceEquals(project, metadatum.Project));
Definition\ProjectProperty_Tests.cs (1)
32Assert.True(Object.ReferenceEquals(project, property.Project));
Instance\ProjectInstance_Tests.cs (6)
135Assert.True(object.ReferenceEquals(returned, Helpers.MakeList(p.GetItems("i"))[0])); 226Assert.False(Object.ReferenceEquals(first, second)); 238Assert.False(Object.ReferenceEquals(first.GetProperty("p1"), second.GetProperty("p1"))); 241Assert.True(Object.ReferenceEquals(newProperty, first.GetProperty("p1"))); 331Assert.False(Object.ReferenceEquals(Helpers.MakeList(first.GetItems("i"))[0], Helpers.MakeList(second.GetItems("i"))[0])); 914Assert.True(Object.ReferenceEquals(protoInstance, instance));
ObjectModelRemoting\Helpers\ViewValidation.construction.cs (2)
250if (object.ReferenceEquals(expected, actual)) 439if (!object.ReferenceEquals(viewChild.Parent, viewXml))
Microsoft.Build.Engine.UnitTests (31)
BackEnd\BinaryTranslator_Tests.cs (2)
885if (ReferenceEquals(null, obj)) 890if (ReferenceEquals(this, obj))
BackEnd\LoggingServicesLogMethod_Tests.cs (1)
1306Assert.False(Object.ReferenceEquals(actualEventArgs.Properties, properties));
BackEnd\NodePackets_Tests.cs (1)
361Assert.True(Object.ReferenceEquals(buildEvent, packet.NodeBuildEvent.Value.Value)); // "Expected buildEvent to have the same object reference as packet.BuildEvent"
BackEnd\TaskHost_Tests.cs (1)
112Assert.False(object.ReferenceEquals(targetOutputItem, mockItemInCache));
BackEnd\TranslationHelpers.cs (2)
57if (ReferenceEquals(left, right)) 92if (ReferenceEquals(left, right))
Collections\MSBuildNameIgnoreCaseComparer_Tests.cs (1)
54Assert.True(Object.ReferenceEquals(p, value)); // "Should have returned the same object as was inserted"
CopyOnWriteDictionary_Tests.cs (4)
36Assert.True(Object.ReferenceEquals(v1, v2)); 69Assert.True(Object.ReferenceEquals(v1, v2)); 104Assert.False(Object.ReferenceEquals(k1, k2)); 108Assert.True(Object.ReferenceEquals(v1, v2));
Definition\Project_Internal_Tests.cs (1)
98Assert.True(Object.ReferenceEquals(project, project2));
Definition\ProjectItem_Tests.cs (1)
41Assert.True(Object.ReferenceEquals(item1.DirectMetadata.First().Xml, item2.DirectMetadata.First().Xml));
Evaluation\Evaluator_Tests.cs (9)
1491Assert.True(Object.ReferenceEquals(xml1, property.Predecessor.Predecessor.Xml)); 1517Assert.True(Object.ReferenceEquals(importXml, predecessorXmlRoot)); 1568Assert.True(Object.ReferenceEquals(xml1, metadatum.Predecessor.Predecessor.Xml)); 1628Assert.True(Object.ReferenceEquals(xml1, metadatum.Predecessor.Predecessor.Xml)); 1631Assert.True(Object.ReferenceEquals(xml2, metadatum.Predecessor.Xml)); 1666Assert.True(Object.ReferenceEquals(xml1, metadatum.Predecessor.Xml)); 1698Assert.True(Object.ReferenceEquals(xml1, metadatum.Predecessor.Xml)); 1885Assert.True(Object.ReferenceEquals(import, predecessor.Xml.ContainingProject)); 1886Assert.True(Object.ReferenceEquals(project.Xml, predecessor.Predecessor.Xml.ContainingProject));
Evaluation\Expander_Tests.cs (1)
1650Assert.True(Object.ReferenceEquals(xmlattribute.Value, expandedString));
Evaluation\ProjectRootElementCache_Tests.cs (4)
123Assert.True(Object.ReferenceEquals(xml0, xml1)); 128Assert.False(Object.ReferenceEquals(xml0, xml2)); 157Assert.True(Object.ReferenceEquals(xml0, xml1)); 162Assert.True(Object.ReferenceEquals(xml0, xml2));
Instance\ProjectMetadataInstance_Internal_Tests.cs (1)
30Assert.False(Object.ReferenceEquals(metadata, clone));
Instance\ProjectPropertyInstance_Internal_Tests.cs (1)
30Assert.False(Object.ReferenceEquals(property, clone));
Instance\TaskItem_Tests.cs (1)
179Assert.False(object.ReferenceEquals(parent, clone)); // "The parent and the child should not be the same object"
Microsoft.Build.Framework (5)
BuildEventContext.cs (2)
243if (ReferenceEquals(this, obj)) 270if (ReferenceEquals(left, right))
Sdk\SdkReference.cs (2)
61if (ReferenceEquals(this, other)) 123if (ReferenceEquals(this, obj))
SegmentedArray`1.cs (1)
337if (ReferenceEquals(_items, o._items))
Microsoft.Build.Tasks.Core (13)
AssemblyDependency\TaskItemSpecFilenameComparer.cs (2)
37if (ReferenceEquals(o1, o2)) 50if (ReferenceEquals(x, y))
AssemblyNameExtension.cs (4)
683if (object.ReferenceEquals(this, that)) 698if (object.ReferenceEquals(asAssemblyName, that.asAssemblyName)) 897if (object.ReferenceEquals(this, that)) 912if (object.ReferenceEquals(asAssemblyName, that.asAssemblyName))
CopyOnWriteDictionary.cs (1)
381return ReferenceEquals(other._backing, _backing);
GetSDKReferenceFiles.cs (2)
788if (ReferenceEquals(other, this)) 867if (ReferenceEquals(other, this))
MSBuildNameIgnoreCaseComparer.cs (1)
57if (ReferenceEquals(compareToString, constrainedString))
ResolveSDKReference.cs (1)
966if (Object.ReferenceEquals(other, this))
RoslynCodeTaskFactory\RoslynCodeTaskFactoryTaskInfo.cs (2)
51if (ReferenceEquals(this, other)) 61if (ReferenceEquals(this, obj))
Microsoft.Build.UnitTests.Shared (2)
BuildEventArgsExtension.cs (2)
28if (Object.ReferenceEquals(args, other)) 346if (!Object.ReferenceEquals(args.TargetOutputs, other.TargetOutputs))
Microsoft.Build.Utilities.Core (3)
CopyOnWriteDictionary.cs (1)
381return ReferenceEquals(other._backing, _backing);
MSBuildNameIgnoreCaseComparer.cs (1)
57if (ReferenceEquals(compareToString, constrainedString))
TargetPlatformSDK.cs (1)
159if (ReferenceEquals(this, moniker))
Microsoft.CodeAnalysis (90)
Collections\ByteSequenceComparer.cs (3)
51return ReferenceEquals(left, right); 54if (ReferenceEquals(left, right) && leftStart == rightStart) 72if (ReferenceEquals(left, right))
Collections\ConsListExtensions.cs (1)
24if (ReferenceEquals(list.Head, element))
Collections\ImmutableHashSetExtensions.cs (1)
25if (ReferenceEquals(set, other))
CommandLine\AnalyzerConfigSet.cs (1)
82if (!ReferenceEquals(x[i], y[i]))
CommandLine\CommonCompiler.SuppressionDiagnostic.cs (1)
72if (ReferenceEquals(this, obj))
CommandLine\SarifDiagnosticComparer.cs (1)
39if (ReferenceEquals(x, y))
Compilation\Compilation.cs (3)
1220|| ReferenceEquals(addedType, val)); 1266if (!ReferenceEquals(corLib, Assembly)) 1273if (ReferenceEquals(referencedAssembly, corLib))
Compilation\CompilationOptions.cs (1)
615if (object.ReferenceEquals(other, null))
Compilation\ParseOptions.cs (1)
136if (object.ReferenceEquals(other, null))
ConstantValue.cs (6)
744return ReferenceEquals(this, Null); 752return ReferenceEquals(this, Nothing); 866if (ReferenceEquals(other, this)) 871if (ReferenceEquals(other, null)) 881if (ReferenceEquals(right, left)) 886if (ReferenceEquals(left, null))
ConstantValueSpecialized.cs (12)
50return ReferenceEquals(this, other); 107return ReferenceEquals(this, other); 428return ReferenceEquals(this, other); 456if (ReferenceEquals(other, this)) 461if (ReferenceEquals(other, null)) 479if (ReferenceEquals(other, this)) 484if (ReferenceEquals(other, null)) 502if (ReferenceEquals(other, this)) 507if (ReferenceEquals(other, null)) 654return ReferenceEquals(this, other); 672if (ReferenceEquals(other, this)) 677if (ReferenceEquals(other, null))
Diagnostic\CommonDiagnosticComparer.cs (2)
20if (object.ReferenceEquals(x, y)) 35if (object.ReferenceEquals(obj, null))
Diagnostic\Diagnostic.DiagnosticWithProgrammaticSuppression.cs (1)
88if (ReferenceEquals(this, obj))
Diagnostic\Diagnostic_SimpleDiagnostic.cs (1)
147if (ReferenceEquals(this, obj))
Diagnostic\DiagnosticDescriptor.cs (1)
197if (ReferenceEquals(this, other))
Diagnostic\DiagnosticWithInfo.cs (1)
157if (ReferenceEquals(this, obj))
Diagnostic\ExternalFileLocation.cs (1)
66if (ReferenceEquals(obj, this))
Diagnostic\Location.cs (2)
124if (object.ReferenceEquals(left, null)) 126return object.ReferenceEquals(right, null);
Diagnostic\ProgrammaticSuppressionInfo.cs (1)
25if (ReferenceEquals(this, other))
Diagnostic\SourceLocation.cs (1)
110if (ReferenceEquals(this, other))
Diagnostic\SuppressionDescriptor.cs (1)
75if (ReferenceEquals(this, other))
Diagnostic\XmlLocation.cs (1)
63if (ReferenceEquals(this, other))
DiagnosticAnalyzer\AdditionalTextComparer.cs (1)
20if (object.ReferenceEquals(x, y))
DiagnosticAnalyzer\AnalyzerDriver.GroupedAnalyzerActions.cs (1)
46var isEmpty = ReferenceEquals(this, Empty);
DiagnosticAnalyzer\AnalyzerFileReference.cs (3)
75if (ReferenceEquals(this, other)) 81ReferenceEquals(_assemblyLoader, other._assemblyLoader) && 88if (ReferenceEquals(this, other))
DiagnosticAnalyzer\AnalyzerOptions.cs (2)
68if (ReferenceEquals(this, obj)) 76this.AdditionalFiles.SequenceEqual(other.AdditionalFiles, ReferenceEquals));
DiagnosticAnalyzer\ShadowCopyAnalyzerAssemblyLoader.cs (1)
182if (object.ReferenceEquals(task, tcs.Task))
Emit\CommonPEModuleBuilder.cs (1)
309Debug.Assert(ReferenceEquals(context.Module, this));
Emit\EmitOptions.cs (1)
280if (ReferenceEquals(other, null))
InternalUtilities\ConcurrentLruCache.cs (1)
90if (!ReferenceEquals(_nodeList.First, node))
InternalUtilities\WeakList.cs (2)
102if (!ReferenceEquals(_items, result)) 122if (ReferenceEquals(_items, result))
IReferenceOrISignature.cs (1)
30public bool Equals(IReferenceOrISignature other) => ReferenceEquals(_item, other._item);
MetadataReader\MetadataDecoder.cs (1)
1414if (ReferenceEquals(type, SystemTypeSymbol))
MetadataReader\MetadataHelpers.cs (1)
555Debug.Assert(!resultMemory.Equals(emittedTypeNameMemory) || ReferenceEquals(resultString, emittedTypeName), "If the name was not mangled, we should get the original string instance back.");
MetadataReference\AssemblyIdentity.cs (2)
391return !ReferenceEquals(obj, null) 457if (ReferenceEquals(x, y))
MetadataReference\AssemblyIdentityComparer.cs (1)
121if (ReferenceEquals(reference, definition))
MetadataReference\CompilationReference.cs (1)
124if (object.ReferenceEquals(this, other))
Operations\ControlFlowGraphBuilder.cs (1)
2831else if (stack.Count == 0 && ReferenceEquals(dest, top.dest))
PEWriter\CustomDebugInfoWriter.cs (3)
271Debug.Assert(!ReferenceEquals(_previousMethodBodyWithUsingInfo, methodBody)); 285if (_methodBodyWithModuleInfo != null && !ReferenceEquals(_methodBodyWithModuleInfo, methodBody)) 294ReferenceEquals(_previousMethodBodyWithUsingInfo, methodBody))
PEWriter\MetadataWriter.cs (6)
695if (containingAssembly != null && ReferenceEquals(assemblyReference, containingAssembly)) 728if (definingUnit != null && ReferenceEquals(definingUnit, this.module)) 831if (definingUnit != null && ReferenceEquals(definingUnit, this.module)) 906return aref == null || ReferenceEquals(aref, this.module.GetContainingAssembly(Context)) 968if (definingUnit != null && ReferenceEquals(definingUnit, this.module)) 1173if (definingUnit != null && ReferenceEquals(definingUnit, this.module))
PEWriter\ReferenceIndexer.cs (1)
60if (definingAssembly != null && !ReferenceEquals(definingAssembly, Context.Module.GetContainingAssembly(Context)))
PEWriter\ReferenceIndexerBase.cs (2)
65if (definingUnit != null && ReferenceEquals(definingUnit, Context.Module)) 157if (definingUnit != null && ReferenceEquals(definingUnit, Context.Module) && !methodReference.AcceptsExtraArguments)
PEWriter\TypeNameSerializer.cs (1)
198if (containingAssembly == null || !ReferenceEquals(referencedAssembly, containingAssembly))
ReferenceManager\CommonReferenceManager.Binding.cs (3)
686if (!ReferenceEquals(candidateInputAssemblySymbols[corLibraryIndex], GetCorLibrary(candidateInputAssemblySymbols[j]))) 788if (Object.ReferenceEquals(inputAssembly, candidate.AssemblySymbol)) 914Debug.Assert(ReferenceEquals(candidateCorLibrary, GetCorLibrary(candidateCorLibrary)));
ReferenceManager\CommonReferenceManager.Resolution.cs (1)
576if (ReferenceEquals(x, y))
SourceGeneration\GlobalAliases.cs (1)
83if (ReferenceEquals(this, aliases))
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
22if (ReferenceEquals(x, y))
src\Dependencies\Collections\SegmentedArray`1.cs (1)
334if (ReferenceEquals(_items, o._items))
Symbols\Attributes\ObsoleteAttributeData.cs (1)
79get { return ReferenceEquals(this, Uninitialized); }
Syntax\SyntaxDiffer.cs (1)
73if (object.ReferenceEquals(before, after))
Syntax\SyntaxNavigator.cs (1)
59return predicate == null || ReferenceEquals(predicate, SyntaxToken.Any) || predicate(token);
Text\SourceText.cs (2)
1143if (ReferenceEquals(this, other)) 1175if (ReferenceEquals(this, other))
Microsoft.CodeAnalysis.CodeStyle (12)
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
22if (ReferenceEquals(x, y))
src\Dependencies\Collections\SegmentedArray`1.cs (1)
334if (ReferenceEquals(_items, o._items))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
348if (object.ReferenceEquals(left, right))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\Section.cs (1)
171=> ReferenceEquals(this, other) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\CompilationExtensions.cs (1)
42if (ReferenceEquals(currentType.ContainingAssembly, compilation.Assembly))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.BasicBlockAnalysisData.cs (1)
55if (ReferenceEquals(this, other))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\Option2.cs (1)
98if (ReferenceEquals(this, other))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (1)
85=> ReferenceEquals(left, right) || left?.Equals(right) == true;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\PerLanguageOption2.cs (1)
85if (ReferenceEquals(this, other))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
23if (ReferenceEquals(x, y))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.ParameterSymbolEqualityComparer.cs (1)
25if (ReferenceEquals(x, y))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
164if (object.ReferenceEquals(this, other))
Microsoft.CodeAnalysis.Collections.Package (2)
Internal\SegmentedHashSetEqualityComparer`1.cs (1)
22if (ReferenceEquals(x, y))
SegmentedArray`1.cs (1)
334if (ReferenceEquals(_items, o._items))
Microsoft.CodeAnalysis.CSharp (222)
Binder\Binder.cs (1)
663bool checkOverridingSymbol = hasBaseReceiver && !ReferenceEquals(symbol, leastOverriddenSymbol);
Binder\Binder_Expressions.cs (1)
7429if (ReferenceEquals(pointedAtType, null))
Binder\Binder_Lookup.cs (1)
1774Debug.Assert(object.ReferenceEquals(namedType.ConstructedFrom, namedType));
Binder\Binder_Statements.cs (1)
1224Debug.Assert(!ReferenceEquals(declType, null));
Binder\Binder_Symbols.cs (1)
2580if (ReferenceEquals(qualifierOpt, Compilation.GlobalNamespace))
Binder\Semantics\Conversions\ConversionsBase.cs (1)
1709&& ReferenceEquals(namedType.OriginalDefinition, compilation.GetWellKnownType(spanType)))
CodeGen\EmitStatement.cs (1)
470else if (stack.Count == 0 && ReferenceEquals(destBox, top.destBox))
CommandLine\CSharpCompiler.cs (1)
395if (symbol is null || ReferenceEquals(compilation.Assembly, symbol.ContainingAssembly))
Compilation\CSharpCompilation.cs (3)
700bool reuseReferenceManager = ReferenceEquals(ScriptCompilationInfo?.PreviousScriptCompilation, info?.PreviousScriptCompilation); 1158return ReferenceEquals(_referenceManager, other._referenceManager); 1538if (ReferenceEquals(_lazyScriptClass, ErrorTypeSymbol.UnknownResultType))
Compilation\CSharpSemanticModel.cs (3)
1940Debug.Assert(ReferenceEquals(lowestBoundNode, highestBoundNode), "How is it that this operator has the same syntax node as its operand?"); 3941if (!ReferenceEquals(symbolOpt, null)) 4087if (ReferenceEquals(type, null) || type.IsStatic)
CSharpCompilationOptions.cs (7)
564if (ReferenceEquals(resolver, this.XmlReferenceResolver)) 574if (ReferenceEquals(resolver, this.SourceReferenceResolver)) 584if (ReferenceEquals(provider, this.SyntaxTreeOptionsProvider)) 594if (ReferenceEquals(resolver, this.MetadataReferenceResolver)) 606if (ReferenceEquals(comparer, this.AssemblyIdentityComparer)) 616if (ReferenceEquals(provider, this.StrongNameProvider)) 732if (object.ReferenceEquals(this, other))
CSharpParseOptions.cs (1)
278if (object.ReferenceEquals(this, other))
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (1)
824if (ReferenceEquals(source, other))
Emitter\Model\PEModuleBuilder.cs (1)
932if ((object)container != null && ReferenceEquals(container.Modules[0], module))
FlowAnalysis\DefiniteAssignment.cs (1)
451if (!_requireOutParamsAssigned && ReferenceEquals(topLevelMethod, CurrentSymbol))
FlowAnalysis\RegionAnalysisContext.cs (1)
47if (!this.Failed && ReferenceEquals(firstInRegion, lastInRegion))
Lowering\Instrumentation\CompoundInstrumenter.cs (1)
35=> ReferenceEquals(previous, Previous) ? this : WithPreviousImpl(previous);
Lowering\LocalRewriter\LocalRewriter.cs (1)
280Debug.Assert(visited == null || visited.HasErrors || ReferenceEquals(visited.Type, node.Type) ||
Lowering\LocalRewriter\LocalRewriter_FixedStatement.cs (1)
200Debug.Assert(!ReferenceEquals(initializer, null));
Lowering\LocalRewriter\LocalRewriter_PropertyAccess.cs (3)
44if (ReferenceEquals(propertySymbol, _compilation.GetSpecialTypeMember(SpecialMember.System_Array__Length)) || 45!_inExpressionLambda && ReferenceEquals(propertySymbol, _compilation.GetSpecialTypeMember(SpecialMember.System_Array__LongLength))) 95Debug.Assert(getMethodOpt is null || ReferenceEquals(getMethod, getMethodOpt));
Lowering\MethodToClassRewriter.cs (3)
627if (ReferenceEquals(newType, method.ContainingType)) 670if (ReferenceEquals(newType, property.ContainingType)) 742Debug.Assert(ReferenceEquals(methodBeingWrapped, methodBeingWrapped.ConstructedFrom));
Lowering\SyntheticBoundNodeFactory.cs (2)
280(ReferenceEquals(property, Compilation.GetSpecialTypeMember(CodeAnalysis.SpecialMember.System_Array__Length)) || 281ReferenceEquals(property, Compilation.GetSpecialTypeMember(CodeAnalysis.SpecialMember.System_Array__LongLength)))), "Use BoundArrayLength instead?");
Parser\LanguageParser.cs (1)
6597Debug.Assert(!ReferenceEquals(tmp, explicitInterfaceName), "We should have consumed something and updated explicitInterfaceName");
Symbols\AbstractTypeMap.cs (5)
43if (ReferenceEquals(previous, null)) 61bool changed = !ReferenceEquals(oldConstructedFrom, newConstructedFrom); 94if (ReferenceEquals(previous, null)) 299if (!Object.ReferenceEquals(substituted, t)) 416if (!Object.ReferenceEquals(substituted, t))
Symbols\AliasSymbol.cs (2)
245if (ReferenceEquals(this, obj)) 250if (ReferenceEquals(obj, null))
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (6)
288if (ReferenceEquals(template.Manager, this)) 428Debug.Assert(ReferenceEquals(this, anonymous.Manager)); 444if (ReferenceEquals(template.Manager, this)) 613if (ReferenceEquals(template.Manager, this)) 631if (ReferenceEquals(template.Manager, this) && template.HasIndexedName) 653if (ReferenceEquals(template.Manager, this) && !template.HasIndexedName)
Symbols\AnonymousTypes\PublicSymbols\AnonymousType.DelegatePublicSymbol.cs (1)
79if (ReferenceEquals(this, t2))
Symbols\AnonymousTypes\PublicSymbols\AnonymousType.TypePublicSymbol.cs (1)
122if (ReferenceEquals(this, t2))
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.PropertySymbol.cs (1)
212else if (ReferenceEquals(this, obj))
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TypeOrDelegateTemplateSymbol.cs (1)
107if (ReferenceEquals(Interlocked.CompareExchange(ref _smallestLocation, location, currentSmallestLocation), currentSmallestLocation))
Symbols\ArrayTypeSymbol.cs (1)
348if (ReferenceEquals(this, other))
Symbols\AssemblySymbol.cs (1)
1049Debug.Assert(result is null || ReferenceEquals(result.ContainingAssembly, assembly));
Symbols\Compilation_WellKnownMembers.cs (1)
84if (_lazyWellKnownTypeMembers == null || ReferenceEquals(_lazyWellKnownTypeMembers[(int)member], ErrorTypeSymbol.UnknownResultType))
Symbols\ConstraintsHelper.cs (3)
1042Debug.Assert(ReferenceEquals(typeParameter.ContainingSymbol, containingSymbol.OriginalDefinition)); 1562if (ReferenceEquals(type.OriginalDefinition, type)) 1584if (ReferenceEquals(method.OriginalDefinition, method))
Symbols\ConversionSignatureComparer.cs (3)
29if (ReferenceEquals(member1, member2)) 34if (ReferenceEquals(member1, null) || ReferenceEquals(member2, null))
Symbols\CustomModifier.cs (2)
94if (ReferenceEquals(this, obj)) 126if (ReferenceEquals(this, obj))
Symbols\DynamicTypeSymbol.cs (1)
202if (ReferenceEquals(this, t2) || t2.TypeKind == TypeKind.Dynamic)
Symbols\ErrorTypeSymbol.cs (1)
476Debug.Assert(ReferenceEquals(newOwner.OriginalDefinition, this.ContainingSymbol?.OriginalDefinition));
Symbols\ErrorTypeSymbol.ErrorTypeParameterSymbol.cs (1)
189if (ReferenceEquals(this, t2))
Symbols\EventSymbol.cs (4)
263Debug.Assert(ReferenceEquals(newOwner.OriginalDefinition, this.ContainingSymbol.OriginalDefinition)); 334if (ReferenceEquals(null, other)) 339if (ReferenceEquals(this, other)) 346return TypeSymbol.Equals(this.ContainingType, other.ContainingType, compareKind) && ReferenceEquals(this.OriginalDefinition, other.OriginalDefinition);
Symbols\ExtendedErrorTypeSymbol.cs (1)
288if (ReferenceEquals(this, t2))
Symbols\FieldSymbol.cs (1)
330Debug.Assert(ReferenceEquals(newOwner.OriginalDefinition, this.ContainingSymbol.OriginalDefinition));
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (2)
213Debug.Assert(specifierType is null || ReferenceEquals(specifierType.ContainingAssembly, compilation.Assembly.CorLibrary)); 715return ReferenceEquals(this, other) ||
Symbols\FunctionPointers\FunctionPointerParameterSymbol.cs (1)
39if (ReferenceEquals(this, other))
Symbols\FunctionPointers\FunctionPointerTypeSymbol.cs (1)
101if (ReferenceEquals(this, t2))
Symbols\FunctionTypeSymbol.cs (1)
207if (ReferenceEquals(this, t2))
Symbols\MemberSignatureComparer.cs (1)
421if (ReferenceEquals(member1, member2))
Symbols\Metadata\PE\MetadataDecoder.cs (4)
241if (ReferenceEquals(containingAssembly, assemblies[i])) 316Debug.Assert(ReferenceEquals(newresult, result) || (newresult.Kind == SymbolKind.ErrorType)); 365if (ReferenceEquals(assembly, referringAssembly)) 374Debug.Assert(candidate is null || ReferenceEquals(candidate.ContainingAssembly, assembly));
Symbols\Metadata\PE\PEMethodSymbol.cs (2)
1612Debug.Assert(!ReferenceEquals(unmanagedCallersOnlyData, UnmanagedCallersOnlyAttributeData.Uninitialized) 1613&& !ReferenceEquals(unmanagedCallersOnlyData, UnmanagedCallersOnlyAttributeData.AttributePresentDataNotBound));
Symbols\Metadata\PE\PENamedTypeSymbol.cs (5)
322Debug.Assert(ReferenceEquals(_name, metadataName) == (_name == metadataName)); 323mangleName = !ReferenceEquals(_name, metadataName); 495if (ReferenceEquals(_lazyBaseType, ErrorTypeSymbol.UnknownResultType)) 526if (ReferenceEquals(_lazyDeclaredBaseType, ErrorTypeSymbol.UnknownResultType)) 2379if (ReferenceEquals(uncommon.lazyComImportCoClassType, ErrorTypeSymbol.UnknownResultType))
Symbols\Metadata\PE\TupleTypeDecoder.cs (2)
272var containerChanged = !ReferenceEquals(decodedContainingType, containingType); 344return ReferenceEquals(decoded, type) ?
Symbols\MetadataOrSourceAssemblySymbol.cs (5)
84Debug.Assert(ReferenceEquals(corType.ContainingAssembly, this)); 86Debug.Assert(ReferenceEquals(this.CorLibrary, this)); 96Debug.Assert(ReferenceEquals(corType, _lazySpecialTypes[(int)typeId]) || 115return ReferenceEquals(this.CorLibrary, this) && _cachedSpecialTypes < (int)InternalSpecialType.NextAvailable - 1; 190if (_lazySpecialTypeMembers == null || ReferenceEquals(_lazySpecialTypeMembers[(int)member], ErrorTypeSymbol.UnknownResultType))
Symbols\MethodSymbol.cs (3)
491if (this.IsOverride && ReferenceEquals(this.ConstructedFrom, this)) 859if (!ReferenceEquals(this, ConstructedFrom) || this.Arity == 0) 890Debug.Assert(ReferenceEquals(newOwner.OriginalDefinition, this.ContainingSymbol.OriginalDefinition));
Symbols\MissingAssemblySymbol.cs (1)
108if (ReferenceEquals(this, other))
Symbols\MissingMetadataTypeSymbol.cs (3)
294if ((Arity == 0 || MangleName) && (object)containingAssembly != null && ReferenceEquals(containingAssembly, containingAssembly.CorLibrary) && _containingModule.Ordinal == 0) 368if (ReferenceEquals(this, t2)) 457if (ReferenceEquals(this, t2))
Symbols\MissingModuleSymbol.cs (2)
112if (ReferenceEquals(this, obj)) 234if (ReferenceEquals(this, obj))
Symbols\MissingNamespaceSymbol.cs (1)
84if (ReferenceEquals(this, obj))
Symbols\NamedTypeSymbol.cs (8)
848var thisIsNotConstructed = ReferenceEquals(ConstructedFrom, this); 849var otherIsNotConstructed = ReferenceEquals(other.ConstructedFrom, other); 1186if (!ReferenceEquals(this, ConstructedFrom)) 1233for (var current = this; !ReferenceEquals(current, null); current = current.ContainingType) 1265if (!ReferenceEquals(outer, null)) 1286if (!ReferenceEquals(outer, null)) 1305if (!ReferenceEquals(outer, null)) 1352Debug.Assert(ReferenceEquals(newOwner.OriginalDefinition, this.ContainingSymbol.OriginalDefinition));
Symbols\NamespaceOrTypeSymbol.cs (1)
302Debug.Assert(ReferenceEquals(emittedTypeName.UnmangledTypeName, emittedTypeName.TypeName) && emittedTypeName.InferredArity == 0);
Symbols\NonMissingModuleSymbol.cs (1)
93if (!ReferenceEquals(unifiedAssembly.TargetAssembly, dependentAssembly))
Symbols\NoPiaAmbiguousCanonicalTypeSymbol.cs (1)
94return ReferenceEquals(this, t2);
Symbols\NoPiaIllegalGenericInstantiationSymbol.cs (1)
80return ReferenceEquals(this, t2);
Symbols\NoPiaMissingCanonicalTypeSymbol.cs (1)
118return ReferenceEquals(this, t2);
Symbols\OverriddenOrHiddenMembersHelpers.cs (3)
678if (otherMember.Kind == currTypeBestMatch.Kind && !ReferenceEquals(otherMember, currTypeBestMatch)) 881return MethodSymbol.CanOverrideOrHide(methodSymbol.MethodKind) && ReferenceEquals(methodSymbol, methodSymbol.ConstructedFrom); 1029for (NamedTypeSymbol currType = containingType.BaseTypeNoUseSiteDiagnostics; !ReferenceEquals(currType, null); currType = currType.BaseTypeNoUseSiteDiagnostics)
Symbols\PointerTypeSymbol.cs (1)
235if (ReferenceEquals(this, other))
Symbols\PropertySymbol.cs (4)
382Debug.Assert(ReferenceEquals(newOwner.OriginalDefinition, this.ContainingSymbol.OriginalDefinition)); 457if (ReferenceEquals(null, other)) 462if (ReferenceEquals(this, other)) 474return TypeSymbol.Equals(this.ContainingType, other.ContainingType, compareKind) && ReferenceEquals(this.OriginalDefinition, other.OriginalDefinition);
Symbols\PublicModel\PreprocessingSymbol.cs (2)
34if (ReferenceEquals(this, obj)) 39if (ReferenceEquals(obj, null))
Symbols\ReferenceManager.cs (4)
317Debug.Assert(ReferenceEquals(compilation._referenceManager, this)); 509ReferenceEquals(corLibrary, assemblySymbol) ? null! : corLibrary, // https://github.com/dotnet/roslyn/issues/40751 Unnecessary suppression 518Debug.Assert(ReferenceEquals(compilation._referenceManager, this) || HasCircularReference); 1165return ReferenceEquals(asm, Compilation.Assembly);
Symbols\Retargeting\RetargetingModuleSymbol.cs (3)
212var definitionIdentity = ReferenceEquals(referencedAssemblySymbols[i], originatingSourceAssemblyDebugOnly) ? 220if (!ReferenceEquals(referencedAssemblySymbols[i], underlyingBoundReferences[j])) 231Debug.Assert(ReferenceEquals(destinationData.To, referencedAssemblySymbols[i]));
Symbols\Retargeting\RetargetingNamedTypeSymbol.cs (2)
277if (ReferenceEquals(_lazyBaseType, ErrorTypeSymbol.UnknownResultType)) 330if (ReferenceEquals(_lazyDeclaredBaseType, ErrorTypeSymbol.UnknownResultType))
Symbols\Retargeting\RetargetingSymbolTranslator.cs (27)
44Debug.Assert(ReferenceEquals(symbol.ContainingModule, _underlyingModule)); 50Debug.Assert(ReferenceEquals(symbol.ContainingModule, _underlyingModule)); 56Debug.Assert(ReferenceEquals(symbol.ContainingModule, _underlyingModule)); 62Debug.Assert(ReferenceEquals(symbol.ContainingModule, _underlyingModule)); 88Debug.Assert(ReferenceEquals(symbol.ContainingModule, _underlyingModule)); 94Debug.Assert(ReferenceEquals(symbol.ContainingModule, _underlyingModule)); 100Debug.Assert(ReferenceEquals(symbol.ContainingModule, _underlyingModule)); 239if (ReferenceEquals(retargetFrom, this.RetargetingAssembly.UnderlyingAssembly)) 256if (ReferenceEquals(retargetFrom, this.RetargetingAssembly.UnderlyingAssembly)) 281if (ReferenceEquals(module, this.UnderlyingModule)) 489if (ReferenceEquals(type, originalDefinition)) 499Debug.Assert(originalDefinition.Arity == 0 || !ReferenceEquals(type.ConstructedFrom, type)); 502if (ReferenceEquals(newDefinition, originalDefinition)) 876Debug.Assert(ReferenceEquals(method.ContainingModule, this.UnderlyingModule)); 877Debug.Assert(ReferenceEquals(method, method.OriginalDefinition)); 886if (ReferenceEquals(method.ContainingModule, this.UnderlyingModule) && ReferenceEquals(method, method.OriginalDefinition)) 894if (ReferenceEquals(retargetedType, containingType)) 926Debug.Assert(ReferenceEquals(property.ContainingModule, this.UnderlyingModule)); 927Debug.Assert(ReferenceEquals(property, property.OriginalDefinition)); 934if (ReferenceEquals(property.ContainingModule, this.UnderlyingModule) && ReferenceEquals(property, property.OriginalDefinition)) 943return ReferenceEquals(retargetedType, containingType) ? 950if (ReferenceEquals(@event.ContainingModule, this.UnderlyingModule) && ReferenceEquals(@event, @event.OriginalDefinition)) 959return ReferenceEquals(retargetedType, containingType) ? 1320Debug.Assert(ReferenceEquals(symbol, _retargetingModule.UnderlyingModule));
Symbols\Source\CrefTypeParameterSymbol.cs (1)
98if (ReferenceEquals(this, t2))
Symbols\Source\IndexedTypeParameterSymbol.cs (1)
127return ReferenceEquals(this, t2);
Symbols\Source\SourceComplexParameterSymbol.cs (2)
590Debug.Assert(!ReferenceEquals(copyFrom, this)); 1465Debug.Assert(!ReferenceEquals(copyFrom, this));
Symbols\Source\SourceMemberContainerSymbol.cs (3)
2702Debug.Assert(ReferenceEquals(this, this.OriginalDefinition)); 2743return (!TypeSymbol.Equals(oldInstance, t, TypeCompareKind.AllNullableIgnoreOptions)) && ReferenceEquals(tOriginal, top); 3907if (ReferenceEquals(s, symbol))
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (1)
1845if (ReferenceEquals(this.ContainingModule, implementingMethodOriginalDefinition.ContainingModule))
Symbols\Source\SourceMethodSymbolWithAttributes.cs (2)
280Debug.Assert(!ReferenceEquals(copyFrom, this)); 1390if (ReferenceEquals(returnTypeSyntax, CSharpSyntaxTree.Dummy.GetRoot()))
Symbols\Source\SourceNamedTypeSymbol.cs (1)
218if (!ReferenceEquals(ContainingType, null))
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (3)
39if (ReferenceEquals(_lazyBaseType, ErrorTypeSymbol.UnknownResultType)) 51if (ReferenceEquals(Interlocked.CompareExchange(ref _lazyBaseType, acyclicBase, ErrorTypeSymbol.UnknownResultType), ErrorTypeSymbol.UnknownResultType)) 257if (ReferenceEquals(_lazyDeclaredBases, null))
Symbols\Source\SourceNamedTypeSymbol_Enum.cs (1)
28if (ReferenceEquals(_lazyEnumUnderlyingType, ErrorTypeSymbol.UnknownResultType))
Symbols\Source\SourceOrdinaryMethodSymbol.cs (2)
476Debug.Assert(!ReferenceEquals(definition, implementation)); 587Debug.Assert(!ReferenceEquals(definition, implementation));
Symbols\Source\SourcePropertySymbolBase.cs (1)
1283Debug.Assert(!ReferenceEquals(copyFrom, this));
Symbols\Source\SourceTypeParameterSymbol.cs (2)
231if (ReferenceEquals(Interlocked.CompareExchange(ref _lazyBounds, bounds, TypeParameterBounds.Unset), TypeParameterBounds.Unset)) 843if (ReferenceEquals(_lazyOverriddenMethod, ErrorMethodSymbol.UnknownMethod))
Symbols\SubstitutedMethodSymbol.cs (3)
57Debug.Assert(ReferenceEquals(constructedFrom.ConstructedFrom, constructedFrom)); 109Debug.Assert(ReferenceEquals(_constructedFrom, this)); 271if (!ReferenceEquals(this.ConstructedFrom, this))
Symbols\SubstitutedNamedTypeSymbol.cs (3)
66Debug.Assert(ReferenceEquals(constructedFrom.ConstructedFrom, constructedFrom)); 164if (ReferenceEquals(_lazyBaseType, ErrorTypeSymbol.UnknownResultType)) 170Debug.Assert(!ReferenceEquals(_lazyBaseType, ErrorTypeSymbol.UnknownResultType));
Symbols\Symbol.cs (1)
1750if (ReferenceEquals(currentFunction, containingSymbol))
Symbols\Symbol_Attributes.cs (1)
684bool isOwner = symbolPart == AttributeLocation.None && ReferenceEquals(attributesOwner, attributeTarget);
Symbols\SymbolExtensions.cs (2)
65if (ReferenceEquals(current.OriginalDefinition, originalSuperType)) 75if (ReferenceEquals(current.OriginalDefinition, originalSuperType))
Symbols\SynthesizedNamespaceSymbol.cs (1)
41if (ReferenceEquals(this, other))
Symbols\Tuples\TupleErrorFieldSymbol.cs (2)
196if (ReferenceEquals(newOwner, ContainingType)) 202if (!ReferenceEquals(_correspondingDefaultField, this))
Symbols\TypeMap.cs (1)
122bool synthesized = !ReferenceEquals(oldTypeParameters[0].ContainingSymbol.OriginalDefinition, newOwner.OriginalDefinition);
Symbols\TypeParameterSymbol.cs (2)
662if (ReferenceEquals(this, other)) 667if ((object)other == null || !ReferenceEquals(other.OriginalDefinition, this.OriginalDefinition))
Symbols\TypeSymbol.cs (3)
106for (var baseType = this; !ReferenceEquals(baseType, null); baseType = baseType.BaseTypeNoUseSiteDiagnostics) 295return ReferenceEquals(this, t2); 342for (var baseType = this; !ReferenceEquals(baseType, null); baseType = baseType.BaseTypeNoUseSiteDiagnostics)
Symbols\TypeSymbolExtensions.cs (1)
1164if (ReferenceEquals(parent2.OriginalDefinition, parent1OriginalDefinition) || parent1OriginalDefinition.TypeKind == TypeKind.Submission && parent2.TypeKind == TypeKind.Submission)
Symbols\TypeWithAnnotations.cs (2)
797return ReferenceEquals(DefaultType, other.DefaultType) && 799ReferenceEquals(_extensions, other._extensions);
Syntax\CSharpSyntaxTree.LazySyntaxTree.cs (3)
111if (ReferenceEquals(_lazyRoot, root) && ReferenceEquals(_options, options)) 162if (ReferenceEquals(_diagnosticOptions, options))
Syntax\CSharpSyntaxTree.ParsedSyntaxTree.cs (4)
125if (ReferenceEquals(_root, root) && ReferenceEquals(_options, options)) 137ReferenceEquals(_root, root) ? _lazyDirectives : default, 169if (ReferenceEquals(_diagnosticOptions, options))
Utilities\ValueSetFactory.EnumeratedValueSet.cs (3)
122Debug.Assert(object.ReferenceEquals(this._tc, other._tc)); 145Debug.Assert(object.ReferenceEquals(this._tc, other._tc)); 168Debug.Assert(object.ReferenceEquals(this._tc, other._tc));
Utilities\ValueSetFactory.FloatingValueSet.cs (2)
103Debug.Assert(object.ReferenceEquals(this._tc, other._tc)); 118Debug.Assert(object.ReferenceEquals(this._tc, other._tc));
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (1)
73if (ReferenceEquals(x, y))
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
ScriptTests.cs (1)
1072public override bool Equals(object other) => ReferenceEquals(this, other);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\QueryTests.cs (1)
2360Assert.True(symbols.All(s => ReferenceEquals(s, null)));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (4)
Compilation\SemanticModelAPITests.cs (1)
338Assert.False(ReferenceEquals(symbol1, symbol2));
Symbols\MethodEqualityTests.cs (1)
253if (ReferenceEquals(method1, method2))
Symbols\Source\ExternAliasTests.cs (2)
420Assert.True(targets.All(target => ReferenceEquals(firstTarget, target))); 445Assert.True(targets.All(target => ReferenceEquals(firstTarget, target)));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Syntax\SyntaxRewriterTests.cs (1)
714Assert.Equal(input == output, ReferenceEquals(red, result));
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
Extensions.cs (2)
123ReferenceEquals(thisPEAssembly.Assembly, thatPEAssembly.Assembly) && @this.HasUnresolvedReferencesByComparisonTo(that); 134return ReferenceEquals(thisRetargetingAssembly.UnderlyingAssembly, thatRetargetingAssembly.UnderlyingAssembly) &&
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
CodeGeneration\CSharpSyntaxGenerator.cs (2)
2954Contract.ThrowIfTrue(ReferenceEquals(root, node)); 2975Contract.ThrowIfTrue(ReferenceEquals(root, declaration));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (1)
73if (ReferenceEquals(x, y))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Lightup\NullableSyntaxAnnotationEx.cs (2)
29Contract.ThrowIfFalse(ReferenceEquals(Oblivious, NullableSyntaxAnnotation.Oblivious)); 30Contract.ThrowIfFalse(ReferenceEquals(AnnotatedOrNotAnnotated, NullableSyntaxAnnotation.AnnotatedOrNotAnnotated));
Microsoft.CodeAnalysis.EditorFeatures (1)
IntelliSense\Session.cs (1)
44Contract.ThrowIfFalse(ReferenceEquals(this.PresenterSession, sender));
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
ExternalAccessFSharpResources.Designer.cs (1)
43if (object.ReferenceEquals(resourceMan, null)) {
Microsoft.CodeAnalysis.Features (3)
Completion\Providers\UnionCompletionItemComparer.cs (1)
20=> ReferenceEquals(x, y) ||
EditAndContinue\DeclarationBody.cs (1)
87=> ReferenceEquals(this, other) ||
SignatureHelp\AbstractSignatureHelpProvider.SymbolKeySignatureHelpItem.cs (1)
30return ReferenceEquals(this, obj) ||
Microsoft.CodeAnalysis.LanguageServer.Protocol (19)
LanguageServerProtocolResources.Designer.cs (1)
41if (object.ReferenceEquals(resourceMan, null)) {
Protocol\CodeDescription.cs (2)
32if (ReferenceEquals(value1, value2)) 37if (ReferenceEquals(null, value2))
Protocol\Diagnostic.cs (2)
121if (ReferenceEquals(value1, value2)) 127if (ReferenceEquals(null, value2))
Protocol\Extensions\VSProjectContext.cs (1)
59if (ReferenceEquals(value1, value2))
Protocol\Extensions\VSTextDocumentIdentifier.cs (2)
28if (ReferenceEquals(value1, value2)) 34if (ReferenceEquals(null, value2))
Protocol\Internal\VSInternalKindAndModifier.cs (2)
38if (ReferenceEquals(value1, value2)) 44if (ReferenceEquals(null, value2))
Protocol\Internal\VSInternalProjectContext.cs (1)
28if (ReferenceEquals(value1, value2))
Protocol\OptionalVersionedTextDocumentIdentifier.cs (2)
30if (ReferenceEquals(value1, value2)) 36if (ReferenceEquals(null, value2))
Protocol\Range.cs (2)
42if (ReferenceEquals(value1, value2)) 48if (ReferenceEquals(null, value2))
Protocol\TextDocumentIdentifier.cs (2)
30if (ReferenceEquals(value1, value2)) 36if (ReferenceEquals(null, value2))
Protocol\VersionedTextDocumentIdentifier.cs (2)
30if (ReferenceEquals(value1, value2)) 36if (ReferenceEquals(null, value2))
Microsoft.CodeAnalysis.Rebuild (1)
RebuildSourceReferenceResolver.cs (1)
39public override bool Equals(object? other) => object.ReferenceEquals(this, other);
Microsoft.CodeAnalysis.Scripting (4)
Hosting\ObjectFormatter\CommonPrimitiveFormatter.cs (1)
45if (ReferenceEquals(obj, VoidValue))
Hosting\Resolvers\RuntimeMetadataReferenceResolver.cs (2)
241return ReferenceEquals(this, other) || 246ReferenceEquals(TrustedPlatformAssemblies, other.TrustedPlatformAssemblies);
src\Compilers\Shared\GlobalAssemblyCacheHelpers\GacFileResolver.cs (1)
87return ReferenceEquals(this, other) ||
Microsoft.CodeAnalysis.Test.Utilities (8)
Assert\AssertEx.cs (3)
130if (ReferenceEquals(expected, actual)) 314if (ReferenceEquals(expected, actual)) 331if (ReferenceEquals(expected, actual))
Compilation\ControlFlowGraphVerifier.cs (1)
937&& ReferenceEquals(instance, reference)
Diagnostics\CommonDiagnosticAnalyzers.cs (1)
1011return ReferenceEquals(this, other);
Mocks\TestDocumentationCommentProvider.cs (1)
26public override bool Equals(object obj) => ReferenceEquals(this, obj);
Mocks\TestSourceReferenceResolver.cs (1)
60public override bool Equals(object other) => ReferenceEquals(this, other);
TestableCompiler.cs (1)
62if (!object.ReferenceEquals(compiler.FileSystem, fileSystem))
Microsoft.CodeAnalysis.UnitTests (10)
Collections\List\ICollection.NonGeneric.Tests.cs (1)
166if (!ReferenceEquals(collection1, collection2))
Collections\List\IEnumerable.Generic.Tests.cs (1)
340Assert.Equal(Enumerator_Empty_UsesSingletonInstance, ReferenceEquals(enumerator1, enumerator2));
Collections\List\IEnumerable.NonGeneric.Tests.cs (1)
130Assert.Equal(Enumerator_Empty_UsesSingletonInstance, ReferenceEquals(enumerator1, enumerator2));
MetadataReferences\AssemblyIdentityDisplayNameTests.cs (1)
147Assert.True(ReferenceEquals(dn1, dn2), "cached full name expected");
MetadataReferences\FusionAssemblyPortabilityPolicy.cs (1)
89if (ReferenceEquals(this, other))
MetadataReferences\MetadataReferenceTests.cs (5)
550if (ReferenceEquals(r, s) || 551ReferenceEquals(r, c1a) && ReferenceEquals(s, c1b) || 552ReferenceEquals(s, c1a) && ReferenceEquals(r, c1b))
Microsoft.CodeAnalysis.VisualBasic (2)
Syntax\VisualBasicSyntaxTree.LazySyntaxTree.vb (1)
158If ReferenceEquals(_diagnosticOptions, options) Then
Syntax\VisualBasicSyntaxTree.ParsedSyntaxTree.vb (1)
178If ReferenceEquals(_diagnosticOptions, options) Then
Microsoft.CodeAnalysis.VisualBasic.Workspaces (3)
Rename\VisualBasicRenameRewriterLanguageService.vb (1)
255If ReferenceEquals(parent.SubOrFunctionHeader, node) Then
Workspace\LanguageServices\VisualBasicSyntaxTreeFactoryService.ParsedSyntaxTree.vb (2)
77Return If(ReferenceEquals(root, _root) AndAlso options = Me.Options, 80If(ReferenceEquals(root, _root), _lazyText, Nothing),
Microsoft.CodeAnalysis.Workspaces (27)
Editing\SyntaxGenerator.cs (1)
1383Contract.ThrowIfTrue(ReferenceEquals(root, node));
FindSymbols\SymbolFinder_Helpers.cs (1)
34if (ReferenceEquals(searchSymbol, symbolToMatch))
Options\Option.cs (1)
100if (ReferenceEquals(this, other))
Options\PerLanguageOption.cs (1)
92if (ReferenceEquals(this, other))
src\Compilers\Core\Portable\DiagnosticAnalyzer\ShadowCopyAnalyzerAssemblyLoader.cs (1)
182if (object.ReferenceEquals(task, tcs.Task))
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
22if (ReferenceEquals(x, y))
src\Dependencies\Collections\SegmentedArray`1.cs (1)
334if (ReferenceEquals(_items, o._items))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
348if (object.ReferenceEquals(left, right))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\Section.cs (1)
171=> ReferenceEquals(this, other) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\CompilationExtensions.cs (1)
42if (ReferenceEquals(currentType.ContainingAssembly, compilation.Assembly))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.BasicBlockAnalysisData.cs (1)
55if (ReferenceEquals(this, other))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\Option2.cs (1)
98if (ReferenceEquals(this, other))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (1)
85=> ReferenceEquals(left, right) || left?.Equals(right) == true;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\PerLanguageOption2.cs (1)
85if (ReferenceEquals(this, other))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
23if (ReferenceEquals(x, y))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.ParameterSymbolEqualityComparer.cs (1)
25if (ReferenceEquals(x, y))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
164if (object.ReferenceEquals(this, other))
Utilities\Documentation\DeferredDocumentationProvider.cs (1)
40=> object.ReferenceEquals(this, obj);
Utilities\Documentation\XmlDocumentationProvider.cs (1)
187return ReferenceEquals(this, obj);
Workspace\Solution\DocumentState.cs (1)
403Contract.ThrowIfTrue(ReferenceEquals(newAttributes, Attributes));
Workspace\Solution\ProjectReference.cs (1)
45if (ReferenceEquals(this, reference))
Workspace\Solution\SolutionCompilationState.CompilationTracker.CompilationTrackerState.cs (1)
197Debug.Assert(object.ReferenceEquals(finalCompilationWithGeneratedDocuments, compilationWithoutGeneratedDocuments));
Workspace\Solution\SolutionState.CachingFilePathComparer.cs (1)
55if (ReferenceEquals(data.lastString, obj))
Workspace\Solution\SolutionState.cs (1)
938if (ReferenceEquals(oldDocument, newDocument))
Workspace\Solution\TextDocumentState.cs (3)
59=> ReferenceEquals(newAttributes, Attributes) ? this : UpdateAttributes(newAttributes); 62=> ReferenceEquals(newProvider, DocumentServiceProvider) ? this : UpdateDocumentServiceProvider(newProvider); 65=> ReferenceEquals(loader, TextAndVersionSource.TextLoader) ? this : UpdateText(loader, mode);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (5)
src\Compilers\Core\Portable\InternalUtilities\ConcurrentLruCache.cs (1)
90if (!ReferenceEquals(_nodeList.First, node))
src\Compilers\Core\Portable\InternalUtilities\WeakList.cs (2)
102if (!ReferenceEquals(_items, result)) 122if (ReferenceEquals(_items, result))
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
22if (ReferenceEquals(x, y))
src\Dependencies\Collections\SegmentedArray`1.cs (1)
334if (ReferenceEquals(_items, o._items))
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Workspaces\TestWorkspace_XmlConsumption.cs (1)
110=> ReferenceEquals(this, obj);
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\Semantics\WithType.cs (1)
62if (ReferenceEquals(swt1, swt2))
Microsoft.Data.Analysis (1)
Strings.Designer.cs (1)
41if (object.ReferenceEquals(resourceMan, null)) {
Microsoft.Data.Analysis.Tests (9)
ArrayComparer.cs (2)
134if (ReferenceEquals(f1, f2)) 157if (ReferenceEquals(s1, s2))
DataFrameTests.cs (6)
101Assert.True(object.ReferenceEquals(differentIntColumn, dataFrame.Columns[1])); 105Assert.True(ReferenceEquals(intColumn, dataFrame.Columns[0])); 133Assert.True(ReferenceEquals(intColumn, intColumn_1)); 137Assert.True(ReferenceEquals(originalLastColumn, lastColumn_1)); 195Assert.True(ReferenceEquals(city, renamedColumn)); 214Assert.True(ReferenceEquals(city, renamedColumn));
src\Microsoft.Data.Analysis\Strings.Designer.cs (1)
41if (object.ReferenceEquals(resourceMan, null)) {
Microsoft.DotNet.AsmDiff (1)
AssemblySet.cs (1)
218get { return ReferenceEquals(this, Empty); }
Microsoft.DotNet.Build.Tasks.Workloads (1)
Strings.Designer.cs (1)
41if (object.ReferenceEquals(resourceMan, null)) {
Microsoft.DotNet.NuGetRepack.Tests (2)
TestHelpers\AssertEx.cs (2)
125if (ReferenceEquals(expected, actual)) 200if (ReferenceEquals(expected, actual))
Microsoft.DotNet.Open.Api.Tools.Tests (1)
src\Tools\Shared\TestHelpers\TemporaryCSharpProject.cs (1)
115if (ReferenceEquals(this, reference))
Microsoft.DotNet.SignCheck (1)
SignCheckResources.Designer.cs (1)
41if (object.ReferenceEquals(resourceMan, null)) {
Microsoft.DotNet.SignCheckLibrary (2)
SignCheckResources.Designer.cs (1)
41if (object.ReferenceEquals(resourceMan, null)) {
Verification\Jar\JarResources.Designer.cs (1)
41if (object.ReferenceEquals(resourceMan, null)) {
Microsoft.DotNet.SignTool (1)
src\ByteSequenceComparer.cs (1)
43if (ReferenceEquals(left, right))
Microsoft.DotNet.SourceBuild.Tasks (1)
src\UsageReport\Usage.cs (1)
95if (ReferenceEquals(this, other))
Microsoft.DotNet.VersionTools (2)
BuildManifest\Model\BlobArtifactModel.cs (1)
76if (ReferenceEquals(this, obj))
BuildManifest\Model\PackageArtifactModel.cs (1)
94if (ReferenceEquals(this, obj))
Microsoft.Extensions.AI.Abstractions (1)
Utilities\AIJsonUtilities.Schema.cs (1)
66if (ReferenceEquals(serializerOptions, functionMetadata.JsonSerializerOptions) &&
Microsoft.Extensions.ApiDescription.Client.Tests (1)
src\Tools\Shared\TestHelpers\TemporaryCSharpProject.cs (1)
115if (ReferenceEquals(this, reference))
Microsoft.Extensions.ApiDescription.Tool.Tests (1)
src\Tools\Shared\TestHelpers\TemporaryCSharpProject.cs (1)
115if (ReferenceEquals(this, reference))
Microsoft.Extensions.Caching.Hybrid (2)
Internal\DefaultHybridCache.StampedeStateT.cs (2)
99if (ReferenceEquals(first, cancelStub.Task)) 105Debug.Assert(ReferenceEquals(first, stampede.Task), "should not be cancelled");
Microsoft.Extensions.Caching.StackExchangeRedis (1)
RedisCache.cs (1)
677if (ReferenceEquals(tmp, cache))
Microsoft.Extensions.DependencyInjection (2)
ServiceLookup\CallSiteValidator.cs (1)
19if (ReferenceEquals(scope, rootScope)
ServiceLookup\ServiceProviderEngineScope.cs (1)
80if (ReferenceEquals(this, service) || !(service is IDisposable || service is IAsyncDisposable))
Microsoft.Extensions.DependencyInjection.Abstractions (1)
ActivatorUtilities.cs (1)
590if (ReferenceEquals(constructorExs[i].Info, constructorInfo))
Microsoft.Extensions.Diagnostics (1)
Metrics\DefaultMeterFactory.cs (1)
26if (options.Scope is not null && !object.ReferenceEquals(options.Scope, this))
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (8)
Linux\AcceptanceTest.cs (1)
364if (!ReferenceEquals(instrument.Meter.Scope, meterScope))
Linux\LinuxCountersTests.cs (1)
93if (ReferenceEquals(meter, instrument.Meter))
Linux\LinuxUtilizationProviderTests.cs (4)
58if (ReferenceEquals(meter, instrument.Meter)) 68if (ReferenceEquals(meter, instrument.Meter)) 127if (ReferenceEquals(meter, instrument.Meter)) 137if (ReferenceEquals(meter, instrument.Meter))
Windows\WindowsCountersTests.cs (2)
43if (ReferenceEquals(meter, instrument.Meter)) 85if (ReferenceEquals(meter, instrument.Meter))
Microsoft.Extensions.Diagnostics.Testing (1)
Metrics\MetricCollector.cs (1)
105Initialize(instrument => ReferenceEquals(instrument.Meter, meter) && instrument.Name == instrumentName);
Microsoft.Extensions.Hosting (1)
Internal\Host.cs (1)
415if (!ReferenceEquals(contentRootFileProvider, _defaultProvider))
Microsoft.Extensions.Http (2)
DefaultHttpClientFactory.cs (1)
201Debug.Assert(object.ReferenceEquals(active, found!.Value), "Different entry found. The entry should not have been replaced");
DependencyInjection\HttpClientKeyedLifetime.cs (1)
18public bool IsDisabled => ReferenceEquals(this, Disabled);
Microsoft.Extensions.Http.Resilience.Tests (4)
artifacts\obj\Microsoft.Extensions.Http.Resilience.Tests\Debug\net8.0\Protos\Greet.cs (4)
112if (ReferenceEquals(other, null)) { 115if (ReferenceEquals(other, this)) { 305if (ReferenceEquals(other, null)) { 308if (ReferenceEquals(other, this)) {
Microsoft.Extensions.Logging.Abstractions (1)
LogValuesFormatter.cs (1)
146if (!ReferenceEquals(formattedValue, values[i]))
Microsoft.Extensions.SecretManager.Tools.Tests (1)
src\Tools\Shared\TestHelpers\TemporaryCSharpProject.cs (1)
115if (ReferenceEquals(this, reference))
Microsoft.Gen.ContextualOptions (1)
Resources.Designer.cs (1)
41if (object.ReferenceEquals(resourceMan, null)) {
Microsoft.Gen.Logging (1)
Parsing\Resources.Designer.cs (1)
41if (object.ReferenceEquals(resourceMan, null)) {
Microsoft.Gen.MetadataExtractor (1)
src\Generators\Microsoft.Gen.Metrics\Resources.Designer.cs (1)
41if (object.ReferenceEquals(resourceMan, null)) {
Microsoft.Gen.Metrics (1)
Resources.Designer.cs (1)
41if (object.ReferenceEquals(resourceMan, null)) {
Microsoft.Gen.MetricsReports (1)
src\Generators\Microsoft.Gen.Metrics\Resources.Designer.cs (1)
41if (object.ReferenceEquals(resourceMan, null)) {
Microsoft.Interop.LibraryImportGenerator (10)
Analyzers\CustomMarshallerAttributeAnalyzer.cs (10)
524if (ReferenceEquals(errorDescriptor, CustomMarshallerAttributeAnalyzer.StatelessValueInRequiresConvertToUnmanagedRule)) 528if (ReferenceEquals(errorDescriptor, CustomMarshallerAttributeAnalyzer.StatelessLinearCollectionRequiresTwoParameterAllocateContainerForUnmanagedElementsRule)) 532if (ReferenceEquals(errorDescriptor, CustomMarshallerAttributeAnalyzer.StatelessRequiresConvertToManagedRule)) 536if (ReferenceEquals(errorDescriptor, CustomMarshallerAttributeAnalyzer.StatelessLinearCollectionInRequiresCollectionMethodsRule)) 540if (ReferenceEquals(errorDescriptor, CustomMarshallerAttributeAnalyzer.StatelessLinearCollectionOutRequiresCollectionMethodsRule)) 544if (ReferenceEquals(errorDescriptor, CustomMarshallerAttributeAnalyzer.StatelessLinearCollectionRequiresTwoParameterAllocateContainerForManagedElementsRule)) 548if (ReferenceEquals(errorDescriptor, CustomMarshallerAttributeAnalyzer.StatefulMarshallerRequiresFromManagedRule)) 552if (ReferenceEquals(errorDescriptor, CustomMarshallerAttributeAnalyzer.StatefulMarshallerRequiresToUnmanagedRule)) 556if (ReferenceEquals(errorDescriptor, CustomMarshallerAttributeAnalyzer.StatefulMarshallerRequiresToManagedRule)) 560if (ReferenceEquals(errorDescriptor, CustomMarshallerAttributeAnalyzer.StatefulMarshallerRequiresFromUnmanagedRule))
Microsoft.JSInterop (2)
JSRuntime.cs (1)
311else if (!ReferenceEquals(this, jsRuntime))
src\Components\Shared\src\ArrayBuilder.cs (1)
192if (!ReferenceEquals(_items, Empty))
Microsoft.Maui.Controls (23)
AnimatableKey.cs (2)
50 if (ReferenceEquals(this, obj)) 58 if (ReferenceEquals(this, obj))
BindableObject.cs (4)
352 if (ReferenceEquals(bindable._inheritedContext?.Target, value)) 637 bool sameValue = ReferenceEquals(context.Property, BindingContextProperty) ? ReferenceEquals(value, original) : Equals(value, original); 687 if (ReferenceEquals(context.Property, BindingContextProperty))
BindingExpression.cs (4)
85 if (_weakTarget != null && _weakTarget.TryGetTarget(out BindableObject prevTarget) && !ReferenceEquals(prevTarget, target)) 88 if (_weakSource != null && _weakSource.TryGetTarget(out var previousSource) && !ReferenceEquals(previousSource, sourceObject)) 521 if (object.ReferenceEquals(currentSource, elem.BindingContext)) 645 if (_listener != null && _listener.TryGetSource(out source) && ReferenceEquals(handler, source))
MultiBinding.cs (4)
123 if (ReferenceEquals(values[i], DoNothing) || ReferenceEquals(values[i], BindableProperty.UnsetValue)) 146 if (!ReferenceEquals(_targetObject, targetObject)) 207 if (ReferenceEquals(BindableProperty.UnsetValue, value))
RelativeBindingSource.cs (1)
178 if (!object.ReferenceEquals(lastPotentialBctx, element.BindingContext))
TemplatedItemsList.cs (3)
428 if (ReferenceEquals(group, kvp.Key)) 475 if (ReferenceEquals(children.BindingContext, group) || group == null) 479 if (ReferenceEquals(children[i].BindingContext, item))
TypedBinding.cs (2)
415 if (object.ReferenceEquals(currentSource, elem.BindingContext)) 480 if (Listener.TryGetSource(out var source) && ReferenceEquals(value, source))
VisualStateManager.cs (3)
354 if (Object.ReferenceEquals(this, other)) 573 if (object.ReferenceEquals(this, other)) 657 if (object.ReferenceEquals(this, other))
Microsoft.Maui.Controls.Build.Tasks (1)
ErrorMessages.Designer.cs (1)
41if (object.ReferenceEquals(resourceMan, null)) {
Microsoft.Maui.Controls.Maps (1)
Pin.cs (1)
89 if (ReferenceEquals(this, obj))
Microsoft.Maui.Controls.SourceGen (1)
MauiGResources.Designer.cs (1)
41if (object.ReferenceEquals(resourceMan, null)) {
Microsoft.Maui.Graphics (1)
AbstractCanvas.cs (1)
108 if (!ReferenceEquals(value, _currentState.StrokeDashPattern))
Microsoft.Maui.Graphics.Skia (1)
SkiaCanvasState.cs (1)
211 if (!ReferenceEquals(_font, value) && (_font is null || !_font.Equals(value)))
Microsoft.Maui.Maps (1)
Primitives\MapSpan.cs (1)
47 if (ReferenceEquals(this, obj))
Microsoft.ML.Core (13)
Utilities\Contracts.cs (13)
557if (object.ReferenceEquals(val, null)) 563if (object.ReferenceEquals(val, null)) 570if (object.ReferenceEquals(val, null)) 577if (object.ReferenceEquals(val, null)) 582if (object.ReferenceEquals(val, null)) 587if (object.ReferenceEquals(val, null)) 593if (object.ReferenceEquals(val, null)) 864if (object.ReferenceEquals(val, null)) 870if (object.ReferenceEquals(val, null)) 877if (object.ReferenceEquals(val, null)) 884if (object.ReferenceEquals(val, null)) 891if (object.ReferenceEquals(val, null)) 897if (object.ReferenceEquals(val, null))
Microsoft.ML.CpuMath (13)
src\Microsoft.ML.Core\Utilities\Contracts.cs (13)
557if (object.ReferenceEquals(val, null)) 563if (object.ReferenceEquals(val, null)) 570if (object.ReferenceEquals(val, null)) 577if (object.ReferenceEquals(val, null)) 582if (object.ReferenceEquals(val, null)) 587if (object.ReferenceEquals(val, null)) 593if (object.ReferenceEquals(val, null)) 864if (object.ReferenceEquals(val, null)) 870if (object.ReferenceEquals(val, null)) 877if (object.ReferenceEquals(val, null)) 884if (object.ReferenceEquals(val, null)) 891if (object.ReferenceEquals(val, null)) 897if (object.ReferenceEquals(val, null))
Microsoft.ML.DataView (1)
Contracts.cs (1)
69if (object.ReferenceEquals(val, null))
Microsoft.ML.InternalCodeAnalyzer (1)
Descriptions.Designer.cs (1)
42if (object.ReferenceEquals(resourceMan, null)) {
Microsoft.ML.OnnxConverter (38)
OnnxMl.cs (38)
519if (ReferenceEquals(other, null)) 523if (ReferenceEquals(other, this)) 1013if (ReferenceEquals(other, null)) 1017if (ReferenceEquals(other, this)) 1327if (ReferenceEquals(other, null)) 1331if (ReferenceEquals(other, this)) 1734if (ReferenceEquals(other, null)) 1738if (ReferenceEquals(other, this)) 2057if (ReferenceEquals(other, null)) 2061if (ReferenceEquals(other, this)) 2252if (ReferenceEquals(other, null)) 2256if (ReferenceEquals(other, this)) 2555if (ReferenceEquals(other, null)) 2559if (ReferenceEquals(other, this)) 3058if (ReferenceEquals(other, null)) 3062if (ReferenceEquals(other, this)) 3505if (ReferenceEquals(other, null)) 3509if (ReferenceEquals(other, this)) 3735if (ReferenceEquals(other, null)) 3739if (ReferenceEquals(other, this)) 3942if (ReferenceEquals(other, null)) 3946if (ReferenceEquals(other, this)) 4160if (ReferenceEquals(other, null)) 4164if (ReferenceEquals(other, this)) 4495if (ReferenceEquals(other, null)) 4499if (ReferenceEquals(other, this)) 4825if (ReferenceEquals(other, null)) 4829if (ReferenceEquals(other, this)) 5017if (ReferenceEquals(other, null)) 5021if (ReferenceEquals(other, this)) 5207if (ReferenceEquals(other, null)) 5211if (ReferenceEquals(other, this)) 5411if (ReferenceEquals(other, null)) 5415if (ReferenceEquals(other, this)) 5616if (ReferenceEquals(other, null)) 5620if (ReferenceEquals(other, this)) 5827if (ReferenceEquals(other, null)) 5831if (ReferenceEquals(other, this))
Microsoft.ML.OnnxTransformer (38)
src\Microsoft.ML.OnnxConverter\OnnxMl.cs (38)
519if (ReferenceEquals(other, null)) 523if (ReferenceEquals(other, this)) 1013if (ReferenceEquals(other, null)) 1017if (ReferenceEquals(other, this)) 1327if (ReferenceEquals(other, null)) 1331if (ReferenceEquals(other, this)) 1734if (ReferenceEquals(other, null)) 1738if (ReferenceEquals(other, this)) 2057if (ReferenceEquals(other, null)) 2061if (ReferenceEquals(other, this)) 2252if (ReferenceEquals(other, null)) 2256if (ReferenceEquals(other, this)) 2555if (ReferenceEquals(other, null)) 2559if (ReferenceEquals(other, this)) 3058if (ReferenceEquals(other, null)) 3062if (ReferenceEquals(other, this)) 3505if (ReferenceEquals(other, null)) 3509if (ReferenceEquals(other, this)) 3735if (ReferenceEquals(other, null)) 3739if (ReferenceEquals(other, this)) 3942if (ReferenceEquals(other, null)) 3946if (ReferenceEquals(other, this)) 4160if (ReferenceEquals(other, null)) 4164if (ReferenceEquals(other, this)) 4495if (ReferenceEquals(other, null)) 4499if (ReferenceEquals(other, this)) 4825if (ReferenceEquals(other, null)) 4829if (ReferenceEquals(other, this)) 5017if (ReferenceEquals(other, null)) 5021if (ReferenceEquals(other, this)) 5207if (ReferenceEquals(other, null)) 5211if (ReferenceEquals(other, this)) 5411if (ReferenceEquals(other, null)) 5415if (ReferenceEquals(other, this)) 5616if (ReferenceEquals(other, null)) 5620if (ReferenceEquals(other, this)) 5827if (ReferenceEquals(other, null)) 5831if (ReferenceEquals(other, this))
Microsoft.ML.SearchSpace (2)
Parameter.cs (2)
388if (Object.ReferenceEquals(other, null)) return false; 391if (Object.ReferenceEquals(this, other)) return true;
Microsoft.ML.Tokenizers (12)
SentencepieceModel.cs (12)
1603if (ReferenceEquals(other, null)) { 1606if (ReferenceEquals(other, this)) { 3090if (ReferenceEquals(other, null)) { 3093if (ReferenceEquals(other, this)) { 3447if (ReferenceEquals(other, null)) { 3450if (ReferenceEquals(other, this)) { 3713if (ReferenceEquals(other, null)) { 3716if (ReferenceEquals(other, this)) { 4007if (ReferenceEquals(other, null)) { 4010if (ReferenceEquals(other, this)) { 4442if (ReferenceEquals(other, null)) { 4445if (ReferenceEquals(other, this)) {
Microsoft.ML.Transforms (1)
Properties\Resources.Designer.cs (1)
41if (object.ReferenceEquals(resourceMan, null)) {
Microsoft.Net.Http.Headers (1)
MediaTypeHeaderValueComparer.cs (1)
36if (object.ReferenceEquals(mediaType1, mediaType2))
Microsoft.NET.StringTools.net35 (1)
InternableString.Simple.cs (1)
183return ReferenceEquals(str, _firstString);
Microsoft.NET.StringTools.net35.UnitTests (1)
StringTools_Tests.cs (1)
37Object.ReferenceEquals(internedString1, internedString2).ShouldBeTrue();
Microsoft.NET.StringTools.UnitTests (2)
StringTools_Tests.cs (2)
37Object.ReferenceEquals(internedString1, internedString2).ShouldBeTrue(); 45Object.ReferenceEquals(internedString1, internedString2).ShouldBeTrue();
Microsoft.VisualStudio.LanguageServices (8)
DocumentOutline\DocumentSymbolDataViewModel.cs (1)
86if (ReferenceEquals(this, other))
EditorConfigSettings\SettingsEditorControl.xaml.cs (5)
129if (ReferenceEquals(selectedTabItem.Tag, previousTabItem.Tag)) 144if (ReferenceEquals(tag, WhitespaceControl)) 148else if (ReferenceEquals(tag, CodeStyleControl)) 152else if (ReferenceEquals(tag, NamingStyleControl)) 156else if (ReferenceEquals(tag, AnalyzersControl))
src\Compilers\Core\Portable\InternalUtilities\ConcurrentLruCache.cs (1)
90if (!ReferenceEquals(_nodeList.First, node))
Venus\ContainedDocument.cs (1)
770Debug.Assert(ReferenceEquals(parsedDocument.Text, subjectBuffer.CurrentSnapshot.AsText()));
MSBuild (6)
AssemblyNameExtension.cs (4)
683if (object.ReferenceEquals(this, that)) 698if (object.ReferenceEquals(asAssemblyName, that.asAssemblyName)) 897if (object.ReferenceEquals(this, that)) 912if (object.ReferenceEquals(asAssemblyName, that.asAssemblyName))
CopyOnWriteDictionary.cs (1)
381return ReferenceEquals(other._backing, _backing);
MSBuildNameIgnoreCaseComparer.cs (1)
57if (ReferenceEquals(compareToString, constrainedString))
MSBuildTaskHost (5)
AssemblyNameExtension.cs (4)
683if (object.ReferenceEquals(this, that)) 698if (object.ReferenceEquals(asAssemblyName, that.asAssemblyName)) 897if (object.ReferenceEquals(this, that)) 912if (object.ReferenceEquals(asAssemblyName, that.asAssemblyName))
CopyOnWriteDictionary.cs (1)
381return ReferenceEquals(other._backing, _backing);
MyFrontend (18)
artifacts\obj\MyFrontend\Debug\net8.0\Basket.cs (18)
134if (ReferenceEquals(other, null)) { 137if (ReferenceEquals(other, this)) { 344if (ReferenceEquals(other, null)) { 347if (ReferenceEquals(other, this)) { 568if (ReferenceEquals(other, null)) { 571if (ReferenceEquals(other, this)) { 832if (ReferenceEquals(other, null)) { 835if (ReferenceEquals(other, this)) { 1144if (ReferenceEquals(other, null)) { 1147if (ReferenceEquals(other, this)) { 1329if (ReferenceEquals(other, null)) { 1332if (ReferenceEquals(other, this)) { 1503if (ReferenceEquals(other, null)) { 1506if (ReferenceEquals(other, this)) { 1688if (ReferenceEquals(other, null)) { 1691if (ReferenceEquals(other, this)) { 1886if (ReferenceEquals(other, null)) { 1889if (ReferenceEquals(other, this)) {
PresentationBuildTasks (5)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (5)
225if (object.ReferenceEquals(namespaceName, CompatibilityUri)) 314if (object.ReferenceEquals(namespaceName, CompatibilityUri)) 319if (object.ReferenceEquals(elementName, AlternateContent)) 931result = object.ReferenceEquals(namespaceName, CompatibilityUri); 1075if (object.ReferenceEquals(namespaceName, CompatibilityUri))
PresentationCore (59)
MS\Internal\DpiScale2.cs (7)
95if ((object.ReferenceEquals(dpiScaleA, null) && !object.ReferenceEquals(dpiScaleB, null)) || 96(!object.ReferenceEquals(dpiScaleA, null) && object.ReferenceEquals(dpiScaleB, null))) 112if (object.ReferenceEquals(dpiScaleA, null) && 113object.ReferenceEquals(dpiScaleB, null)) 153if (object.ReferenceEquals(dpiScale2, null))
MS\Internal\Ink\Renderer.cs (1)
563if (object.ReferenceEquals(_strokes[i], visualStroke))
MS\Internal\Span.cs (1)
441static private Equals _referenceEquals = new Equals(Object.ReferenceEquals);
MS\Internal\TextFormatting\CultureMapper.cs (1)
38if (cachedCultureMap != null && object.ReferenceEquals(cachedCultureMap.OriginalCulture, runCulture))
MS\Internal\TextFormatting\LineServicesCallbacks.cs (1)
1373if (Object.ReferenceEquals(textDecoration.Pen, textDecorationPen))
MS\Internal\TextFormatting\NumberSubstitution.cs (1)
105if (!object.ReferenceEquals(numberCulture, _lastNumberCulture) || method != _lastMethod)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (2)
296if (object.ReferenceEquals(left, null)) 298return object.ReferenceEquals(right, null);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Utility\PerfService.cs (1)
44if (!Object.ReferenceEquals(key, asm))
System\Windows\BinaryFormat\BinaryObjectString.cs (1)
40=> ReferenceEquals(this, obj)
System\Windows\FreezableCollection.cs (1)
319bool isChanging = !Object.ReferenceEquals(oldValue, value);
System\Windows\Ink\DrawingAttributes.cs (1)
742if (Object.ReferenceEquals(left, right))
System\Windows\Ink\StrokeCollection.cs (1)
356if (object.ReferenceEquals(this[i], stroke))
System\Windows\Input\Stylus\Common\StylusPoint.cs (1)
512if (object.ReferenceEquals(stylusPoint1.Description, stylusPoint2.Description) ||
System\Windows\Media\Animation\TimelineClockCollection.cs (3)
217if (Object.ReferenceEquals(objA, objB)) 222else if ( Object.ReferenceEquals(objA, null) 223|| Object.ReferenceEquals(objB, null))
System\Windows\Media\Effects\Generated\ImplicitInputBrush.cs (2)
110Object.ReferenceEquals(vTransform, Transform.Identity) 121Object.ReferenceEquals(vRelativeTransform, Transform.Identity)
System\Windows\Media\FontFamily.cs (1)
482if (canonicalFamilyReference == null || object.ReferenceEquals(canonicalFamilyReference, CanonicalFontFamilyReference.Unresolved))
System\Windows\Media\Fonts.cs (1)
242object.ReferenceEquals(fontLocation, Util.WindowsFontsUriObject) ?
System\Windows\Media\Generated\BitmapCacheBrush.cs (2)
309Object.ReferenceEquals(vTransform, Transform.Identity) 320Object.ReferenceEquals(vRelativeTransform, Transform.Identity)
System\Windows\Media\Generated\CombinedGeometry.cs (1)
248Object.ReferenceEquals(vTransform, Transform.Identity)
System\Windows\Media\Generated\DrawingBrush.cs (2)
167Object.ReferenceEquals(vTransform, Transform.Identity) 178Object.ReferenceEquals(vRelativeTransform, Transform.Identity)
System\Windows\Media\Generated\DrawingGroup.cs (1)
539Object.ReferenceEquals(vTransform, Transform.Identity)
System\Windows\Media\Generated\EllipseGeometry.cs (1)
172Object.ReferenceEquals(vTransform, Transform.Identity)
System\Windows\Media\Generated\GeometryGroup.cs (1)
233Object.ReferenceEquals(vTransform, Transform.Identity)
System\Windows\Media\Generated\ImageBrush.cs (2)
167Object.ReferenceEquals(vTransform, Transform.Identity) 178Object.ReferenceEquals(vRelativeTransform, Transform.Identity)
System\Windows\Media\Generated\LineGeometry.cs (1)
150Object.ReferenceEquals(vTransform, Transform.Identity)
System\Windows\Media\Generated\RectangleGeometry.cs (1)
172Object.ReferenceEquals(vTransform, Transform.Identity)
System\Windows\Media\Generated\SolidColorBrush.cs (2)
129Object.ReferenceEquals(vTransform, Transform.Identity) 140Object.ReferenceEquals(vRelativeTransform, Transform.Identity)
System\Windows\Media\Generated\VisualBrush.cs (2)
202Object.ReferenceEquals(vTransform, Transform.Identity) 213Object.ReferenceEquals(vRelativeTransform, Transform.Identity)
System\Windows\Media\GeometryHitTestParameters.cs (1)
46if (object.ReferenceEquals(_hitGeometryInternal, geometry))
System\Windows\Media\LinearGradientBrush.cs (2)
132Object.ReferenceEquals(vTransform, Transform.Identity) 143Object.ReferenceEquals(vRelativeTransform, Transform.Identity)
System\Windows\Media\PathGeometry.cs (1)
989Object.ReferenceEquals(vTransform, Transform.Identity)
System\Windows\Media\RadialGradientBrush.cs (2)
73Object.ReferenceEquals(vTransform, Transform.Identity) 84Object.ReferenceEquals(vRelativeTransform, Transform.Identity)
System\Windows\Media\StreamGeometry.cs (1)
385Object.ReferenceEquals(vTransform, Transform.Identity)
System\Windows\Media3D\Generated\AmbientLight.cs (1)
109Object.ReferenceEquals(vTransform, Transform3D.Identity)
System\Windows\Media3D\Generated\DirectionalLight.cs (1)
128Object.ReferenceEquals(vTransform, Transform3D.Identity)
System\Windows\Media3D\Generated\GeometryModel3D.cs (1)
296Object.ReferenceEquals(vTransform, Transform3D.Identity)
System\Windows\Media3D\Generated\MatrixCamera.cs (1)
150Object.ReferenceEquals(vTransform, Transform3D.Identity)
System\Windows\Media3D\Generated\Model3DGroup.cs (1)
210Object.ReferenceEquals(vTransform, Transform3D.Identity)
System\Windows\Media3D\Generated\OrthographicCamera.cs (1)
128Object.ReferenceEquals(vTransform, Transform3D.Identity)
System\Windows\Media3D\Generated\PerspectiveCamera.cs (1)
128Object.ReferenceEquals(vTransform, Transform3D.Identity)
System\Windows\Media3D\Generated\PointLight.cs (1)
109Object.ReferenceEquals(vTransform, Transform3D.Identity)
System\Windows\Media3D\Generated\SpotLight.cs (1)
172Object.ReferenceEquals(vTransform, Transform3D.Identity)
PresentationFramework (36)
MS\Internal\AppModel\AppSecurityManager.cs (2)
73bool isKnownScheme = (Object.ReferenceEquals(destinationUri.Scheme, Uri.UriSchemeHttp)) || 74(Object.ReferenceEquals(destinationUri.Scheme, Uri.UriSchemeHttps)) ||
MS\Internal\Controls\ModelTreeEnumerator.cs (4)
147return Object.ReferenceEquals(Content, _owner.Content); 205return Object.ReferenceEquals(header, _owner.Header) && 206Object.ReferenceEquals(_content, _owner.Content); 261return Object.ReferenceEquals(header, _owner.Header);
MS\Internal\DataStreams.cs (1)
108if (object.ReferenceEquals(localValueEntry.Property, Frame.SourceProperty))
MS\Internal\Text\TextSpanModifier.cs (1)
91if (object.ReferenceEquals(brush, properties.ForegroundBrush))
MS\Internal\WeakHashtable.cs (2)
166return object.ReferenceEquals(x, y); 219if (o == this || object.ReferenceEquals(o, Target))
MS\Internal\WeakObjectHashtable.cs (2)
147if (object.ReferenceEquals(x, y)) 228if (o == this || object.ReferenceEquals(o, Target))
System\Windows\Automation\Peers\ItemAutomationPeer.cs (1)
698if (!Object.ReferenceEquals(item, iwr.Target))
System\Windows\Controls\ContentPresenter.cs (1)
215Object.ReferenceEquals(typeof(String), newDataType) &&
System\Windows\Controls\DataGrid.cs (1)
944if (object.ReferenceEquals(ItemBindingGroup, _defaultBindingGroup))
System\Windows\Controls\InkCanvas.cs (4)
615if ( !object.ReferenceEquals(oldValue, newValue) ) 739if ( !object.ReferenceEquals(oldValue, newValue) ) 1967if (!object.ReferenceEquals(value, _dynamicRenderer)) 2567System.Diagnostics.Debug.Assert(object.ReferenceEquals(sender, DefaultDrawingAttributes));
System\Windows\Controls\Primitives\DataGridRowHeader.cs (1)
649!object.ReferenceEquals(parent.Item, dataGrid.Items[0]))
System\Windows\Controls\Primitives\Popup.cs (1)
1411return Object.ReferenceEquals(Content, _popup.Child);
System\Windows\Controls\Primitives\Selector.cs (1)
2953if (Object.ReferenceEquals(x, y))
System\Windows\Controls\SoundPlayerAction.cs (1)
218if (Object.ReferenceEquals(m_player, sender))
System\Windows\Data\XmlNamespaceMapping.cs (3)
88if (object.ReferenceEquals(mappingA, null)) 89return object.ReferenceEquals(mappingB, null); 90if (object.ReferenceEquals(mappingB, null))
System\Windows\Documents\FixedSchema.cs (1)
156if (!object.ReferenceEquals(attr, _lastAttr)) // Check for same string object, not for equality!
System\Windows\Documents\FlowNode.cs (1)
117if (Object.ReferenceEquals(this, fp))
System\Windows\Navigation\NavigationService.cs (6)
201if (object.ReferenceEquals(a, b)) // also handles both null 1052if (!ReferenceEquals(v, _oldRootVisual)) 1133if (object.ReferenceEquals(bp, _bp)) 1641if (object.ReferenceEquals(root, _bp) && (navigateInfo == null || navigateInfo.NavigationMode != NavigationMode.Refresh)) 3023Invariant.Assert(navFlags != NavigationMode.Refresh ^ object.ReferenceEquals(bp, _bp), 3837if (object.ReferenceEquals(_bp, finishingChildPageFunction))
System\Windows\Shapes\Shape.cs (2)
74if (Object.ReferenceEquals(geometry, _renderedGeometry)) 739if (Object.ReferenceEquals(_renderedGeometry, currentValue))
PresentationUI (1)
artifacts\obj\PresentationUI\x86\Debug\net10.0\MS.Internal.Documents.Resources.cs (1)
39if (object.ReferenceEquals(resourceMan, null)) {
ReachFramework (6)
Packaging\XpsInterleavingPolicy.cs (2)
490if( Object.ReferenceEquals(node, n.Node)) 503if (Object.ReferenceEquals(node, n.Node))
PrintConfig\PTManager.cs (2)
141&& object.ReferenceEquals(this._ptStream, other._ptStream) 142&& object.ReferenceEquals(this._printTicket, other._printTicket);
Serialization\DrawingContextFlattener.cs (1)
229if (! Object.ReferenceEquals(b, pen.Brush))
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\UriComparer.cs (1)
56if(object.ReferenceEquals(a, b))
Roslyn.VisualStudio.Next.UnitTests (3)
Services\ServiceHubServicesTests.cs (2)
1590Assert.Equal(projectStateShouldSame, object.ReferenceEquals(solution1.GetProject(currentProjectId).State, solution2.GetProject(currentProjectId).State)); 1602Assert.Equal(documentStateShouldSame, object.ReferenceEquals(solution1.GetDocument(currentDocumentId).State, solution2.GetDocument(currentDocumentId).State));
UnifiedSettings\TestModel\UnifiedSettingsEnumOption.cs (1)
25if (ReferenceEquals(this, other))
Sandbox (18)
artifacts\obj\Sandbox\Release\net10.0\Greet.cs (6)
114if (ReferenceEquals(other, null)) { 117if (ReferenceEquals(other, this)) { 317if (ReferenceEquals(other, null)) { 320if (ReferenceEquals(other, this)) { 544if (ReferenceEquals(other, null)) { 547if (ReferenceEquals(other, this)) {
artifacts\obj\Sandbox\Release\net10.0\Transcoding.cs (12)
253if (ReferenceEquals(other, null)) { 256if (ReferenceEquals(other, this)) { 571if (ReferenceEquals(other, null)) { 574if (ReferenceEquals(other, this)) { 983if (ReferenceEquals(other, null)) { 986if (ReferenceEquals(other, this)) { 1580if (ReferenceEquals(other, null)) { 1583if (ReferenceEquals(other, this)) { 1897if (ReferenceEquals(other, null)) { 1900if (ReferenceEquals(other, this)) { 2363if (ReferenceEquals(other, null)) { 2366if (ReferenceEquals(other, this)) {
ScenarioTests.Common.Tests (2)
ScenarioTestTypes.cs (2)
523if (object.ReferenceEquals(this, other)) { return true; } 668if (object.ReferenceEquals(this, other)) { return true; }
SocialWeather (2)
Protobuf\WeatherReport.cs (2)
148if (ReferenceEquals(other, null)) { 151if (ReferenceEquals(other, this)) {
Stress.TelemetryService (84)
artifacts\obj\Stress.TelemetryService\Debug\net8.0\opentelemetry\proto\collector\logs\v1\LogsService.cs (6)
128if (ReferenceEquals(other, null)) { 131if (ReferenceEquals(other, this)) { 333if (ReferenceEquals(other, null)) { 336if (ReferenceEquals(other, this)) { 568if (ReferenceEquals(other, null)) { 571if (ReferenceEquals(other, this)) {
artifacts\obj\Stress.TelemetryService\Debug\net8.0\opentelemetry\proto\collector\metrics\v1\MetricsService.cs (6)
130if (ReferenceEquals(other, null)) { 133if (ReferenceEquals(other, this)) { 335if (ReferenceEquals(other, null)) { 338if (ReferenceEquals(other, this)) { 570if (ReferenceEquals(other, null)) { 573if (ReferenceEquals(other, this)) {
artifacts\obj\Stress.TelemetryService\Debug\net8.0\opentelemetry\proto\collector\trace\v1\TraceService.cs (6)
129if (ReferenceEquals(other, null)) { 132if (ReferenceEquals(other, this)) { 334if (ReferenceEquals(other, null)) { 337if (ReferenceEquals(other, this)) { 569if (ReferenceEquals(other, null)) { 572if (ReferenceEquals(other, this)) {
artifacts\obj\Stress.TelemetryService\Debug\net8.0\opentelemetry\proto\common\v1\Common.cs (10)
322if (ReferenceEquals(other, null)) { 325if (ReferenceEquals(other, this)) { 701if (ReferenceEquals(other, null)) { 704if (ReferenceEquals(other, this)) { 901if (ReferenceEquals(other, null)) { 904if (ReferenceEquals(other, this)) { 1106if (ReferenceEquals(other, null)) { 1109if (ReferenceEquals(other, this)) { 1387if (ReferenceEquals(other, null)) { 1390if (ReferenceEquals(other, this)) {
artifacts\obj\Stress.TelemetryService\Debug\net8.0\opentelemetry\proto\logs\v1\Logs.cs (8)
222if (ReferenceEquals(other, null)) { 225if (ReferenceEquals(other, this)) { 449if (ReferenceEquals(other, null)) { 452if (ReferenceEquals(other, this)) { 733if (ReferenceEquals(other, null)) { 736if (ReferenceEquals(other, this)) { 1172if (ReferenceEquals(other, null)) { 1175if (ReferenceEquals(other, this)) {
artifacts\obj\Stress.TelemetryService\Debug\net8.0\opentelemetry\proto\metrics\v1\Metrics.cs (32)
322if (ReferenceEquals(other, null)) { 325if (ReferenceEquals(other, this)) { 549if (ReferenceEquals(other, null)) { 552if (ReferenceEquals(other, this)) { 833if (ReferenceEquals(other, null)) { 836if (ReferenceEquals(other, this)) { 1302if (ReferenceEquals(other, null)) { 1305if (ReferenceEquals(other, this)) { 1748if (ReferenceEquals(other, null)) { 1751if (ReferenceEquals(other, this)) { 1972if (ReferenceEquals(other, null)) { 1975if (ReferenceEquals(other, this)) { 2228if (ReferenceEquals(other, null)) { 2231if (ReferenceEquals(other, this)) { 2460if (ReferenceEquals(other, null)) { 2463if (ReferenceEquals(other, this)) { 2679if (ReferenceEquals(other, null)) { 2682if (ReferenceEquals(other, this)) { 3030if (ReferenceEquals(other, null)) { 3033if (ReferenceEquals(other, this)) { 3614if (ReferenceEquals(other, null)) { 3617if (ReferenceEquals(other, this)) { 4325if (ReferenceEquals(other, null)) { 4328if (ReferenceEquals(other, this)) { 4868if (ReferenceEquals(other, null)) { 4871if (ReferenceEquals(other, this)) { 5207if (ReferenceEquals(other, null)) { 5210if (ReferenceEquals(other, this)) { 5564if (ReferenceEquals(other, null)) { 5567if (ReferenceEquals(other, this)) { 5938if (ReferenceEquals(other, null)) { 5941if (ReferenceEquals(other, this)) {
artifacts\obj\Stress.TelemetryService\Debug\net8.0\opentelemetry\proto\resource\v1\Resource.cs (2)
136if (ReferenceEquals(other, null)) { 139if (ReferenceEquals(other, this)) {
artifacts\obj\Stress.TelemetryService\Debug\net8.0\opentelemetry\proto\trace\v1\Trace.cs (14)
168if (ReferenceEquals(other, null)) { 171if (ReferenceEquals(other, this)) { 395if (ReferenceEquals(other, null)) { 398if (ReferenceEquals(other, this)) { 679if (ReferenceEquals(other, null)) { 682if (ReferenceEquals(other, this)) { 1205if (ReferenceEquals(other, null)) { 1208if (ReferenceEquals(other, this)) { 1818if (ReferenceEquals(other, null)) { 1821if (ReferenceEquals(other, this)) { 2154if (ReferenceEquals(other, null)) { 2157if (ReferenceEquals(other, this)) { 2466if (ReferenceEquals(other, null)) { 2469if (ReferenceEquals(other, this)) {
System.Collections.Concurrent (4)
System\Collections\Concurrent\ConcurrentDictionary.cs (4)
203ReferenceEquals(comparer, EqualityComparer<TKey>.Default)) 220else if (ReferenceEquals(comparer, EqualityComparer<TKey>.Default)) 2438if (!ReferenceEquals(comparer, tables._comparer)) 2641if (!ReferenceEquals(comparer, tables._comparer))
System.Collections.Immutable (36)
System\Collections\Frozen\FrozenDictionary.cs (6)
102return ReferenceEquals(comparer, FrozenDictionary<TKey, TValue>.Empty.Comparer) ? 123if (typeof(TKey).IsValueType && ReferenceEquals(comparer, EqualityComparer<TKey>.Default)) 161(ReferenceEquals(comparer, EqualityComparer<TKey>.Default) || ReferenceEquals(comparer, StringComparer.Ordinal) || ReferenceEquals(comparer, StringComparer.OrdinalIgnoreCase))) 188KeyAnalyzer.AnalysisResults analysis = KeyAnalyzer.Analyze(keys, ReferenceEquals(stringComparer, StringComparer.OrdinalIgnoreCase), minLength, maxLength);
System\Collections\Frozen\FrozenSet.cs (7)
33return equalityComparer is null || ReferenceEquals(equalityComparer, FrozenSet<T>.Empty.Comparer) ? 85return ReferenceEquals(comparer, FrozenSet<T>.Empty.Comparer) ? 104if (typeof(T).IsValueType && ReferenceEquals(comparer, EqualityComparer<T>.Default)) 136(ReferenceEquals(comparer, EqualityComparer<T>.Default) || ReferenceEquals(comparer, StringComparer.Ordinal) || ReferenceEquals(comparer, StringComparer.OrdinalIgnoreCase))) 164KeyAnalyzer.AnalysisResults analysis = KeyAnalyzer.Analyze(entries, ReferenceEquals(stringComparer, StringComparer.OrdinalIgnoreCase), minLength, maxLength);
System\Collections\Frozen\Int32\Int32FrozenDictionary.cs (1)
23Debug.Assert(ReferenceEquals(source.Comparer, EqualityComparer<int>.Default));
System\Collections\Frozen\Int32\Int32FrozenSet.cs (1)
22Debug.Assert(ReferenceEquals(source.Comparer, EqualityComparer<int>.Default));
System\Collections\Frozen\SmallValueTypeComparableFrozenDictionary.cs (1)
31Debug.Assert(ReferenceEquals(source.Comparer, EqualityComparer<TKey>.Default));
System\Collections\Frozen\SmallValueTypeComparableFrozenSet.cs (1)
30Debug.Assert(ReferenceEquals(source.Comparer, EqualityComparer<T>.Default));
System\Collections\Frozen\SmallValueTypeDefaultComparerFrozenDictionary.cs (1)
24Debug.Assert(ReferenceEquals(source.Comparer, EqualityComparer<TKey>.Default));
System\Collections\Frozen\SmallValueTypeDefaultComparerFrozenSet.cs (1)
22Debug.Assert(ReferenceEquals(source.Comparer, EqualityComparer<T>.Default));
System\Collections\Frozen\String\LengthBucketsFrozenDictionary.cs (1)
29_ignoreCase = ReferenceEquals(comparer, StringComparer.OrdinalIgnoreCase);
System\Collections\Frozen\String\LengthBucketsFrozenSet.cs (1)
26_ignoreCase = ReferenceEquals(comparer, StringComparer.OrdinalIgnoreCase);
System\Collections\Frozen\ValueTypeDefaultComparerFrozenDictionary.cs (1)
19Debug.Assert(ReferenceEquals(source.Comparer, EqualityComparer<TKey>.Default));
System\Collections\Frozen\ValueTypeDefaultComparerFrozenSet.cs (1)
16Debug.Assert(ReferenceEquals(source.Comparer, EqualityComparer<T>.Default));
System\Collections\Immutable\ImmutableDictionary_2.Comparers.cs (1)
103return object.ReferenceEquals(x.AdditionalElements, y.AdditionalElements)
System\Collections\Immutable\ImmutableHashSet_1.Builder.cs (1)
348if (object.ReferenceEquals(this, other))
System\Collections\Immutable\ImmutableHashSet_1.cs (1)
283if (object.ReferenceEquals(this, other))
System\Collections\Immutable\ImmutableHashSet_1.HashBucket.cs (3)
107return object.ReferenceEquals(_firstValue, other._firstValue) 108&& object.ReferenceEquals(_additionalElements, other._additionalElements); 121&& object.ReferenceEquals(_additionalElements, other._additionalElements);
System\Collections\Immutable\ImmutableInterlocked.cs (4)
43if (ReferenceEquals(oldValue, newValue)) 50successful = ReferenceEquals(oldValue, interlockedResult); 139successful = ReferenceEquals(oldArray, interlockedResult); 186successful = ReferenceEquals(oldArray, interlockedResult);
System\Collections\Immutable\ImmutableSortedSet_1.cs (1)
373if (object.ReferenceEquals(this, other))
System\Linq\ImmutableArrayExtensions.cs (2)
160if (object.ReferenceEquals(immutableArray.array, items.array)) 225if (object.ReferenceEquals(immutableArray.array, items.array))
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\ValidationAttributeStore.cs (1)
252if (object.ReferenceEquals(attr, attributes[i]))
System.ComponentModel.Composition (3)
Microsoft\Internal\Collections\WeakReferenceCollection.cs (1)
50if (object.ReferenceEquals(_items[i].Target, item))
System\ComponentModel\Composition\Primitives\ComposablePartCatalog.cs (1)
161if (object.ReferenceEquals(parts, _queryableParts))
System\ComponentModel\Composition\ReflectionModel\ReflectionComposablePartDefinition.cs (1)
329return object.ReferenceEquals(this, obj);
System.ComponentModel.TypeConverter (6)
System\ComponentModel\AmbientValueAttribute.cs (1)
147if (!IDesignerHost.IsSupported && ReferenceEquals(_value, s_throwSentinel))
System\ComponentModel\ComponentResourceManager.cs (1)
250if (resourceSet != null && !ReferenceEquals(resourceSet, parentResourceSet))
System\ComponentModel\Design\PropertyTabAttribute.cs (1)
155if (ReferenceEquals(this, other))
System\ComponentModel\TypeDescriptor.cs (1)
3013if (!ReferenceEquals(_filterService, filterService))
System\ComponentModel\WeakHashtable.cs (2)
128return object.ReferenceEquals(x, y); 161if (o == this || (IsAlive && ReferenceEquals(o, Target)))
System.Composition.TypedParts (2)
System\Composition\TypedParts\ActivationFeatures\LifetimeFeature.cs (1)
37if (object.ReferenceEquals(scope, c))
System\Composition\TypedParts\Discovery\DiscoveredPart.cs (1)
275if (ReferenceEquals(x, y))
System.Configuration.ConfigurationManager (6)
System\Configuration\BaseConfigurationRecord.cs (4)
1038if (ReferenceEquals(parentResult, parentResultRuntimeObject)) 1747isRootDeclaredHere = ReferenceEquals(this, rootConfigRecord); 2222if (IsLocationConfig && ReferenceEquals(immediateParent, parent)) 3752if (ReferenceEquals(x, y))
System\Configuration\Internal\InternalConfigRoot.cs (2)
249if ((index != parts.Length) || ((configRecord != null) && !ReferenceEquals(configRecord, currentRecord))) 286if ((index == parts.Length) && ReferenceEquals(configRecord, currentRecord))
System.Data.Common (22)
System\Data\DataRowComparer.cs (8)
22if (ReferenceEquals(a, b)) 27if (a is null || ReferenceEquals(a, DBNull.Value) || 28b is null || ReferenceEquals(b, DBNull.Value)) 38if (ReferenceEquals(a, b)) 43if (a is null || ReferenceEquals(a, DBNull.Value) || 44b is null || ReferenceEquals(b, DBNull.Value)) 96Debug.Assert(!ReferenceEquals(a, b)); 139if (ReferenceEquals(leftRow, rightRow))
System\Data\DataRowView.cs (3)
27/// <see cref="object.Equals(object)"/> instead of <see cref="object.ReferenceEquals"/> 30/// <returns><see cref="object.ReferenceEquals"/></returns> 31public override bool Equals(object? other) => ReferenceEquals(this, other);
System\Data\DataTable.cs (2)
4087if (ReferenceEquals(column, field.Column)) 7133if ((dc._table != null) && !ReferenceEquals(column, dc))
System\Data\DataTableExtensions.cs (1)
197if (ReferenceEquals(fillError.Errors ?? e, e))
System\Data\DataView.cs (5)
346if (!ReferenceEquals(RowPredicate, value)) 454if (!ReferenceEquals(_comparison, value)) 864if (ReferenceEquals(_addNewRow, rowview.Row)) 1764!ReferenceEquals(SortComparison, view.SortComparison) || 1765!ReferenceEquals(RowPredicate, view.RowPredicate) ||
System\Data\EnumerableRowCollection.cs (2)
165if (!object.ReferenceEquals(row, _selector((TRow)(object)row))) 185if (!object.ReferenceEquals(row, _selector((TRow)(object)row)))
System\Data\Selection.cs (1)
1033if (ReferenceEquals(list[i], item))
System.Diagnostics.DiagnosticSource (10)
System\Diagnostics\Activity.cs (1)
1745if (object.ReferenceEquals(_last, previous.Next))
System\Diagnostics\DiagLinkedList.cs (1)
122if (object.ReferenceEquals(_last, current))
System\Diagnostics\Metrics\Instrument.cs (6)
175if (!_subscriptions.AddIfNotExist(subscription, (s1, s2) => object.ReferenceEquals(s1.Listener, s2.Listener))) 177ListenerSubscription oldSubscription = _subscriptions.Remove(subscription, (s1, s2) => object.ReferenceEquals(s1.Listener, s2.Listener)); 178_subscriptions.AddIfNotExist(subscription, (s1, s2) => object.ReferenceEquals(s1.Listener, s2.Listener)); 179oldStateStored = object.ReferenceEquals(oldSubscription.Listener, subscription.Listener); 187internal object? DisableMeasurements(MeterListener listener) => _subscriptions.Remove(new ListenerSubscription(listener), (s1, s2) => object.ReferenceEquals(s1.Listener, s2.Listener)).State; 200if (object.ReferenceEquals(listener, current.Value.Listener))
System\Diagnostics\Metrics\MeterListener.cs (2)
78_enabledMeasurementInstruments.AddIfNotExist(instrument, object.ReferenceEquals); 114if (instrument is null || _enabledMeasurementInstruments.Remove(instrument, object.ReferenceEquals) == default)
System.Drawing.Common.Tests (3)
System\Drawing\Drawing2D\MatrixTests.cs (1)
208Assert.Equal(ReferenceEquals(matrix, other), matrix.GetHashCode().Equals(other.GetHashCode()));
System\Drawing\FontTests.cs (1)
451if (other is Font otherFont && !ReferenceEquals(font, otherFont))
System\Drawing\Printing\PrinterSettingsTests.cs (1)
450Assert.False(ReferenceEquals(clone, printerSettings));
System.IO.Packaging (7)
System\IO\Packaging\PackageXmlStringTable.cs (1)
87if (object.ReferenceEquals(s_xmlstringtable[i].Name, xmlString))
System\IO\Packaging\PartBasedPackageProperties.cs (1)
627if (!object.ReferenceEquals(ns, reader.LookupNamespace(typeValue.Substring(0, index)))
System\IO\Packaging\XmlCompatibilityReader.cs (5)
205if (object.ReferenceEquals(namespaceName, CompatibilityUri)) 291if (object.ReferenceEquals(namespaceName, CompatibilityUri)) 296if (object.ReferenceEquals(elementName, AlternateContent)) 868result = object.ReferenceEquals(namespaceName, CompatibilityUri); 1010if (object.ReferenceEquals(namespaceName, CompatibilityUri))
System.Linq (1)
System\Linq\OrderedEnumerable.cs (1)
400if (!ReferenceEquals(keySelector, IdentityFunc))
System.Linq.AsyncEnumerable (1)
System\Linq\OrderBy.cs (1)
296if (ReferenceEquals(keySelector, IdentityFunc))
System.Linq.Expressions (8)
System\Dynamic\DynamicObject.cs (1)
500if (!object.ReferenceEquals(parameters, s_noArgs))
System\Dynamic\Utils\ExpressionVisitorUtils.cs (3)
22else if (!object.ReferenceEquals(node, curNode)) 47else if (!object.ReferenceEquals(node, curNode)) 72else if (!object.ReferenceEquals(node, curNode))
System\Linq\Expressions\Compiler\BoundConstants.cs (1)
44return object.ReferenceEquals(Value, other.Value) && Type.Equals(other.Type);
System\Linq\Expressions\ExpressionVisitor.cs (3)
55else if (!object.ReferenceEquals(node, nodes[i])) 103else if (!object.ReferenceEquals(node, nodes[i])) 169else if (!object.ReferenceEquals(node, nodes[i]))
System.Memory.Data (1)
System\BinaryData.cs (1)
529public override bool Equals([NotNullWhen(true)] object? obj) => ReferenceEquals(this, obj);
System.Net.Http (12)
src\libraries\Common\src\System\Net\Http\aspnetcore\Http2\Hpack\HPackEncoder.cs (2)
464int encodedStringLength = valueEncoding is null || ReferenceEquals(valueEncoding, Encoding.Latin1) 533if (valueEncoding is null || ReferenceEquals(valueEncoding, Encoding.Latin1))
src\libraries\Common\src\System\Net\Http\aspnetcore\Http3\QPack\QPackEncoder.cs (2)
188int encodedStringLength = valueEncoding is null || ReferenceEquals(valueEncoding, Encoding.Latin1) 239if (valueEncoding is null || ReferenceEquals(valueEncoding, Encoding.Latin1))
src\libraries\Common\src\System\Net\HttpKnownHeaderNames.TryGetHeaderName.cs (1)
67if (ReferenceEquals(name, ContentEncoding))
System\Net\Http\Headers\EntityTagHeaderValue.cs (1)
140object ICloneable.Clone() => ReferenceEquals(this, Any) ? Any : new EntityTagHeaderValue(this);
System\Net\Http\Headers\HeaderDescriptor.cs (2)
40public bool Equals(KnownHeader other) => ReferenceEquals(_descriptor, other); 50return ReferenceEquals(_descriptor, other._descriptor);
System\Net\Http\Headers\HttpHeaders.cs (1)
757if (ReferenceEquals(previousValue, value))
System\Net\Http\HttpMethod.cs (1)
73? ReferenceEquals(left, right)
System\Net\Http\SocketsHttpHandler\Http3Connection.cs (1)
357if (NetEventSource.Log.IsEnabled() && !ReferenceEquals(firstException, abortException))
System\Net\Http\StringContent.cs (1)
57if (ReferenceEquals(encoding, DefaultStringEncoding))
System.Net.Http.Json (1)
System\Net\Http\Json\HttpClientJsonExtensions.cs (1)
69bool usingResponseHeadersRead = !ReferenceEquals(getMethod, s_deleteAsync);
System.Net.HttpListener (3)
System\Net\Managed\ChunkedInputStream.cs (1)
157if (ares == null || !ReferenceEquals(this, ares._parent))
System\Net\Managed\HttpListener.Managed.cs (1)
308if (ares == null || !ReferenceEquals(this, ares._parent))
System\Net\Managed\HttpRequestStream.Managed.cs (1)
170if (!ReferenceEquals(this, r._parent))
System.Net.Mail (4)
System\Net\Mail\SmtpClient.cs (2)
604_transport.IdentityRequired = Credentials != null && (ReferenceEquals(Credentials, CredentialCache.DefaultNetworkCredentials) || (cache = Credentials as CredentialCache) == null || IsSystemNetworkCredentialInCache(cache)); 688if (ReferenceEquals(credential, CredentialCache.DefaultNetworkCredentials))
System\Net\Mail\SmtpConnection.cs (1)
307if (ReferenceEquals(credential, CredentialCache.DefaultNetworkCredentials))
System\Net\Mail\SmtpLoginAuthenticationModule.cs (1)
24if (credential == null || ReferenceEquals(credential, CredentialCache.DefaultNetworkCredentials))
System.Net.Quic (1)
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeHandleCache.cs (1)
52bool isCachedInvalidHandle = ReferenceEquals(handle, s_invalidHandle);
System.Net.Requests (8)
System\Net\HttpWebRequest.cs (8)
168&& ReferenceEquals(Credentials, requestParameters.Credentials) 169&& ReferenceEquals(Proxy, requestParameters.Proxy) 170&& ReferenceEquals(ServerCertificateValidationCallback, requestParameters.ServerCertificateValidationCallback) 171&& ReferenceEquals(ClientCertificates, requestParameters.ClientCertificates) 172&& ReferenceEquals(CookieContainer, requestParameters.CookieContainer) 173&& ReferenceEquals(ServicePoint, requestParameters.ServicePoint) 180&& ReferenceEquals(Proxy, DefaultWebProxy) 1721else if (!ReferenceEquals(parameters.Proxy, GetSystemWebProxy()))
System.Net.Security (8)
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeHandleCache.cs (1)
52bool isCachedInvalidHandle = ReferenceEquals(handle, s_invalidHandle);
System\Net\Security\NegotiateStream.cs (1)
588ObjectDisposedException.ThrowIf(ReferenceEquals(e, s_disposedSentinel), this);
System\Net\Security\SslApplicationProtocol.cs (3)
83ReferenceEquals(arr, s_http3Utf8) ? "h3" : 84ReferenceEquals(arr, s_http2Utf8) ? "h2" : 85ReferenceEquals(arr, s_http11Utf8) ? "http/1.1" :
System\Net\Security\SslStream.cs (1)
907ObjectDisposedException.ThrowIf(ReferenceEquals(e, s_disposedSentinel), this);
System\Net\Security\SslStream.Protocol.cs (2)
207if (!object.ReferenceEquals(certificate, certEx)) 253if (!ReferenceEquals(toDispose, cert))
System.Net.Sockets (1)
System\Net\Sockets\SocketAsyncEngine.Unix.cs (1)
165Debug.Assert(ReferenceEquals(s_registeredContexts[context.GlobalContextIndex], context));
System.Private.CoreLib (198)
src\libraries\System.Private.CoreLib\src\System\Array.cs (1)
727if (ReferenceEquals(this, other))
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\HashSetEqualityComparer.cs (1)
14if (ReferenceEquals(x, y))
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\NonRandomizedStringEqualityComparer.cs (3)
152if (ReferenceEquals(comparer, EqualityComparer<string>.Default)) 157if (ReferenceEquals(comparer, StringComparer.Ordinal)) 162if (ReferenceEquals(comparer, StringComparer.OrdinalIgnoreCase))
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\ReferenceEqualityComparer.cs (3)
9/// An <see cref="IEqualityComparer{Object}"/> that uses reference equality (<see cref="object.ReferenceEquals(object?, object?)"/>) 40/// This API is a wrapper around <see cref="object.ReferenceEquals(object?, object?)"/>. 43public new bool Equals(object? x, object? y) => ReferenceEquals(x, y);
src\libraries\System.Private.CoreLib\src\System\Collections\Hashtable.cs (2)
791if (ReferenceEquals(_buckets, item)) 796if (ReferenceEquals(item, key))
src\libraries\System.Private.CoreLib\src\System\ComponentModel\DefaultValueAttribute.cs (1)
250if (!IsSupported && ReferenceEquals(_value, s_throwSentinel))
src\libraries\System.Private.CoreLib\src\System\Convert.cs (36)
174if (ReferenceEquals(value.GetType(), targetType)) 179if (ReferenceEquals(targetType, typeof(bool))) 181if (ReferenceEquals(targetType, typeof(char))) 183if (ReferenceEquals(targetType, typeof(sbyte))) 185if (ReferenceEquals(targetType, typeof(byte))) 187if (ReferenceEquals(targetType, typeof(short))) 189if (ReferenceEquals(targetType, typeof(ushort))) 191if (ReferenceEquals(targetType, typeof(int))) 193if (ReferenceEquals(targetType, typeof(uint))) 195if (ReferenceEquals(targetType, typeof(long))) 197if (ReferenceEquals(targetType, typeof(ulong))) 199if (ReferenceEquals(targetType, typeof(float))) 201if (ReferenceEquals(targetType, typeof(double))) 203if (ReferenceEquals(targetType, typeof(decimal))) 205if (ReferenceEquals(targetType, typeof(DateTime))) 207if (ReferenceEquals(targetType, typeof(string))) 209if (ReferenceEquals(targetType, typeof(object))) 212if (ReferenceEquals(targetType, typeof(Enum))) 214if (ReferenceEquals(targetType, typeof(DBNull))) 216if (ReferenceEquals(targetType, typeof(Empty))) 251if (ReferenceEquals(conversionType, typeof(bool))) 253if (ReferenceEquals(conversionType, typeof(char))) 255if (ReferenceEquals(conversionType, typeof(sbyte))) 257if (ReferenceEquals(conversionType, typeof(byte))) 259if (ReferenceEquals(conversionType, typeof(short))) 261if (ReferenceEquals(conversionType, typeof(ushort))) 263if (ReferenceEquals(conversionType, typeof(int))) 265if (ReferenceEquals(conversionType, typeof(uint))) 267if (ReferenceEquals(conversionType, typeof(long))) 269if (ReferenceEquals(conversionType, typeof(ulong))) 271if (ReferenceEquals(conversionType, typeof(float))) 273if (ReferenceEquals(conversionType, typeof(double))) 275if (ReferenceEquals(conversionType, typeof(decimal))) 277if (ReferenceEquals(conversionType, typeof(DateTime))) 279if (ReferenceEquals(conversionType, typeof(string))) 281if (ReferenceEquals(conversionType, typeof(object)))
src\libraries\System.Private.CoreLib\src\System\Delegate.cs (2)
196return ReferenceEquals(d2, d1) ? true : d2.Equals((object?)d1); 209return ReferenceEquals(d2, d1) ? false : !d2.Equals(d1);
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureInfo.cs (1)
638if (ReferenceEquals(this, value))
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormat.cs (4)
937else if (ReferenceEquals(dtfi, DateTimeFormatInfo.InvariantInfo)) 956else if (ReferenceEquals(dtfi, DateTimeFormatInfo.InvariantInfo)) 1048else if (ReferenceEquals(dtfi, DateTimeFormatInfo.InvariantInfo)) 1064else if (ReferenceEquals(dtfi, DateTimeFormatInfo.InvariantInfo))
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (4)
3306if (ReferenceEquals(dtfi, DateTimeFormat.InvariantFormatInfo)) 3408if (ReferenceEquals(dtfi, DateTimeFormat.InvariantFormatInfo)) 3509if (ReferenceEquals(dtfi, DateTimeFormat.InvariantFormatInfo)) 3576if (ReferenceEquals(dtfi, DateTimeFormat.InvariantFormatInfo))
src\libraries\System.Private.CoreLib\src\System\Lazy.cs (1)
337if (ReferenceEquals(_state, executionAndPublication))
src\libraries\System.Private.CoreLib\src\System\MulticastDelegate.cs (2)
38return ReferenceEquals(d2, d1) ? true : d2.Equals((object?)d1); 53return ReferenceEquals(d2, d1) ? false : !d2.Equals(d1);
src\libraries\System.Private.CoreLib\src\System\Nullable.cs (1)
111if (ReferenceEquals(genericType, typeof(Nullable<>)))
src\libraries\System.Private.CoreLib\src\System\Reflection\Assembly.cs (1)
194if (ReferenceEquals(left, right))
src\libraries\System.Private.CoreLib\src\System\Reflection\AssemblyName.cs (1)
296if (ReferenceEquals(reference, definition))
src\libraries\System.Private.CoreLib\src\System\Reflection\ConstructorInfo.cs (1)
35if (ReferenceEquals(left, right))
src\libraries\System.Private.CoreLib\src\System\Reflection\ConstructorInvoker.cs (1)
423else if (!ReferenceEquals(arg.GetType(), sigType))
src\libraries\System.Private.CoreLib\src\System\Reflection\EventInfo.cs (1)
90if (ReferenceEquals(left, right))
src\libraries\System.Private.CoreLib\src\System\Reflection\FieldAccessor.cs (1)
375else if (!ReferenceEquals(value.GetType(), _fieldInfo.FieldType))
src\libraries\System.Private.CoreLib\src\System\Reflection\FieldInfo.cs (1)
54if (ReferenceEquals(left, right))
src\libraries\System.Private.CoreLib\src\System\Reflection\MemberInfo.cs (1)
57if (ReferenceEquals(left, right))
src\libraries\System.Private.CoreLib\src\System\Reflection\MethodBase.cs (1)
79if (ReferenceEquals(left, right))
src\libraries\System.Private.CoreLib\src\System\Reflection\MethodBaseInvoker.cs (3)
360if (ReferenceEquals(arg, Type.Missing)) 374else if (!ReferenceEquals(arg.GetType(), sigType)) 395ReferenceEquals(sigElementType, arg.GetType()))
src\libraries\System.Private.CoreLib\src\System\Reflection\MethodInfo.cs (1)
52if (ReferenceEquals(left, right))
src\libraries\System.Private.CoreLib\src\System\Reflection\MethodInvoker.cs (1)
476else if (!ReferenceEquals(arg.GetType(), sigType))
src\libraries\System.Private.CoreLib\src\System\Reflection\Module.cs (1)
159if (ReferenceEquals(left, right))
src\libraries\System.Private.CoreLib\src\System\Reflection\PropertyInfo.cs (1)
73if (ReferenceEquals(left, right))
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceManager.cs (1)
508if (!ReferenceEquals(lostRace, rs))
src\libraries\System.Private.CoreLib\src\System\Runtime\Serialization\SerializationInfo.cs (18)
86if (!ReferenceEquals(_rootType, type)) 344if (ReferenceEquals(foundType, type) || type.IsAssignableFrom(foundType) || value == null) 362if (ReferenceEquals(foundType, type) || type.IsAssignableFrom(foundType)) 375return ReferenceEquals(foundType, typeof(bool)) ? (bool)value! : _converter.ToBoolean(value!); // if value is null To* method will either deal with it or throw 381return ReferenceEquals(foundType, typeof(char)) ? (char)value! : _converter.ToChar(value!); 388return ReferenceEquals(foundType, typeof(sbyte)) ? (sbyte)value! : _converter.ToSByte(value!); 394return ReferenceEquals(foundType, typeof(byte)) ? (byte)value! : _converter.ToByte(value!); 400return ReferenceEquals(foundType, typeof(short)) ? (short)value! : _converter.ToInt16(value!); 407return ReferenceEquals(foundType, typeof(ushort)) ? (ushort)value! : _converter.ToUInt16(value!); 413return ReferenceEquals(foundType, typeof(int)) ? (int)value! : _converter.ToInt32(value!); 420return ReferenceEquals(foundType, typeof(uint)) ? (uint)value! : _converter.ToUInt32(value!); 426return ReferenceEquals(foundType, typeof(long)) ? (long)value! : _converter.ToInt64(value!); 433return ReferenceEquals(foundType, typeof(ulong)) ? (ulong)value! : _converter.ToUInt64(value!); 439return ReferenceEquals(foundType, typeof(float)) ? (float)value! : _converter.ToSingle(value!); 446return ReferenceEquals(foundType, typeof(double)) ? (double)value! : _converter.ToDouble(value!); 452return ReferenceEquals(foundType, typeof(decimal)) ? (decimal)value! : _converter.ToDecimal(value!); 458return ReferenceEquals(foundType, typeof(DateTime)) ? (DateTime)value! : _converter.ToDateTime(value!); 464return ReferenceEquals(foundType, typeof(string)) || value == null ? (string?)value : _converter.ToString(value);
src\libraries\System.Private.CoreLib\src\System\RuntimeType.cs (2)
265if (ReferenceEquals(c, this)) 471if (selFld.FieldType.IsArray || ReferenceEquals(selFld.FieldType, typeof(Array)))
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\AhoCorasickNode.cs (2)
72if (ReferenceEquals(_children, EmptyChildrenSentinel)) 96Debug.Assert(ReferenceEquals(_children, EmptyChildrenSentinel));
src\libraries\System.Private.CoreLib\src\System\String.Comparison.cs (12)
51if (ReferenceEquals(strA, strB)) 219if (ReferenceEquals(strA, strB)) 375if (ReferenceEquals(strA, strB)) 398if (length == 0 || (ReferenceEquals(strA, strB) && indexA == indexB)) 429if (ReferenceEquals(strA, strB)) 464if (ReferenceEquals(strA, strB)) 493if (length == 0 || (ReferenceEquals(strA, strB) && indexA == indexB)) 615if (ReferenceEquals(this, obj)) 631if (ReferenceEquals(this, value)) 650if (ReferenceEquals(this, value)) 692if (ReferenceEquals(a, b)) 708if (ReferenceEquals(a, b))
src\libraries\System.Private.CoreLib\src\System\StringComparer.cs (6)
255if (ReferenceEquals(x, y)) return 0; 263if (ReferenceEquals(x, y)) return true; 334if (ReferenceEquals(x, y)) 351if (ReferenceEquals(x, y)) 491if (ReferenceEquals(x, y)) 511if (ReferenceEquals(x, y))
src\libraries\System.Private.CoreLib\src\System\Threading\AsyncLocal.cs (34)
155return ReferenceEquals(key, _item0.Key) ? 163return ReferenceEquals(key, _item0.Key) ? 171if (ReferenceEquals(key, _item0.Key)) 206ReferenceEquals(key, _item0.Key) ? new TwoElementAsyncLocalValueMap(newItem, _item1) : 207ReferenceEquals(key, _item1.Key) ? new TwoElementAsyncLocalValueMap(_item0, newItem) : 215ReferenceEquals(key, _item0.Key) ? new OneElementAsyncLocalValueMap(_item1) : 216ReferenceEquals(key, _item1.Key) ? new OneElementAsyncLocalValueMap(_item0) : 223if (ReferenceEquals(key, _item0.Key)) 228else if (ReferenceEquals(key, _item1.Key)) 266ReferenceEquals(key, _item0.Key) ? new ThreeElementAsyncLocalValueMap(newItem, _item1, _item2) : 267ReferenceEquals(key, _item1.Key) ? new ThreeElementAsyncLocalValueMap(_item0, newItem, _item2) : 268ReferenceEquals(key, _item2.Key) ? new ThreeElementAsyncLocalValueMap(_item0, _item1, newItem) : 276ReferenceEquals(key, _item0.Key) ? new TwoElementAsyncLocalValueMap(_item1, _item2) : 277ReferenceEquals(key, _item1.Key) ? new TwoElementAsyncLocalValueMap(_item0, _item2) : 278ReferenceEquals(key, _item2.Key) ? new TwoElementAsyncLocalValueMap(_item0, _item1) : 285if (ReferenceEquals(key, _item0.Key)) 290else if (ReferenceEquals(key, _item1.Key)) 295else if (ReferenceEquals(key, _item2.Key)) 335ReferenceEquals(key, _item0.Key) ? new FourElementAsyncLocalValueMap(newItem, _item1, _item2, _item3) : 336ReferenceEquals(key, _item1.Key) ? new FourElementAsyncLocalValueMap(_item0, newItem, _item2, _item3) : 337ReferenceEquals(key, _item2.Key) ? new FourElementAsyncLocalValueMap(_item0, _item1, newItem, _item3) : 338ReferenceEquals(key, _item3.Key) ? new FourElementAsyncLocalValueMap(_item0, _item1, _item2, newItem) : 346ReferenceEquals(key, _item0.Key) ? new ThreeElementAsyncLocalValueMap(_item1, _item2, _item3) : 347ReferenceEquals(key, _item1.Key) ? new ThreeElementAsyncLocalValueMap(_item0, _item2, _item3) : 348ReferenceEquals(key, _item2.Key) ? new ThreeElementAsyncLocalValueMap(_item0, _item1, _item3) : 349ReferenceEquals(key, _item3.Key) ? new ThreeElementAsyncLocalValueMap(_item0, _item1, _item2) : 356if (ReferenceEquals(key, _item0.Key)) 361else if (ReferenceEquals(key, _item1.Key)) 366else if (ReferenceEquals(key, _item2.Key)) 371else if (ReferenceEquals(key, _item3.Key)) 401if (ReferenceEquals(key, _keyValues[i].Key)) 468if (ReferenceEquals(key, pair.Key)) 517if (!ReferenceEquals(key, pair.Key)) 530if (!ReferenceEquals(key, pair.Key))
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Sources\ManualResetValueTaskSourceCore.cs (1)
177if (!ReferenceEquals(storedContinuation, ManualResetValueTaskSourceCoreShared.s_sentinel))
src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPoolWorkQueue.cs (1)
1854if (ReferenceEquals(callBack, s_invokeAsyncStateMachineBox))
src\libraries\System.Private.CoreLib\src\System\Threading\Win32ThreadPoolNativeOverlapped.cs (1)
234internal bool IsUserObject(byte[]? buffer) => ReferenceEquals(Data._pinnedData, buffer);
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.cs (3)
130ReferenceEquals(timeZone, s_utcTimeZone) ? DateTimeKind.Utc : 131ReferenceEquals(timeZone, _localTimeZone) ? DateTimeKind.Local : 330if (ReferenceEquals(rule, _adjustmentRules[i]))
src\libraries\System.Private.CoreLib\src\System\Type.cs (4)
550if (!ReferenceEquals(this, systemType) && systemType is not null) 687if (!ReferenceEquals(systemType, this)) 691public virtual bool Equals(Type? o) => o == null ? false : ReferenceEquals(this.UnderlyingSystemType, o.UnderlyingSystemType); 696if (ReferenceEquals(left, right))
src\libraries\System.Private.CoreLib\src\System\Version.cs (3)
129ReferenceEquals(value, this) ? 0 : 145return ReferenceEquals(obj, this) || 454return ReferenceEquals(v2, v1) ? true : v2.Equals(v1);
src\System\MulticastDelegate.CoreCLR.cs (1)
48if (ReferenceEquals(this, obj))
src\System\Reflection\Emit\RuntimeGenericTypeParameterBuilder.cs (1)
37return ReferenceEquals(g.m_type, m_type);
src\System\Reflection\Emit\RuntimeModuleBuilder.cs (1)
82ReferenceEquals(foundType.DeclaringType, enclosingType))
src\System\Reflection\Emit\RuntimeTypeBuilder.cs (2)
171if (tb1 != null && tb2 != null && ReferenceEquals(tb1, tb2)) 1072if (!ReferenceEquals(methodInfoBody.DeclaringType, this))
src\System\Reflection\MdFieldInfo.cs (4)
37ReferenceEquals(m_declaringType, m.m_declaringType); 48ReferenceEquals(this, obj) || 52ReferenceEquals(fi.m_declaringType, m_declaringType) && 53ReferenceEquals(fi.m_reflectedTypeCache.GetRuntimeType(), m_reflectedTypeCache.GetRuntimeType()));
src\System\Reflection\RtFieldInfo.cs (2)
70ReferenceEquals(this, obj) || 74ReferenceEquals(fi.m_reflectedTypeCache.GetRuntimeType(), m_reflectedTypeCache.GetRuntimeType()));
src\System\Reflection\RuntimeConstructorInfo.CoreCLR.cs (2)
73ReferenceEquals(m_declaringType, m.m_declaringType); 121ReferenceEquals(this, obj) ||
src\System\Reflection\RuntimeEventInfo.cs (4)
57ReferenceEquals(m_declaringType, m.m_declaringType); 77ReferenceEquals(this, obj) || 81ReferenceEquals(ei.m_declaringType, m_declaringType) && 82ReferenceEquals(ei.m_reflectedTypeCache.GetRuntimeType(), m_reflectedTypeCache.GetRuntimeType()));
src\System\Reflection\RuntimeMethodInfo.CoreCLR.cs (2)
166ReferenceEquals(m_declaringType, m.m_declaringType) && 167ReferenceEquals(m_reflectedTypeCache.GetRuntimeType(), m.m_reflectedTypeCache.GetRuntimeType());
src\System\Reflection\RuntimeParameterInfo.cs (1)
35Debug.Assert(ReferenceEquals(methodHandle, member));
src\System\Reflection\RuntimePropertyInfo.cs (4)
61ReferenceEquals(m_declaringType, m.m_declaringType); 186ReferenceEquals(this, obj) || 189ReferenceEquals(rpi.m_declaringType, m_declaringType) && 190ReferenceEquals(rpi.m_reflectedTypeCache.GetRuntimeType(), m_reflectedTypeCache.GetRuntimeType()));
src\System\Runtime\CompilerServices\RuntimeHelpers.CoreCLR.cs (1)
268if (ReferenceEquals(o1, o2))
src\System\RuntimeHandles.cs (2)
98=> (obj is RuntimeTypeHandle handle) && ReferenceEquals(handle.m_type, m_type); 101=> ReferenceEquals(handle.m_type, m_type);
src\System\RuntimeType.CoreCLR.cs (5)
1590if (ReferenceEquals(attrs[i].Constructor.DeclaringType, DefaultMemberAttrType)) 2164bool isInherited = !ReferenceEquals(memberInfo.DeclaringType, memberInfo.ReflectedType); 2940if (ReferenceEquals(fieldInfo.DeclaringType, match.DeclaringType)) 3839if (ReferenceEquals(elementType, typeof(ArgIterator))) 3842if (ReferenceEquals(elementType, typeof(void)))
System.Private.DataContractSerialization (15)
System\Runtime\Serialization\DataContract.cs (1)
276if (object.ReferenceEquals(ns, DictionaryGlobals.SerializationNamespace) && !IsPrimitive)
System\Runtime\Serialization\DataContractSerializer.cs (1)
491if (contract.IsPrimitive && object.ReferenceEquals(contract.UnderlyingType, _rootType) /*handle Nullable<T> differently*/)
System\Runtime\Serialization\Json\DataContractJsonSerializer.cs (1)
462if (contract.IsPrimitive && object.ReferenceEquals(contract.UnderlyingType, _rootType))// handle Nullable<T> differently
System\Runtime\Serialization\Json\XmlObjectSerializerWriteContextComplexJson.cs (2)
100if (!((object.ReferenceEquals(contract.Name, declaredContract.Name) && 101object.ReferenceEquals(contract.Namespace, declaredContract.Namespace)) ||
System\Runtime\Serialization\ObjectReferenceStack.cs (1)
97if (object.ReferenceEquals(obj, _objectArray![i]) && _isReferenceArray != null && !_isReferenceArray[i])
System\Runtime\Serialization\PrimitiveDataContract.cs (1)
1100if (object.ReferenceEquals(ns, DictionaryGlobals.SerializationNamespace))
System\Runtime\Serialization\XmlObjectSerializer.cs (2)
264return (object.ReferenceEquals(contract.Name, declaredContract.Name) && object.ReferenceEquals(contract.Namespace, declaredContract.Namespace))
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (1)
354if (object.ReferenceEquals(oldObj, newObj))
System\Xml\UniqueId.cs (1)
305if (object.ReferenceEquals(id1, id2))
System\Xml\XmlBaseReader.cs (2)
3068if (object.ReferenceEquals(s, _uriString)) 3080if (object.ReferenceEquals(s.Value, _uriString))
System\Xml\XmlBaseWriter.cs (2)
2202if (object.ReferenceEquals(nameSpace.Uri, ns)) 2279if (object.ReferenceEquals(nameSpace.Uri, ns))
System.Private.Uri (12)
System\DomainNameHelper.cs (1)
220Debug.Assert(ReferenceEquals(hostname, UriHelper.StripBidiControlCharacters(hostname, hostname)));
System\Uri.cs (9)
515if (!ReferenceEquals(this, uriResult)) 560if (!ReferenceEquals(this, resolvedRelativeUri)) 1650if (ReferenceEquals(uri1, uri2)) 1665if (ReferenceEquals(uri1, uri2)) 1685if (ReferenceEquals(this, comparand)) 1703if (ReferenceEquals(s, OriginalString)) 1725if (ReferenceEquals(this, other)) 1733if (ReferenceEquals(OriginalString, other.OriginalString)) 1989Debug.Assert(ReferenceEquals(_string, OriginalString));
System\UriExt.cs (1)
888if (ReferenceEquals(newUriString, baseUri._string))
System\UriScheme.cs (1)
72if (!ReferenceEquals(uri._syntax, this))
System.Private.Windows.Core (2)
System\Private\Windows\BinaryFormat\Deserializer\PendingSerializationInfo.cs (1)
51if (!type.IsValueType && !ReferenceEquals(populated, @object))
System\Private\Windows\BinaryFormat\Serializer\BinaryObjectString.cs (1)
38=> ReferenceEquals(this, obj)
System.Private.Xml (7)
System\Xml\Core\XmlTextWriter.cs (1)
370if (ReferenceEquals(_indentChars, s_defaultIndentChars))
System\Xml\Dom\DocumentSchemaValidator.cs (1)
463if (object.ReferenceEquals(defaultNS, attributeNS))
System\Xml\Schema\Chameleonkey.cs (2)
55if (Ref.ReferenceEquals(this, obj)) 69Ref.ReferenceEquals(originalSchema, cKey.originalSchema);
System\Xml\Schema\XmlSchemaSet.cs (1)
1331if (cKey.originalSchema == null || Ref.ReferenceEquals(cKey.originalSchema, reprocessList[i]))
System\Xml\XmlQualifiedName.cs (2)
76if (ReferenceEquals(this, other)) 91if (ReferenceEquals(a, b))
System.Reflection.Emit (3)
System\Reflection\Emit\TypeBuilderImpl.cs (3)
317if (!ReferenceEquals(methodInfoBody.DeclaringType, this)) 887if (match != null && ReferenceEquals(fieldInfo.DeclaringType, match.DeclaringType)) 1433if (t2 is TypeBuilderImpl tb && ReferenceEquals(rtb1, tb))
System.Reflection.Metadata (2)
System\Reflection\Metadata\BlobBuilder.cs (1)
201if (ReferenceEquals(this, other))
System\Reflection\Metadata\MetadataReaderProvider.cs (1)
274return reader != null && reader.Options == options && ReferenceEquals(reader.UTF8Decoder, utf8DecoderOpt ?? MetadataStringDecoder.DefaultUTF8);
System.Reflection.MetadataLoadContext (5)
System\Reflection\TypeLoading\Properties\RoProperty.cs (2)
97private RoMethod? GetRoGetMethod() => object.ReferenceEquals(_lazyGetter, Sentinels.RoMethod) ? (_lazyGetter = ComputeGetterMethod()?.FilterInheritedAccessor()) : _lazyGetter; 98private RoMethod? GetRoSetMethod() => object.ReferenceEquals(_lazySetter, Sentinels.RoMethod) ? (_lazySetter = ComputeSetterMethod()?.FilterInheritedAccessor()) : _lazySetter;
System\Reflection\TypeLoading\Types\RoConstructedGenericType.Key.cs (1)
39return ReferenceEquals(t1, t2);
System\Reflection\TypeLoading\Types\RoType.cs (2)
160internal RoType? GetRoBaseType() => object.ReferenceEquals(_lazyBaseType, Sentinels.RoType) ? (_lazyBaseType = ComputeBaseType()) : _lazyBaseType; 257if (object.ReferenceEquals(c, this))
System.Resources.Extensions (2)
System\Resources\Extensions\BinaryFormat\Deserializer\PendingSerializationInfo.cs (1)
53if (!type.IsValueType && !ReferenceEquals(populated, @object))
System\Resources\Extensions\TypeNameComparer.cs (1)
67if (ReferenceEquals(assemblyQualifiedTypeName1, assemblyQualifiedTypeName2))
System.Runtime.Caching (1)
System\Runtime\Caching\MemoryCacheStore.cs (1)
313if (entryToRemove == null || object.ReferenceEquals(entry, entryToRemove))
System.Runtime.Serialization.Formatters (1)
System\Runtime\Serialization\MemberHolder.cs (1)
27ReferenceEquals(mh._memberType, _memberType) &&
System.Security.Claims (7)
System\Security\Claims\ClaimsIdentity.cs (7)
417if (object.ReferenceEquals(claim.Subject, this)) 444if (object.ReferenceEquals(claim.Subject, this)) 473if (object.ReferenceEquals(_instanceClaims[i], claim)) 511if (object.ReferenceEquals(claim.Subject, this)) 531if (object.ReferenceEquals(claim.Subject, this)) 908if (ReferenceEquals(this, subject)) 917if (ReferenceEquals(this, currSubject.Actor))
System.Security.Cryptography (8)
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeHandleCache.cs (1)
52bool isCachedInvalidHandle = ReferenceEquals(handle, s_invalidHandle);
src\libraries\Common\src\System\Security\Cryptography\CryptographicAttributeObjectCollection.cs (1)
59if (object.ReferenceEquals(existing.Values, attribute.Values))
src\libraries\Common\src\System\Security\Cryptography\Oids.Shared.cs (1)
165if (ReferenceEquals(oid, other))
src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.Pkcs12.cs (2)
62if (ReferenceEquals(loaderLimits, Pkcs12LoaderLimits.DangerousNoLimits)) 100if (ReferenceEquals(loaderLimits, Pkcs12LoaderLimits.DangerousNoLimits))
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.Load.cs (1)
170if (ReferenceEquals(extnOid, Oids.CrlNumberOid))
System\Security\Cryptography\X509Certificates\ChainPal.OpenSsl.cs (1)
197Debug.Assert(!ReferenceEquals(cert, reportedLeaf.Pal));
System\Security\Cryptography\X509Certificates\ManagedCertificateFinder.cs (1)
348Debug.Assert(!ReferenceEquals(cert, clone));
System.Security.Cryptography.Pkcs (3)
src\libraries\Common\src\System\Security\Cryptography\CryptographicAttributeObjectCollection.cs (1)
59if (object.ReferenceEquals(existing.Values, attribute.Values))
src\libraries\Common\src\System\Security\Cryptography\Oids.Shared.cs (1)
165if (ReferenceEquals(oid, other))
System\Security\Cryptography\Pkcs\SignerInfo.cs (1)
539if (!ReferenceEquals(cert, match))
System.Security.Permissions (1)
System\Xaml\Permissions\XamlLoadPermission.cs (1)
22public override bool Equals(object obj) { return ReferenceEquals(this, obj); }
System.ServiceModel.Federation (2)
System\IdentityModel\Tokens\Saml2AssertionKeyIdentifierClause.cs (1)
57return ReferenceEquals(this, keyIdentifierClause) || Matches(Id, keyIdentifierClause);
System\IdentityModel\Tokens\SamlAssertionKeyIdentifierClause.cs (1)
46return ReferenceEquals(this, keyIdentifierClause) || Matches(Id, keyIdentifierClause);
System.ServiceModel.NetFramingBase (3)
System\ServiceModel\Channels\ConnectionPoolRegistry.cs (1)
87if (ReferenceEquals(registryEntry[i], pool))
System\ServiceModel\Channels\SessionConnectionReader.cs (1)
234if (!ReferenceEquals(buffer, EnvelopeBuffer))
System\ServiceModel\Channels\SingletonConnectionReader.cs (1)
273if (size > 0 && !object.ReferenceEquals(buffer, _chunkBuffer))
System.ServiceModel.UnixDomainSocket (5)
System\ServiceModel\Channels\SocketAwaitableEventArgs.cs (2)
108return !ReferenceEquals(_continuation, _continuationCompleted) ? ValueTaskSourceStatus.Pending : 117if (ReferenceEquals(prevContinuation, _continuationCompleted))
System\ServiceModel\Channels\SocketConnection.cs (3)
209if (ReferenceEquals(exceptionToThrow, objectDisposedException)) 288if (ReferenceEquals(exceptionToThrow, objectDisposedException)) 397if (ReferenceEquals(exceptionToThrow, objectDisposedException))
System.Text.Json (12)
System\Text\Json\Nodes\JsonObject.cs (2)
265if (ReferenceEquals(value, replacedValue)) 291if (ReferenceEquals(item.Value, value))
System\Text\Json\Serialization\JsonConverterOfT.cs (2)
277Debug.Assert(ReferenceEquals(originalJsonTypeInfo, state.Current.JsonTypeInfo)); 440Debug.Assert(ReferenceEquals(originalJsonTypeInfo, state.Current.JsonTypeInfo));
System\Text\Json\Serialization\JsonSerializerOptions.cs (3)
235if (_typeInfoResolverChain is { } resolverChain && !ReferenceEquals(resolverChain, value)) 1102if (ReferenceEquals(item, this) || ReferenceEquals(item, _options._typeInfoResolver))
System\Text\Json\Serialization\ReferenceEqualsWrapper.cs (1)
16public bool Equals(ReferenceEqualsWrapper obj) => ReferenceEquals(_object, obj._object);
System\Text\Json\Serialization\ReferenceHandler.cs (1)
26/// <see cref="object.ReferenceEquals(object?, object?)"/> is used to determine whether objects are identical.
System\Text\Json\Writer\Utf8JsonWriterCache.cs (3)
73Debug.Assert((rentedWriters == 0) == (ReferenceEquals(state.BufferWriter, bufferWriter) && ReferenceEquals(state.Writer, writer))); 84Debug.Assert((rentedWriters == 0) == ReferenceEquals(state.Writer, writer));
System.Threading.Channels (3)
System\Threading\Channels\AsyncOperation.cs (3)
126internal bool IsCompleted => ReferenceEquals(_continuation, s_completedSentinel); 185if (ReferenceEquals(Interlocked.CompareExchange(ref _continuation, null, s_availableSentinel), s_availableSentinel)) 261if (!ReferenceEquals(prevContinuation, s_completedSentinel))
System.Threading.RateLimiting (3)
System\Threading\RateLimiting\TimerAwaitable.cs (3)
78public bool IsCompleted => ReferenceEquals(_callback, _callbackCompleted); 95if (ReferenceEquals(_callback, _callbackCompleted) || 96ReferenceEquals(Interlocked.CompareExchange(ref _callback, continuation, null), _callbackCompleted))
System.Windows.Controls.Ribbon (12)
Microsoft\Windows\Controls\GenericValueConverters.cs (1)
37if (!Object.ReferenceEquals(values[0], values[i]))
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonQuickAccessToolBarPanel.cs (5)
189!object.ReferenceEquals(children[i], generatedChild)) 193object.ReferenceEquals(overflowPanel.Children[0], generatedChild)) 227!object.ReferenceEquals(overflowPanel.Children[overflowIndex], generatedChild)) 314Debug.Assert(object.ReferenceEquals(InternalChildren[j], GeneratedChildren[j])); 328Debug.Assert(object.ReferenceEquals(QAT.OverflowPanel.Children[overflowPanelIndex], GeneratedChildren[k]));
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroup.cs (1)
527object.ReferenceEquals(ContextualTabGroup, tab.ContextualTabGroup))
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (5)
269if (object.ReferenceEquals(CurrentFilter, AllFilterItem)) 1932if (Object.ReferenceEquals(item, _allFilter)) 2090if (Object.ReferenceEquals(item, _allFilter)) 2378if (Object.ReferenceEquals(newFilter, _allFilter) || 2379Object.ReferenceEquals(newFilter, dataToCompareAgainst))
System.Windows.Forms (6)
System\Windows\Forms\Accessibility\AccessibleObject.cs (1)
2256if (ReferenceEquals(accessibleObject, s_parentFlag))
System\Windows\Forms\Application.ParkingWindow.cs (1)
77if (context is null || !ReferenceEquals(context, ThreadContext.FromCurrent()))
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (1)
153else if (!ReferenceEquals(_cachedFont, Font))
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
3557found = ReferenceEquals(items[i], this);
System\Windows\Forms\Layout\TableLayout.cs (1)
69if (ReferenceEquals(args.AffectedProperty, propertyName))
System\Windows\Forms\PropertyStore.cs (1)
175else if (!found || !ReferenceEquals(value, previous))
System.Windows.Forms.Design (19)
Resources\MaskDesignerDialog.Designer.cs (1)
41if (object.ReferenceEquals(resourceMan, null)) {
System\ComponentModel\Design\DesignerHost.cs (1)
725if (!ReferenceEquals(comp, _rootComponent))
System\ComponentModel\Design\EventBindingService.EventPropertyDescriptor.cs (1)
192if (ReferenceEquals(oldName, name))
System\ComponentModel\Design\ReferenceService.cs (4)
161if (ReferenceEquals(reference.SitedComponent, cevent.Component)) 179if (ReferenceEquals(_references[i].SitedComponent, component)) 216if (ReferenceEquals(holder.Reference, reference)) 235if (ReferenceEquals(holder.Reference, reference))
System\ComponentModel\Design\SelectionService.cs (1)
426if (ReferenceEquals(comp, item))
System\ComponentModel\Design\Serialization\BasicDesignerLoader.cs (1)
741if (!ReferenceEquals(mgr.ActiveDesignSurface, thisSurface))
System\ComponentModel\Design\Serialization\CodeDomSerializer.cs (1)
171bool isPreset = manager.TryGetContext(out ExpressionContext? ctx) && ReferenceEquals(ctx.PresetValue, value);
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (3)
1672if (manager.TryGetContext(out RootContext? rootEx) && ReferenceEquals(rootEx.Value, value)) 1722if (manager.TryGetContext(out ExpressionContext? ctx) && ReferenceEquals(ctx.PresetValue, value)) 1885if (manager.TryGetContext(out ExpressionContext? ctx) && ReferenceEquals(ctx.PresetValue, value))
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (1)
976return ReferenceEquals(x, y);
System\ComponentModel\Design\Serialization\ExpressionTable.cs (1)
47=> ReferenceEquals(x, y);
System\ComponentModel\Design\Serialization\StatementContext.cs (3)
61if (ReferenceEquals(_table[idx].Owner, statementOwner)) 98if (ReferenceEquals(_table[idx].Owner, statementOwner)) 111if (ReferenceEquals(e.Owner, statementOwner))
System\ComponentModel\Design\UndoEngine.cs (1)
469if (obj is not null && ReferenceEquals(obj, e.Component))
System.Windows.Forms.Design.Tests (1)
System\Drawing\Design\ToolboxItemTests.cs (1)
1170Assert.Equal(same, ReferenceEquals(value, actual));
System.Windows.Input.Manipulations (3)
System\Windows\Input\Manipulations\InertiaProcessor2D.cs (1)
416if (!object.ReferenceEquals(newBehavior, currentBehavior))
System\Windows\Input\Manipulations\ManipulationProcessor2D.cs (2)
353Debug.Assert(object.ReferenceEquals(sender, this.currentManipulation)); 367Debug.Assert(object.ReferenceEquals(sender, this.currentManipulation));
System.Xaml (14)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (2)
296if (object.ReferenceEquals(left, null)) 298return object.ReferenceEquals(right, null);
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (5)
225if (object.ReferenceEquals(namespaceName, CompatibilityUri)) 314if (object.ReferenceEquals(namespaceName, CompatibilityUri)) 319if (object.ReferenceEquals(elementName, AlternateContent)) 931result = object.ReferenceEquals(namespaceName, CompatibilityUri); 1075if (object.ReferenceEquals(namespaceName, CompatibilityUri))
System\Xaml\InfosetObjects\XamlObjectWriter.cs (1)
2180if (ReferenceEquals(underlyingNameScope, inst) && !isRoot)
System\Xaml\Schema\TypeBits.cs (2)
66get { return ReferenceEquals(_value, s_NotPresentSentinel); } 89return ReferenceEquals(value, s_NullSentinel) ? null : (T)value;
System\Xaml\XamlMember.cs (1)
1056if (ReferenceEquals(xamlMember1, xamlMember2))
System\Xaml\XamlObjectReader.cs (1)
236return ReferenceEquals(x, y);
System\Xaml\XamlSchemaContext.cs (1)
1000if (ReferenceEquals(asm, assembly))
System\Xaml\XamlType.cs (1)
1882if (ReferenceEquals(xamlType1, xamlType2))
UIAutomationClient (1)
MS\Internal\Automation\FocusTracker.cs (1)
175if(realFocus != null && !Object.ReferenceEquals(realFocus, provider))
UnitTests.Common (1)
TestTypes.cs (1)
567if (object.ReferenceEquals(this, other)) { return true; }
xunit.assert (5)
IdentityAsserts.cs (2)
34 if (object.ReferenceEquals(expected, actual)) 53 if (!object.ReferenceEquals(expected, actual))
Sdk\AssertEqualityComparer.cs (1)
214 if (ReferenceEquals(x, y))
Sdk\AssertHelper.cs (2)
439 if (ReferenceEquals(expected, actual)) 761 ReferenceEquals(x, y);
xunit.console (1)
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\Dependency.cs (1)
35if (ReferenceEquals(null, obj)) return false;