Base:
method
GetHashCode
System.Object.GetHashCode()
734 references to GetHashCode
Aspire.Confluent.Kafka (2)
AspireKafkaConsumerExtensions.cs (1)
212logger.Log((LogLevel)logMessage.LevelAs(LogLevelType.MicrosoftExtensionsLogging), logMessage.Facility?.GetHashCode() ?? 0, logMessage.Message, null, static (value, ex) => value);
AspireKafkaProducerExtensions.cs (1)
212logger.Log((LogLevel)logMessage.LevelAs(LogLevelType.MicrosoftExtensionsLogging), logMessage.Facility?.GetHashCode() ?? 0, logMessage.Message, null, static (value, ex) => value);
Aspire.Dashboard (70)
artifacts\obj\Aspire.Dashboard\Debug\net8.0\DashboardService.cs (48)
495if (ApplicationName.Length != 0) hash ^= ApplicationName.GetHashCode(); 904if (Name.Length != 0) hash ^= Name.GetHashCode(); 905if (DisplayName.Length != 0) hash ^= DisplayName.GetHashCode(); 906if (HasConfirmationMessage) hash ^= ConfirmationMessage.GetHashCode(); 909if (HasIconName) hash ^= IconName.GetHashCode(); 911if (HasDisplayDescription) hash ^= DisplayDescription.GetHashCode(); 1358if (CommandName.Length != 0) hash ^= CommandName.GetHashCode(); 1359if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); 1360if (ResourceType.Length != 0) hash ^= ResourceType.GetHashCode(); 1663if (HasErrorMessage) hash ^= ErrorMessage.GetHashCode(); 1941if (UniqueName.Length != 0) hash ^= UniqueName.GetHashCode(); 1942if (HasDisplayName) hash ^= DisplayName.GetHashCode(); 2217if (Name.Length != 0) hash ^= Name.GetHashCode(); 2218if (HasValue) hash ^= Value.GetHashCode(); 2548if (HasEndpointName) hash ^= EndpointName.GetHashCode(); 2549if (FullUrl.Length != 0) hash ^= FullUrl.GetHashCode(); 2868if (DisplayName.Length != 0) hash ^= DisplayName.GetHashCode(); 3145if (Source.Length != 0) hash ^= Source.GetHashCode(); 3146if (Target.Length != 0) hash ^= Target.GetHashCode(); 3147if (MountType.Length != 0) hash ^= MountType.GetHashCode(); 3484if (Key.Length != 0) hash ^= Key.GetHashCode(); 3485if (Description.Length != 0) hash ^= Description.GetHashCode(); 3486if (Exception.Length != 0) hash ^= Exception.GetHashCode(); 3770if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); 3771if (Type.Length != 0) hash ^= Type.GetHashCode(); 4079if (Name.Length != 0) hash ^= Name.GetHashCode(); 4080if (HasDisplayName) hash ^= DisplayName.GetHashCode(); 4720if (Name.Length != 0) hash ^= Name.GetHashCode(); 4721if (ResourceType.Length != 0) hash ^= ResourceType.GetHashCode(); 4722if (DisplayName.Length != 0) hash ^= DisplayName.GetHashCode(); 4723if (Uid.Length != 0) hash ^= Uid.GetHashCode(); 4724if (HasState) hash ^= State.GetHashCode(); 4730if (HasStateStyle) hash ^= StateStyle.GetHashCode(); 4738if (HasIconName) hash ^= IconName.GetHashCode(); 5542if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); 5543if (ResourceType.Length != 0) hash ^= ResourceType.GetHashCode(); 6817if (Text.Length != 0) hash ^= Text.GetHashCode(); 7085if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); 8136if (Title.Length != 0) hash ^= Title.GetHashCode(); 8137if (Message.Length != 0) hash ^= Message.GetHashCode(); 8138if (PrimaryButtonText.Length != 0) hash ^= PrimaryButtonText.GetHashCode(); 8139if (SecondaryButtonText.Length != 0) hash ^= SecondaryButtonText.GetHashCode(); 9125if (LinkText.Length != 0) hash ^= LinkText.GetHashCode(); 9126if (LinkUrl.Length != 0) hash ^= LinkUrl.GetHashCode(); 9707if (Label.Length != 0) hash ^= Label.GetHashCode(); 9708if (Placeholder.Length != 0) hash ^= Placeholder.GetHashCode(); 9712if (Value.Length != 0) hash ^= Value.GetHashCode(); 9714if (Description.Length != 0) hash ^= Description.GetHashCode();
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\collector\logs\v1\LogsService.cs (1)
584if (ErrorMessage.Length != 0) hash ^= ErrorMessage.GetHashCode();
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\collector\metrics\v1\MetricsService.cs (1)
586if (ErrorMessage.Length != 0) hash ^= ErrorMessage.GetHashCode();
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\collector\trace\v1\TraceService.cs (1)
585if (ErrorMessage.Length != 0) hash ^= ErrorMessage.GetHashCode();
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\common\v1\Common.cs (4)
343if (HasStringValue) hash ^= StringValue.GetHashCode(); 1121if (Key.Length != 0) hash ^= Key.GetHashCode(); 1404if (Name.Length != 0) hash ^= Name.GetHashCode(); 1405if (Version.Length != 0) hash ^= Version.GetHashCode();
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\logs\v1\Logs.cs (3)
467if (SchemaUrl.Length != 0) hash ^= SchemaUrl.GetHashCode(); 751if (SchemaUrl.Length != 0) hash ^= SchemaUrl.GetHashCode(); 1198if (SeverityText.Length != 0) hash ^= SeverityText.GetHashCode();
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\metrics\v1\Metrics.cs (5)
567if (SchemaUrl.Length != 0) hash ^= SchemaUrl.GetHashCode(); 851if (SchemaUrl.Length != 0) hash ^= SchemaUrl.GetHashCode(); 1324if (Name.Length != 0) hash ^= Name.GetHashCode(); 1325if (Description.Length != 0) hash ^= Description.GetHashCode(); 1326if (Unit.Length != 0) hash ^= Unit.GetHashCode();
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\trace\v1\Trace.cs (7)
413if (SchemaUrl.Length != 0) hash ^= SchemaUrl.GetHashCode(); 697if (SchemaUrl.Length != 0) hash ^= SchemaUrl.GetHashCode(); 1235if (TraceState.Length != 0) hash ^= TraceState.GetHashCode(); 1237if (Name.Length != 0) hash ^= Name.GetHashCode(); 1836if (Name.Length != 0) hash ^= Name.GetHashCode(); 2174if (TraceState.Length != 0) hash ^= TraceState.GetHashCode(); 2481if (Message.Length != 0) hash ^= Message.GetHashCode();
Aspire.Hosting (49)
artifacts\obj\Aspire.Hosting\Debug\net8.0\Dashboard\proto\DashboardService.cs (48)
495if (ApplicationName.Length != 0) hash ^= ApplicationName.GetHashCode(); 904if (Name.Length != 0) hash ^= Name.GetHashCode(); 905if (DisplayName.Length != 0) hash ^= DisplayName.GetHashCode(); 906if (HasConfirmationMessage) hash ^= ConfirmationMessage.GetHashCode(); 909if (HasIconName) hash ^= IconName.GetHashCode(); 911if (HasDisplayDescription) hash ^= DisplayDescription.GetHashCode(); 1358if (CommandName.Length != 0) hash ^= CommandName.GetHashCode(); 1359if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); 1360if (ResourceType.Length != 0) hash ^= ResourceType.GetHashCode(); 1663if (HasErrorMessage) hash ^= ErrorMessage.GetHashCode(); 1941if (UniqueName.Length != 0) hash ^= UniqueName.GetHashCode(); 1942if (HasDisplayName) hash ^= DisplayName.GetHashCode(); 2217if (Name.Length != 0) hash ^= Name.GetHashCode(); 2218if (HasValue) hash ^= Value.GetHashCode(); 2548if (HasEndpointName) hash ^= EndpointName.GetHashCode(); 2549if (FullUrl.Length != 0) hash ^= FullUrl.GetHashCode(); 2868if (DisplayName.Length != 0) hash ^= DisplayName.GetHashCode(); 3145if (Source.Length != 0) hash ^= Source.GetHashCode(); 3146if (Target.Length != 0) hash ^= Target.GetHashCode(); 3147if (MountType.Length != 0) hash ^= MountType.GetHashCode(); 3484if (Key.Length != 0) hash ^= Key.GetHashCode(); 3485if (Description.Length != 0) hash ^= Description.GetHashCode(); 3486if (Exception.Length != 0) hash ^= Exception.GetHashCode(); 3770if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); 3771if (Type.Length != 0) hash ^= Type.GetHashCode(); 4079if (Name.Length != 0) hash ^= Name.GetHashCode(); 4080if (HasDisplayName) hash ^= DisplayName.GetHashCode(); 4720if (Name.Length != 0) hash ^= Name.GetHashCode(); 4721if (ResourceType.Length != 0) hash ^= ResourceType.GetHashCode(); 4722if (DisplayName.Length != 0) hash ^= DisplayName.GetHashCode(); 4723if (Uid.Length != 0) hash ^= Uid.GetHashCode(); 4724if (HasState) hash ^= State.GetHashCode(); 4730if (HasStateStyle) hash ^= StateStyle.GetHashCode(); 4738if (HasIconName) hash ^= IconName.GetHashCode(); 5542if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); 5543if (ResourceType.Length != 0) hash ^= ResourceType.GetHashCode(); 6817if (Text.Length != 0) hash ^= Text.GetHashCode(); 7085if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); 8136if (Title.Length != 0) hash ^= Title.GetHashCode(); 8137if (Message.Length != 0) hash ^= Message.GetHashCode(); 8138if (PrimaryButtonText.Length != 0) hash ^= PrimaryButtonText.GetHashCode(); 8139if (SecondaryButtonText.Length != 0) hash ^= SecondaryButtonText.GetHashCode(); 9125if (LinkText.Length != 0) hash ^= LinkText.GetHashCode(); 9126if (LinkUrl.Length != 0) hash ^= LinkUrl.GetHashCode(); 9707if (Label.Length != 0) hash ^= Label.GetHashCode(); 9708if (Placeholder.Length != 0) hash ^= Placeholder.GetHashCode(); 9712if (Value.Length != 0) hash ^= Value.GetHashCode(); 9714if (Description.Length != 0) hash ^= Description.GetHashCode();
Publishing\PublisherAdvertisementEvent.cs (1)
32return Name.GetHashCode();
BasketService (6)
artifacts\obj\BasketService\Debug\net8.0\Protos\Basket.cs (6)
148if (Id.Length != 0) hash ^= Id.GetHashCode(); 359if (BuyerId.Length != 0) hash ^= BuyerId.GetHashCode(); 583if (BuyerId.Length != 0) hash ^= BuyerId.GetHashCode(); 850if (Id.Length != 0) hash ^= Id.GetHashCode(); 1158if (BuyerId.Length != 0) hash ^= BuyerId.GetHashCode(); 1517if (BuyerId.Length != 0) hash ^= BuyerId.GetHashCode();
BuildActionTelemetryTable (1)
Program.cs (1)
363return obj.FullName!.GetHashCode();
BuildBoss (1)
ProjectKey.cs (1)
27public override int GetHashCode() => FilePath?.GetHashCode() ?? 0;
BuildValidator (1)
FileNameEqualityComparer.cs (1)
25=> file?.Name.GetHashCode() ?? 0;
ConfigurationSchemaGenerator (1)
RuntimeSource\SourceGenerators\TypeRef.cs (1)
40public override int GetHashCode() => FullyQualifiedName.GetHashCode();
CSharpSyntaxGenerator (1)
Model\Kind.cs (1)
22=> Name == null ? 0 : Name.GetHashCode();
dotnet-svcutil-lib (34)
FrameworkFork\Microsoft.CodeDom\Compiler\CompilerInfo.cs (1)
132return _codeDomProviderTypeName.GetHashCode();
FrameworkFork\Microsoft.Xml\Xml\BinaryXml\XmlBinaryReader.cs (2)
101return this.prefix.GetHashCode() ^ this.localname.GetHashCode();
FrameworkFork\Microsoft.Xml\Xml\schema\ChameleonKey.cs (1)
51_hashCode = targetNS.GetHashCode() + chameleonLocation.GetHashCode() +
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeIdentifiers.cs (1)
29return s.ToUpperInvariant().GetHashCode();
FrameworkFork\Microsoft.Xml\Xml\Serialization\Compilation.cs (1)
285return ((_ns != null ? _ns.GetHashCode() : 0) ^ (_type != null ? _type.GetHashCode() : 0));
FrameworkFork\Microsoft.Xml\Xml\Serialization\ImportContext.cs (1)
259int code = hashString.GetHashCode();
FrameworkFork\Microsoft.Xml\Xml\Serialization\NameTable.cs (3)
32return (_ns == null ? "<null>".GetHashCode() : _ns.GetHashCode()) ^ (_name == null ? 0 : _name.GetHashCode());
FrameworkFork\Microsoft.Xml\Xml\Serialization\SourceInfo.cs (1)
267return (Source == null) ? 0 : Source.GetHashCode();
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializer.cs (3)
954hashCode ^= this.Mapping.Key.GetHashCode(); 957hashCode ^= this.Mapping.ElementName.GetHashCode(); 960hashCode ^= this.Mapping.Namespace.GetHashCode();
FrameworkFork\Microsoft.Xml\Xml\XmlQualifiedName.cs (1)
169return s.GetHashCode();
FrameworkFork\Microsoft.Xml\Xml\XPath\XPathNavigatorKeyComparer.cs (3)
54hashCode ^= nav.LocalName.GetHashCode(); 55hashCode ^= nav.Prefix.GetHashCode(); 56hashCode ^= nav.NamespaceURI.GetHashCode();
FrameworkFork\System.Runtime.Serialization\System\Xml\PrefixHandle.cs (1)
250return GetString().GetHashCode();
FrameworkFork\System.Runtime.Serialization\System\Xml\StringHandle.cs (1)
286return GetString().GetHashCode();
FrameworkFork\System.Runtime.Serialization\System\Xml\UniqueId.cs (1)
429return ToString().GetHashCode();
FrameworkFork\System.ServiceModel\System\IdentityModel\Claims\ClaimComparer.cs (2)
161return claim.ClaimType.GetHashCode() ^ claim.Right.GetHashCode()
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\AddressHeader.cs (1)
101return GetComparableForm().GetHashCode();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\DirectionalAction.cs (1)
72return _action.GetHashCode();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketTransportSettings.cs (1)
161hashcode ^= this.SubProtocol.ToLowerInvariant().GetHashCode();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataConversionError.cs (1)
33return _message.GetHashCode();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceReflector.cs (1)
316return EncodedName.GetHashCode();
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\OperationFormatter.cs (1)
911return obj.Name.GetHashCode();
Metadata\MetadataDocumentLoader.cs (1)
731_hashCode = key.GetHashCode();
Metadata\MetadataDocumentSaver.cs (1)
411return this.ToString().GetHashCode();
Metadata\MetadataFileInfo.cs (1)
50return this.FilePath.ToUpperInvariant().GetHashCode();
Shared\ProjectDependency.cs (1)
385return this.Name.ToUpperInvariant().GetHashCode();
Shared\Utilities\LogTag.cs (1)
82return _value.GetHashCode();
dotnet-user-jwts (1)
Helpers\JwtIssuer.cs (1)
31var id = Guid.NewGuid().ToString().GetHashCode().ToString("x", CultureInfo.InvariantCulture);
GenerateDocumentationAndConfigFiles (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeGeneration\ParameterName.cs (1)
70=> NameBasedOnArgument.GetHashCode();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\Section.cs (1)
182Text.GetHashCode()));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
206Hash.Combine(Name.GetHashCode(),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (1)
78=> ConfigName.GetHashCode();
illink (3)
ILLink.Tasks (1)
CreateRuntimeRootDescriptorFile.cs (1)
84return _key.GetHashCode();
installer.tasks (1)
StaticFileRegeneration\TpnSection.cs (1)
16public override int GetHashCode(TpnSection obj) => obj.Header.Name.GetHashCode();
IntegrationTestsWebsite (4)
artifacts\obj\IntegrationTestsWebsite\Release\net10.0\Protos\Greet.cs (4)
176if (Name.Length != 0) hash ^= Name.GetHashCode(); 582if (FirstName.Length != 0) hash ^= FirstName.GetHashCode(); 583if (LastName.Length != 0) hash ^= LastName.GetHashCode(); 993if (Message.Length != 0) hash ^= Message.GetHashCode();
InteropClient (3)
artifacts\obj\InteropClient\Release\net10.0\Messages.cs (3)
624if (Message.Length != 0) hash ^= Message.GetHashCode(); 1394if (Username.Length != 0) hash ^= Username.GetHashCode(); 1395if (OauthScope.Length != 0) hash ^= OauthScope.GetHashCode();
InteropWebsite (3)
artifacts\obj\InteropWebsite\Release\net10.0\Messages.cs (3)
624if (Message.Length != 0) hash ^= Message.GetHashCode(); 1394if (Username.Length != 0) hash ^= Username.GetHashCode(); 1395if (OauthScope.Length != 0) hash ^= OauthScope.GetHashCode();
Metrics (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeGeneration\ParameterName.cs (1)
70=> NameBasedOnArgument.GetHashCode();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\Section.cs (1)
182Text.GetHashCode()));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
206Hash.Combine(Name.GetHashCode(),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (1)
78=> ConfigName.GetHashCode();
Metrics.Legacy (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeGeneration\ParameterName.cs (1)
70=> NameBasedOnArgument.GetHashCode();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\Section.cs (1)
182Text.GetHashCode()));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
206Hash.Combine(Name.GetHashCode(),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (1)
78=> ConfigName.GetHashCode();
Microsoft.AspNetCore.App.Analyzers.Test (2)
RouteEmbeddedLanguage\Infrastructure\FormattedClassification.cs (2)
37=> ClassificationName.GetHashCode() ^ Text.GetHashCode();
Microsoft.AspNetCore.Connections.Abstractions (2)
NamedPipeEndPoint.cs (2)
63return ServerName.GetHashCode() ^ PipeName.GetHashCode();
Microsoft.AspNetCore.DataProtection.Tests (1)
XmlAssert.cs (1)
144return obj.ToString().GetHashCode();
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (28)
artifacts\obj\Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests\Release\net10.0\Proto\Httpbody.cs (2)
139if (Name.Length != 0) hash ^= Name.GetHashCode(); 361if (Name.Length != 0) hash ^= Name.GetHashCode();
artifacts\obj\Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests\Release\net10.0\Proto\Issue045270\Hello.cs (2)
141if (Name.Length != 0) hash ^= Name.GetHashCode(); 368if (Message.Length != 0) hash ^= Message.GetHashCode();
artifacts\obj\Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests\Release\net10.0\Proto\Issue048192\Customhttp.cs (10)
920if (Selector.Length != 0) hash ^= Selector.GetHashCode(); 921if (HasGet) hash ^= Get.GetHashCode(); 922if (HasPut) hash ^= Put.GetHashCode(); 923if (HasPost) hash ^= Post.GetHashCode(); 924if (HasDelete) hash ^= Delete.GetHashCode(); 925if (HasPatch) hash ^= Patch.GetHashCode(); 927if (Body.Length != 0) hash ^= Body.GetHashCode(); 928if (ResponseBody.Length != 0) hash ^= ResponseBody.GetHashCode(); 1347if (Kind.Length != 0) hash ^= Kind.GetHashCode(); 1348if (Path.Length != 0) hash ^= Path.GetHashCode();
artifacts\obj\Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests\Release\net10.0\Proto\Issue048192\Hello.cs (2)
124if (Name.Length != 0) hash ^= Name.GetHashCode(); 314if (Message.Length != 0) hash ^= Message.GetHashCode();
artifacts\obj\Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests\Release\net10.0\Proto\Transcoding.cs (12)
661if (Name.Length != 0) hash ^= Name.GetHashCode(); 671if (HasOneofName1) hash ^= OneofName1.GetHashCode(); 672if (HasOneofName2) hash ^= OneofName2.GetHashCode(); 682if (FieldName.Length != 0) hash ^= FieldName.GetHashCode(); 684if (HidingFieldName.Length != 0) hash ^= HidingFieldName.GetHashCode(); 1462if (Subfield.Length != 0) hash ^= Subfield.GetHashCode(); 1902if (SingleString.Length != 0) hash ^= SingleString.GetHashCode(); 2470if (Subfield.Length != 0) hash ^= Subfield.GetHashCode(); 2795if (stringValue_ != null) hash ^= StringValue.GetHashCode(); 3285if (Message.Length != 0) hash ^= Message.GetHashCode(); 3287if (nullableMessage_ != null) hash ^= NullableMessage.GetHashCode(); 3597if (Subfield.Length != 0) hash ^= Subfield.GetHashCode();
Microsoft.AspNetCore.Grpc.Microbenchmarks (4)
artifacts\obj\Microsoft.AspNetCore.Grpc.Microbenchmarks\Release\net10.0\Proto\Chat.cs (2)
138if (Name.Length != 0) hash ^= Name.GetHashCode(); 139if (Message.Length != 0) hash ^= Message.GetHashCode();
artifacts\obj\Microsoft.AspNetCore.Grpc.Microbenchmarks\Release\net10.0\Proto\Greet.cs (2)
128if (Name.Length != 0) hash ^= Name.GetHashCode(); 335if (Message.Length != 0) hash ^= Message.GetHashCode();
Microsoft.AspNetCore.Grpc.Swagger.Tests (26)
artifacts\obj\Microsoft.AspNetCore.Grpc.Swagger.Tests\Release\net10.0\Proto\Body.cs (2)
387if (RequestBody_.Length != 0) hash ^= RequestBody_.GetHashCode(); 577if (Message.Length != 0) hash ^= Message.GetHashCode();
artifacts\obj\Microsoft.AspNetCore.Grpc.Swagger.Tests\Release\net10.0\Proto\Greeter.cs (2)
129if (Name.Length != 0) hash ^= Name.GetHashCode(); 325if (Message.Length != 0) hash ^= Message.GetHashCode();
artifacts\obj\Microsoft.AspNetCore.Grpc.Swagger.Tests\Release\net10.0\Proto\Messages.cs (11)
250if (Name.Length != 0) hash ^= Name.GetHashCode(); 565if (Subfield.Length != 0) hash ^= Subfield.GetHashCode(); 1005if (SingleString.Length != 0) hash ^= SingleString.GetHashCode(); 1573if (Subfield.Length != 0) hash ^= Subfield.GetHashCode(); 1898if (stringValue_ != null) hash ^= StringValue.GetHashCode(); 2344if (Message.Length != 0) hash ^= Message.GetHashCode(); 2549if (stringValue_ != null) hash ^= StringValue.GetHashCode(); 3544if (HasFirstOne) hash ^= FirstOne.GetHashCode(); 3545if (HasFirstTwo) hash ^= FirstTwo.GetHashCode(); 3546if (HasSecondOne) hash ^= SecondOne.GetHashCode(); 3547if (HasSecondTwo) hash ^= SecondTwo.GetHashCode();
artifacts\obj\Microsoft.AspNetCore.Grpc.Swagger.Tests\Release\net10.0\Proto\Parameters.cs (7)
191if (ParameterString.Length != 0) hash ^= ParameterString.GetHashCode(); 446if (ParameterTwo.Length != 0) hash ^= ParameterTwo.GetHashCode(); 967if (ParameterTwo.Length != 0) hash ^= ParameterTwo.GetHashCode(); 1233if (NestedParameterTwo.Length != 0) hash ^= NestedParameterTwo.GetHashCode(); 1521if (stringValue_ != null) hash ^= StringValue.GetHashCode(); 1777if (RequestBody_.Length != 0) hash ^= RequestBody_.GetHashCode(); 1967if (Message.Length != 0) hash ^= Message.GetHashCode();
artifacts\obj\Microsoft.AspNetCore.Grpc.Swagger.Tests\Release\net10.0\Proto\Responsebody.cs (1)
349if (Message.Length != 0) hash ^= Message.GetHashCode();
artifacts\obj\Microsoft.AspNetCore.Grpc.Swagger.Tests\Release\net10.0\Proto\Xmldoc.cs (3)
142if (Name.Length != 0) hash ^= Name.GetHashCode(); 355if (Name.Length != 0) hash ^= Name.GetHashCode(); 787if (Message.Length != 0) hash ^= Message.GetHashCode();
Microsoft.AspNetCore.Html.Abstractions.Tests (1)
HtmlContentBuilderTest.cs (1)
253return _content.GetHashCode();
Microsoft.AspNetCore.Http (1)
BindingAddress.cs (1)
130return ToString().GetHashCode();
Microsoft.AspNetCore.Http.Abstractions (2)
FragmentString.cs (1)
140return (HasValue ? _value.GetHashCode() : 0);
QueryString.cs (1)
243return (HasValue ? Value.GetHashCode() : 0);
Microsoft.AspNetCore.Mvc.Abstractions (2)
ModelBinding\BindingSource.cs (1)
220return Id.GetHashCode();
ModelBinding\ValueProviderResult.cs (1)
119return ToString().GetHashCode();
Microsoft.AspNetCore.Mvc.Core.Test (1)
ModelBinding\Binders\DictionaryModelBinderTest.cs (1)
722var nameCode = Name == null ? 0 : Name.GetHashCode();
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (1)
ModelValidationResultComparer.cs (1)
31return obj.MemberName.GetHashCode();
Microsoft.AspNetCore.RateLimiting (1)
PolicyNameKey.cs (1)
21return PolicyName.GetHashCode();
Microsoft.AspNetCore.Routing (1)
Matching\HostMatcherPolicy.cs (1)
464return (Host?.GetHashCode() ?? 0) ^ (Port?.GetHashCode() ?? 0);
Microsoft.AspNetCore.Server.Kestrel.Core (3)
src\Shared\Hpack\DynamicHPackEncoder.cs (3)
171int hash = name.GetHashCode(); 193int hash = name.GetHashCode(); 215int hash = name.GetHashCode();
Microsoft.AspNetCore.Shared.Tests (3)
src\Shared\Hpack\DynamicHPackEncoder.cs (3)
171int hash = name.GetHashCode(); 193int hash = name.GetHashCode(); 215int hash = name.GetHashCode();
Microsoft.Build.Framework (5)
Sdk\SdkReference.cs (3)
136var hashCode = (Name != null ? Name.ToLowerInvariant().GetHashCode() : 0); 137hashCode = (hashCode * 397) ^ (Version != null ? Version.ToLowerInvariant().GetHashCode() : 0); 138hashCode = (hashCode * 397) ^ (MinimumVersion != null ? MinimumVersion.ToLowerInvariant().GetHashCode() : 0);
Sdk\SdkResultItem.cs (1)
53hashCode = hashCode ^ ItemSpec.GetHashCode();
Telemetry\TaskOrTargetTelemetryKey.cs (1)
104var hashCode = Name.GetHashCode();
Microsoft.Cci.Extensions (4)
Comparers\StringKeyComparer.cs (1)
33return GetKey(obj).GetHashCode();
Traversers\DependencyTraverser.cs (1)
216return obj.UniqueId().GetHashCode();
Traversers\ResolveAllReferencesTraverser.cs (1)
149return obj.UniqueId().GetHashCode();
Writers\Syntax\SyntaxToken.cs (1)
32return this.Type.GetHashCode() ^ this.Token.GetHashCode();
Microsoft.CodeAnalysis (21)
CommandLine\CommonCompiler.SuppressionDiagnostic.cs (1)
91Hash.Combine(_suppressionId.GetHashCode(), _suppressionJustification.GetHashCode()));
CommandLine\SarifDiagnosticComparer.cs (3)
66return Hash.Combine(obj.Category.GetHashCode(), 69Hash.Combine(obj.HelpLinkUri.GetHashCode(), 70Hash.Combine(obj.Id.GetHashCode(),
Compilation\LoadDirective.cs (1)
41return Hash.Combine(this.Diagnostics.GetHashCode(), this.ResolvedPath?.GetHashCode() ?? 0);
Compilation\ParseOptions.cs (2)
187value = Hash.Combine(kv.Key.GetHashCode(), 188Hash.Combine(kv.Value.GetHashCode(), value));
Diagnostic\CommonDiagnosticComparer.cs (1)
40return Hash.Combine(obj.Location, obj.Id.GetHashCode());
Diagnostic\DiagnosticDescriptor.cs (3)
221return Hash.Combine(this.Category.GetHashCode(), 224Hash.Combine(this.HelpLinkUri.GetHashCode(), 225Hash.Combine(this.Id.GetHashCode(),
Diagnostic\LocalizableResourceString.cs (1)
91return Hash.Combine(_nameOfLocalizableResource.GetHashCode(),
Diagnostic\LocalizableResourceString.FixedLocalizableString.cs (1)
49return _fixedString?.GetHashCode() ?? 0;
Diagnostic\SuppressionDescriptor.cs (2)
94return Hash.Combine(this.Id.GetHashCode(), 95Hash.Combine(this.SuppressedDiagnosticId.GetHashCode(), this.Justification.GetHashCode()));
DiagnosticAnalyzer\AnalyzerFileReference.cs (1)
107=> Hash.Combine(RuntimeHelpers.GetHashCode(_assemblyLoader), FullPath.GetHashCode());
DocumentationComments\DocumentationCommentIncludeCache.cs (1)
65return resolvedPath.GetHashCode();
Emit\SynthesizedDelegateKey.cs (1)
25=> Name.GetHashCode();
Symbols\Attributes\CommonAttributeDataComparer.cs (1)
84hash = hashCombine(arg.Key.GetHashCode(), hash, _considerNamedArgumentsOrder);
Syntax\SyntaxTreeComparer.cs (1)
33return Hash.Combine(obj.FilePath.GetHashCode(), SourceTextComparer.Instance.GetHashCode(obj.GetText()));
Text\TextChange.cs (1)
72return Hash.Combine(this.Span.GetHashCode(), this.NewText?.GetHashCode() ?? 0);
Microsoft.CodeAnalysis.Analyzers (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeGeneration\ParameterName.cs (1)
70=> NameBasedOnArgument.GetHashCode();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\Section.cs (1)
182Text.GetHashCode()));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
206Hash.Combine(Name.GetHashCode(),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (1)
78=> ConfigName.GetHashCode();
Microsoft.CodeAnalysis.AnalyzerUtilities (7)
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AbstractIndex.ConstantValueIndex.cs (1)
23hashCode.Add(nameof(ConstantValueIndex).GetHashCode());
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AbstractIndex.OperationBasedIndex.cs (1)
23hashCode.Add(nameof(OperationBasedIndex).GetHashCode());
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AbstractIndex.SymbolBasedIndex.cs (1)
23hashCode.Add(nameof(AnalysisEntityBasedIndex).GetHashCode());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeGeneration\ParameterName.cs (1)
70=> NameBasedOnArgument.GetHashCode();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\Section.cs (1)
182Text.GetHashCode()));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
206Hash.Combine(Name.GetHashCode(),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (1)
78=> ConfigName.GetHashCode();
Microsoft.CodeAnalysis.BannedApiAnalyzers (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeGeneration\ParameterName.cs (1)
70=> NameBasedOnArgument.GetHashCode();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\Section.cs (1)
182Text.GetHashCode()));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
206Hash.Combine(Name.GetHashCode(),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (1)
78=> ConfigName.GetHashCode();
Microsoft.CodeAnalysis.CodeStyle (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeGeneration\ParameterName.cs (1)
70=> NameBasedOnArgument.GetHashCode();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\Section.cs (1)
182Text.GetHashCode()));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
206Hash.Combine(Name.GetHashCode(),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (1)
78=> ConfigName.GetHashCode();
Microsoft.CodeAnalysis.CSharp (11)
Binder\Semantics\Operators\UnaryOperatorOverloadResolution.cs (1)
297result = Hash.Combine(result, groupingKey.GetHashCode());
Declarations\SingleTypeDeclaration.cs (1)
288return Hash.Combine(thisDecl.Name.GetHashCode(),
Symbols\AliasSymbol.cs (1)
263=> this.TryGetFirstLocation()?.GetHashCode() ?? Name.GetHashCode();
Symbols\AnonymousTypes\AnonymousTypeDescriptor.cs (1)
95return this.Key.GetHashCode();
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (1)
82return Hash.Combine((int)ParameterCount, Name.GetHashCode());
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.PropertySymbol.cs (1)
231return Hash.Combine(this.ContainingType.GetHashCode(), this.Name.GetHashCode());
Symbols\ExtendedErrorTypeSymbol.cs (1)
309this.Name != null ? this.Name.GetHashCode() : 0));
Symbols\MissingNamespaceSymbol.cs (1)
79return Hash.Combine(_containingSymbol.GetHashCode(), _name.GetHashCode());
Symbols\PublicModel\PreprocessingSymbol.cs (1)
29return this._name.GetHashCode();
Symbols\SynthesizedNamespaceSymbol.cs (1)
34=> Hash.Combine(_containingSymbol.GetHashCode(), _name.GetHashCode());
Symbols\UnboundGenericType.cs (1)
119? _name.GetHashCode()
Microsoft.CodeAnalysis.CSharp.Features (3)
Completion\CompletionProviders\FunctionPointerUnmanagedCallingConventionCompletionProvider.cs (1)
136return obj?.DisplayText.GetHashCode() ?? 0;
Completion\CompletionProviders\NamedParameterCompletionProvider.cs (1)
278=> obj.Name.GetHashCode();
ConvertToExtension\ExtensionMethodEqualityComparer.cs (1)
142=> s_equivalenceComparer.ParameterEquivalenceComparer.GetHashCode(obj.FirstParameter) ^ obj.FirstParameter.Name.GetHashCode();
Microsoft.CodeAnalysis.EditorFeatures (2)
EditorConfigSettings\DataProvider\Analyzer\AnalyzerSettingsProvider.cs (1)
97=> obj.Id.GetHashCode();
Suggestions\SuggestedActions\SuggestedAction.cs (1)
326return Hash.Combine(Provider.GetHashCode(), CodeAction.EquivalenceKey.GetHashCode());
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
Classification\FormattedClassification.cs (2)
44=> ClassificationName.GetHashCode() ^ Text.GetHashCode();
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
Utilities\BloomFilterTests.cs (2)
168var longs = CreateLongs([.. GenerateStrings(2000).Skip(500).Take(1000).Select(s => s.GetHashCode())]); 169var testLongs = CreateLongs([.. GenerateStrings(100000).Select(s => s.GetHashCode())]);
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
PDB\MethodDebugInfo.Native.cs (1)
51LocalName.GetHashCode());
Microsoft.CodeAnalysis.Features (11)
Completion\CompletionService.ProviderManager.cs (1)
251hash += o.GetHashCode();
Completion\Providers\AbstractKeywordCompletionProvider.cs (1)
24static x => x.DisplayText.GetHashCode());
Completion\Providers\UnionCompletionItemComparer.cs (1)
24=> Hash.Combine(obj.DisplayText.GetHashCode(), obj.Tags.Length);
Diagnostics\IPerformanceTrackerService.cs (1)
31AnalyzerIdHash = analyzerId.GetHashCode().ToString();
Diagnostics\Log\DiagnosticLogger.cs (2)
27m[Id] = telemetry ? id : id.GetHashCode().ToString(); 29m[Uri] = telemetry ? uri : uri.GetHashCode().ToString();
Diagnostics\Service\DocumentAnalysisExecutor_Helpers.cs (1)
234return Hash.Combine(obj.Id.GetHashCode(), obj.Location.GetHashCode());
EditAndContinue\RunningProjectOptions.cs (1)
69=> obj.path.GetHashCode(); // only hash path, all tfms need to fall to the same bucket
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingSolutionCrawlerLogger.cs (1)
226return solution.FilePath.ToLowerInvariant().GetHashCode();
MetadataAsSource\DecompilationMetadataAsSourceFileProvider.cs (1)
458Hash.Combine(_language.GetHashCode(),
Shared\Utilities\LinkedFilesSymbolEquivalenceComparer.cs (1)
22=> symbol.Name.GetHashCode();
Microsoft.CodeAnalysis.LanguageServer.Protocol (3)
Protocol\DocumentUri.cs (1)
118return this.UriString.GetHashCode();
Protocol\Extensions\VSProjectContext.cs (2)
102return (this.Label == null ? 53 : this.Label.GetHashCode() * 13) 103^ (this.Id == null ? 61 : this.Id.GetHashCode() * 17)
Microsoft.CodeAnalysis.LanguageServer.UnitTests (1)
ExportProviderBuilderTests.cs (1)
121assemblyName = "MyAssembly" + reservedCharacter.GetHashCode();
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeGeneration\ParameterName.cs (1)
70=> NameBasedOnArgument.GetHashCode();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\Section.cs (1)
182Text.GetHashCode()));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
206Hash.Combine(Name.GetHashCode(),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (1)
78=> ConfigName.GetHashCode();
Microsoft.CodeAnalysis.PublicApiAnalyzers (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeGeneration\ParameterName.cs (1)
70=> NameBasedOnArgument.GetHashCode();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\Section.cs (1)
182Text.GetHashCode()));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
206Hash.Combine(Name.GetHashCode(),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (1)
78=> ConfigName.GetHashCode();
Microsoft.CodeAnalysis.Remote.Workspaces (2)
VisualStudioMefHostServices.cs (2)
92=> Hash.Combine(MetadataTypeName.GetHashCode(), ExtensionTypeName.GetHashCode());
Microsoft.CodeAnalysis.ResxSourceGenerator (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeGeneration\ParameterName.cs (1)
70=> NameBasedOnArgument.GetHashCode();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\Section.cs (1)
182Text.GetHashCode()));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
206Hash.Combine(Name.GetHashCode(),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (1)
78=> ConfigName.GetHashCode();
Microsoft.CodeAnalysis.Test.Utilities (2)
Assert\AssertEx.cs (1)
885public int GetHashCode(string str) => str.Trim().GetHashCode();
InstrumentationChecker.cs (1)
424return obj.GetHashCode();
Microsoft.CodeAnalysis.UnitTests (2)
Collections\ImmutableSegmentedListTest.cs (1)
958return obj.Name.GetHashCode();
PEWriter\UsedNamespaceOrTypeTests.cs (1)
29public override int GetHashCode() => Name.GetHashCode();
Microsoft.CodeAnalysis.VisualBasic (8)
Binding\Binder_XmlLiterals.vb (2)
593Dim result = obj.LocalName.GetHashCode() 595result = Hash.Combine(result, obj.XmlNamespace.GetHashCode())
GlobalImport.vb (1)
168Return Hash.Combine(Me.Name.GetHashCode(), StringComparer.Ordinal.GetHashCode(Me.Clause.ToFullString()))
Symbols\AliasSymbol.vb (1)
253Return If(Me.Locations.Length > 0, Me.Locations(0).GetHashCode(), Me.Name.GetHashCode())
Symbols\AnonymousTypes\AnonymousTypeDescriptor.vb (1)
112Return Me.Key.GetHashCode()
Symbols\ExtendedErrorTypeSymbol.vb (1)
163If(Me.Name Is Nothing, 0, Me.Name.GetHashCode())))
Symbols\MissingNamespaceSymbol.vb (1)
72Return Hash.Combine(_containingSymbol.GetHashCode(), _name.GetHashCode())
Symbols\PreprocessingSymbol.vb (1)
108Return Me.Name.GetHashCode()
Microsoft.CodeAnalysis.Workspaces (12)
CodeFixesAndRefactorings\FixAllLogger.cs (3)
73m[providerKey] = fixAllState.Provider.GetType().FullName!.GetHashCode().ToString(); 74m[CodeActionEquivalenceKey] = fixAllState.CodeActionEquivalenceKey?.GetHashCode().ToString(); 75m[LanguageName] = fixAllState.Project.Language.GetHashCode().ToString();
Options\OptionKey.cs (1)
63hash = unchecked((hash * (int)0xA5555529) + Language.GetHashCode());
Packaging\IPackageInstallerService.cs (1)
62=> Hash.Combine(Name, Source.GetHashCode());
Remote\RemoteArguments.cs (1)
228hashCode += symbol.SymbolKeyData.GetHashCode();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeGeneration\ParameterName.cs (1)
70=> NameBasedOnArgument.GetHashCode();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\Section.cs (1)
182Text.GetHashCode()));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
206Hash.Combine(Name.GetHashCode(),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (1)
78=> ConfigName.GetHashCode();
SymbolSearch\ISymbolSearchService.cs (1)
117=> PackageName.GetHashCode();
Utilities\Documentation\XmlDocumentationProvider.cs (1)
168=> _filePath.GetHashCode();
Microsoft.CodeAnalysis.Workspaces.Desktop (4)
Workspace\Host\Mef\MefV1HostServices.cs (4)
120Hash.Combine(metadataTypeName.GetHashCode(), extensionTypeName.GetHashCode()); 134return Hash.Combine(this.MetadataTypeName.GetHashCode(), this.ExtensionTypeName.GetHashCode());
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\MSBuildProjectLoader.Worker.AnalyzerReferencePathComparer.cs (1)
25=> obj?.FullPath?.GetHashCode() ?? 0;
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
SolutionTests\SolutionWithSourceGeneratorTests.cs (1)
113public override int GetHashCode() => this.FullPath.GetHashCode();
Microsoft.CSharp (7)
Microsoft\CSharp\RuntimeBinder\BinderHelper.cs (1)
440hash = HashHelpers.Combine(hash, argName.GetHashCode());
Microsoft\CSharp\RuntimeBinder\CSharpGetMemberBinder.cs (1)
75hash = HashHelpers.Combine(hash, Name.GetHashCode());
Microsoft\CSharp\RuntimeBinder\CSharpInvokeConstructorBinder.cs (1)
60hash = HashHelpers.Combine(hash, Name.GetHashCode());
Microsoft\CSharp\RuntimeBinder\CSharpInvokeMemberBinder.cs (1)
83hash = HashHelpers.Combine(hash, Name.GetHashCode());
Microsoft\CSharp\RuntimeBinder\CSharpIsEventBinder.cs (1)
54hash = HashHelpers.Combine(hash, Name.GetHashCode());
Microsoft\CSharp\RuntimeBinder\CSharpSetMemberBinder.cs (1)
78hash = HashHelpers.Combine(hash, Name.GetHashCode());
Microsoft\CSharp\RuntimeBinder\SymbolTable.cs (1)
45public override int GetHashCode() => Type.GetHashCode() ^ Name.GetHashCode();
Microsoft.DotNet.Build.Tasks.Packaging (4)
GenerateNuSpec.cs (1)
292return obj.AssemblyName.GetHashCode();
PackageReport.cs (3)
159var hash = Project.GetHashCode(); 160hash ^= AdditionalProperties.GetHashCode(); 161hash ^= UndefineProperties.GetHashCode();
Microsoft.DotNet.Build.Tasks.Workloads (1)
Swix\SwixComponent.cs (1)
133public override int GetHashCode() => Name.GetHashCode();
Microsoft.DotNet.SignTool (4)
src\ExplicitCertificateKey.cs (3)
46=> Hash.Combine(Hash.Combine(FileName.GetHashCode(), PublicKeyToken.GetHashCode()), Hash.Combine(TargetFramework.GetHashCode(), ExecutableType.GetHashCode()));
src\SignedFileContentKey.cs (1)
45=> Hash.Combine(FileName, StringHash.GetHashCode());
Microsoft.DotNet.XUnitAssert.Tests (2)
CollectionAssertsTests.cs (2)
1591 ToBitString(obj).GetHashCode(); 2258 ToBitString(obj).GetHashCode();
Microsoft.Extensions.AI.Evaluation.Reporting.Tests (2)
ScenarioRunResultTests.cs (2)
301=> obj.Text.GetHashCode(); 314=> obj.Text.GetHashCode();
Microsoft.Extensions.DependencyModel (3)
Dependency.cs (2)
37HashHelpers.Combine(Name.GetHashCode(), Version.GetHashCode());
HashCodeCombiner.cs (1)
38int hashCode = (s != null) ? s.GetHashCode() : 0;
Microsoft.Extensions.Primitives (3)
StringValues.cs (3)
745return this[0]?.GetHashCode() ?? Count.GetHashCode(); 750hashCode = HashHelpers.Combine(hashCode, values[i]?.GetHashCode() ?? 0); 756return Unsafe.As<string>(value)?.GetHashCode() ?? Count.GetHashCode();
Microsoft.Interop.SourceGeneration (1)
ContainingSyntaxContext.cs (1)
93int code = ContainingNamespace?.GetHashCode() ?? 0;
Microsoft.Maui.Controls.Build.Tasks (1)
TypeReferenceExtensions.cs (1)
53 return $"{GetAssemblyName(obj)}//{obj.FullName}".GetHashCode();
Microsoft.Maui.Controls.SourceGen (4)
src\Controls\src\Xaml\XamlNode.cs (2)
77 int hashCode = NamespaceUri.GetHashCode(); 78 hashCode = (hashCode * 397) ^ Name.GetHashCode();
src\Controls\src\Xaml\XmlName.cs (2)
48 hashCode = NamespaceURI.GetHashCode(); 50 hashCode = (hashCode * 397) ^ LocalName.GetHashCode();
Microsoft.ML.AutoML (1)
Experiment\SuggestedPipeline.cs (1)
52return ToString().GetHashCode();
Microsoft.ML.Core (1)
ComponentModel\ComponentCatalog.cs (1)
111return Hashing.CombinedHash(Name.GetHashCode(), Signature.GetHashCode());
Microsoft.ML.Data (1)
EntryPoints\EntryPointNode.cs (1)
1232return ParameterName.GetHashCode();
Microsoft.ML.FastTree (1)
TreeEnsemble\InternalRegressionTree.cs (1)
1079return ToString().GetHashCode();
Microsoft.ML.OnnxConverter (26)
OnnxMl.cs (26)
550if (Name.Length != 0) hash ^= Name.GetHashCode(); 551if (RefAttrName.Length != 0) hash ^= RefAttrName.GetHashCode(); 552if (DocString.Length != 0) hash ^= DocString.GetHashCode(); 1031if (Name.Length != 0) hash ^= Name.GetHashCode(); 1033if (DocString.Length != 0) hash ^= DocString.GetHashCode(); 1351if (Name.Length != 0) hash ^= Name.GetHashCode(); 1352if (OpType.Length != 0) hash ^= OpType.GetHashCode(); 1353if (Domain.Length != 0) hash ^= Domain.GetHashCode(); 1355if (DocString.Length != 0) hash ^= DocString.GetHashCode(); 1760if (ProducerName.Length != 0) hash ^= ProducerName.GetHashCode(); 1761if (ProducerVersion.Length != 0) hash ^= ProducerVersion.GetHashCode(); 1762if (Domain.Length != 0) hash ^= Domain.GetHashCode(); 1764if (DocString.Length != 0) hash ^= DocString.GetHashCode(); 2074if (Key.Length != 0) hash ^= Key.GetHashCode(); 2075if (Value.Length != 0) hash ^= Value.GetHashCode(); 2269if (TensorName.Length != 0) hash ^= TensorName.GetHashCode(); 2580if (Name.Length != 0) hash ^= Name.GetHashCode(); 2583if (DocString.Length != 0) hash ^= DocString.GetHashCode(); 3094if (Name.Length != 0) hash ^= Name.GetHashCode(); 3095if (DocString.Length != 0) hash ^= DocString.GetHashCode(); 4180if (valueCase_ == ValueOneofCase.DimParam) hash ^= DimParam.GetHashCode(); 4181if (Denotation.Length != 0) hash ^= Denotation.GetHashCode(); 4522if (Denotation.Length != 0) hash ^= Denotation.GetHashCode(); 5633if (Domain.Length != 0) hash ^= Domain.GetHashCode(); 5634if (Name.Length != 0) hash ^= Name.GetHashCode(); 5844if (Domain.Length != 0) hash ^= Domain.GetHashCode();
Microsoft.ML.OnnxTransformer (26)
src\Microsoft.ML.OnnxConverter\OnnxMl.cs (26)
550if (Name.Length != 0) hash ^= Name.GetHashCode(); 551if (RefAttrName.Length != 0) hash ^= RefAttrName.GetHashCode(); 552if (DocString.Length != 0) hash ^= DocString.GetHashCode(); 1031if (Name.Length != 0) hash ^= Name.GetHashCode(); 1033if (DocString.Length != 0) hash ^= DocString.GetHashCode(); 1351if (Name.Length != 0) hash ^= Name.GetHashCode(); 1352if (OpType.Length != 0) hash ^= OpType.GetHashCode(); 1353if (Domain.Length != 0) hash ^= Domain.GetHashCode(); 1355if (DocString.Length != 0) hash ^= DocString.GetHashCode(); 1760if (ProducerName.Length != 0) hash ^= ProducerName.GetHashCode(); 1761if (ProducerVersion.Length != 0) hash ^= ProducerVersion.GetHashCode(); 1762if (Domain.Length != 0) hash ^= Domain.GetHashCode(); 1764if (DocString.Length != 0) hash ^= DocString.GetHashCode(); 2074if (Key.Length != 0) hash ^= Key.GetHashCode(); 2075if (Value.Length != 0) hash ^= Value.GetHashCode(); 2269if (TensorName.Length != 0) hash ^= TensorName.GetHashCode(); 2580if (Name.Length != 0) hash ^= Name.GetHashCode(); 2583if (DocString.Length != 0) hash ^= DocString.GetHashCode(); 3094if (Name.Length != 0) hash ^= Name.GetHashCode(); 3095if (DocString.Length != 0) hash ^= DocString.GetHashCode(); 4180if (valueCase_ == ValueOneofCase.DimParam) hash ^= DimParam.GetHashCode(); 4181if (Denotation.Length != 0) hash ^= Denotation.GetHashCode(); 4522if (Denotation.Length != 0) hash ^= Denotation.GetHashCode(); 5633if (Domain.Length != 0) hash ^= Domain.GetHashCode(); 5634if (Name.Length != 0) hash ^= Name.GetHashCode(); 5844if (Domain.Length != 0) hash ^= Domain.GetHashCode();
Microsoft.ML.SearchSpace (1)
Parameter.cs (1)
403return thisJson.GetHashCode();
Microsoft.ML.TestFramework (2)
SubComponent.cs (2)
149int hash = Kind.GetHashCode(); 151hash = CombineHash(hash, Settings[i].GetHashCode());
Microsoft.ML.Tokenizers (15)
SentencepieceModel.cs (15)
1666if (HasInputFormat) hash ^= InputFormat.GetHashCode(); 1667if (HasModelPrefix) hash ^= ModelPrefix.GetHashCode(); 1692if (HasPretokenizationDelimiter) hash ^= PretokenizationDelimiter.GetHashCode(); 1695if (HasRequiredChars) hash ^= RequiredChars.GetHashCode(); 1704if (HasUnkPiece) hash ^= UnkPiece.GetHashCode(); 1705if (HasBosPiece) hash ^= BosPiece.GetHashCode(); 1706if (HasEosPiece) hash ^= EosPiece.GetHashCode(); 1707if (HasPadPiece) hash ^= PadPiece.GetHashCode(); 1708if (HasUnkSurface) hash ^= UnkSurface.GetHashCode(); 1710if (HasSeedSentencepiecesFile) hash ^= SeedSentencepiecesFile.GetHashCode(); 3112if (HasName) hash ^= Name.GetHashCode(); 3117if (HasNormalizationRuleTsv) hash ^= NormalizationRuleTsv.GetHashCode(); 3728if (HasInput) hash ^= Input.GetHashCode(); 3729if (HasExpected) hash ^= Expected.GetHashCode(); 4461if (HasPiece) hash ^= Piece.GetHashCode();
Microsoft.VisualBasic.Core (5)
Microsoft\VisualBasic\CompilerServices\IDOBinder.vb (5)
368Return s_hash Xor Name.GetHashCode() Xor CallInfo.GetHashCode() Xor _ignoreReturn.GetHashCode() 446Return s_hash Xor Name.GetHashCode() Xor CallInfo.GetHashCode() 713Return s_hash Xor Name.GetHashCode() 772Return s_hash Xor Name.GetHashCode() Xor _optimisticSet.GetHashCode() Xor _rValueBase.GetHashCode() 805Return s_hash Xor Name.GetHashCode()
Microsoft.VisualStudio.LanguageServices (2)
StackTraceExplorer\StackTraceExplorerViewModel.cs (2)
59public bool Matches(string text) => text.GetHashCode() == _id; 83_id = originalText.GetHashCode();
MyFrontend (6)
artifacts\obj\MyFrontend\Debug\net8.0\Basket.cs (6)
148if (Id.Length != 0) hash ^= Id.GetHashCode(); 359if (BuyerId.Length != 0) hash ^= BuyerId.GetHashCode(); 583if (BuyerId.Length != 0) hash ^= BuyerId.GetHashCode(); 850if (Id.Length != 0) hash ^= Id.GetHashCode(); 1158if (BuyerId.Length != 0) hash ^= BuyerId.GetHashCode(); 1517if (BuyerId.Length != 0) hash ^= BuyerId.GetHashCode();
PresentationBuildTasks (4)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\BamlMapTable.cs (3)
1897return ((AssemblyFullName != null) ? AssemblyFullName.GetHashCode() : 0); 1960return ((DeclaringAssembly != null) ? DeclaringAssembly.GetHashCode() : 0) ^ 1961((TypeFullName != null) ? TypeFullName.GetHashCode() : 0);
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (1)
6869return _ownerType.GetHashCode() ^ _name.GetHashCode();
PresentationCore (5)
MS\Internal\FontCache\CanonicalFontFamilyReference.cs (3)
130return _familyName.GetHashCode(); 137EscapedFileName.GetHashCode(); 140hash = HashFn.HashMultiply(hash) + _familyName.GetHashCode();
MS\Internal\FontFace\FontFamilyIdentifier.cs (1)
450hash = HashFn.HashMultiply(hash) + _name.GetHashCode();
MS\Internal\Shaping\ShapeTypeface.cs (1)
41+ (_deviceFont == null ? 0 : _deviceFont.Name.GetHashCode());
PresentationFramework (18)
MS\Internal\Data\AccessorTable.cs (1)
198public override int GetHashCode() => unchecked(_type.GetHashCode() + _name.GetHashCode());
MS\Internal\IO\Packaging\ContentDescriptor.cs (2)
52return XmlNamespace.GetHashCode() ^ BaseName.GetHashCode();
System\Windows\Data\XmlNamespaceMapping.cs (1)
117hash = _prefix.GetHashCode();
System\Windows\Documents\Serialization\SerializerDescriptor.cs (1)
354return id.GetHashCode();
System\Windows\Markup\BamlMapTable.cs (3)
1897return ((AssemblyFullName != null) ? AssemblyFullName.GetHashCode() : 0); 1960return ((DeclaringAssembly != null) ? DeclaringAssembly.GetHashCode() : 0) ^ 1961((TypeFullName != null) ? TypeFullName.GetHashCode() : 0);
System\Windows\Markup\Localizer\BamlLocalizableResource.cs (2)
181return (_content == null ? 0 : _content.GetHashCode()) 182^(_comments == null ? 0 : _comments.GetHashCode())
System\Windows\Markup\Localizer\BamlLocalizableResourceKey.cs (3)
125return _uid.GetHashCode() 126^ _className.GetHashCode() 127^ _propertyName.GetHashCode();
System\Windows\Markup\Primitives\ElementMarkupObject.cs (1)
317return _type.GetHashCode() ^ _propertyName.GetHashCode();
System\Windows\Markup\Primitives\MarkupWriter.cs (2)
1292return Uri.GetHashCode() + Prefix.GetHashCode();
System\Windows\VisualStateManager.cs (2)
765int targetNameHash = _targetName != null ? _targetName.GetHashCode() : 0; 766int targetPropertyHash = (_targetProperty != null && _targetProperty.Path != null) ? _targetProperty.Path.GetHashCode() : 0;
ReachFramework (2)
Serialization\ImageSourceTypeConverter.cs (1)
450_uriHashValue = sourceUri.GetHashCode();
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\UriComparer.cs (1)
90return uriAsString.GetHashCode();
Roslyn.Diagnostics.Analyzers (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeGeneration\ParameterName.cs (1)
70=> NameBasedOnArgument.GetHashCode();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\Section.cs (1)
182Text.GetHashCode()));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
206Hash.Combine(Name.GetHashCode(),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (1)
78=> ConfigName.GetHashCode();
Roslyn.VisualStudio.Next.UnitTests (4)
Services\PerformanceTrackerServiceTests.cs (1)
133Assert.True(analyzerInfo2.PIISafeAnalyzerId == "test".GetHashCode().ToString());
UnifiedSettings\TestModel\UnifiedSettingBase.cs (3)
62=> Hash.Combine(Hash.Combine(Hash.Combine(Hash.Combine(Hash.Combine(Title.GetHashCode(), Type.GetHashCode()), Order.GetHashCode()), EnableWhen?.GetHashCode() ?? 0), Migration.GetHashCode()), Messages is null ? 0 : Hash.CombineValues(Messages));
Sandbox (10)
artifacts\obj\Sandbox\Release\net10.0\Greet.cs (4)
128if (Name.Length != 0) hash ^= Name.GetHashCode(); 332if (Name.Length != 0) hash ^= Name.GetHashCode(); 333if (From.Length != 0) hash ^= From.GetHashCode(); 559if (Message.Length != 0) hash ^= Message.GetHashCode();
artifacts\obj\Sandbox\Release\net10.0\Transcoding.cs (6)
271if (Name.Length != 0) hash ^= Name.GetHashCode(); 586if (Subfield.Length != 0) hash ^= Subfield.GetHashCode(); 1026if (SingleString.Length != 0) hash ^= SingleString.GetHashCode(); 1594if (Subfield.Length != 0) hash ^= Subfield.GetHashCode(); 1919if (stringValue_ != null) hash ^= StringValue.GetHashCode(); 2379if (Message.Length != 0) hash ^= Message.GetHashCode();
SocialWeather (1)
Protobuf\WeatherReport.cs (1)
168if (ZipCode.Length != 0) hash ^= ZipCode.GetHashCode();
Stress.TelemetryService (22)
artifacts\obj\Stress.TelemetryService\Debug\net8.0\opentelemetry\proto\collector\logs\v1\LogsService.cs (1)
584if (ErrorMessage.Length != 0) hash ^= ErrorMessage.GetHashCode();
artifacts\obj\Stress.TelemetryService\Debug\net8.0\opentelemetry\proto\collector\metrics\v1\MetricsService.cs (1)
586if (ErrorMessage.Length != 0) hash ^= ErrorMessage.GetHashCode();
artifacts\obj\Stress.TelemetryService\Debug\net8.0\opentelemetry\proto\collector\trace\v1\TraceService.cs (1)
585if (ErrorMessage.Length != 0) hash ^= ErrorMessage.GetHashCode();
artifacts\obj\Stress.TelemetryService\Debug\net8.0\opentelemetry\proto\common\v1\Common.cs (4)
343if (HasStringValue) hash ^= StringValue.GetHashCode(); 1121if (Key.Length != 0) hash ^= Key.GetHashCode(); 1404if (Name.Length != 0) hash ^= Name.GetHashCode(); 1405if (Version.Length != 0) hash ^= Version.GetHashCode();
artifacts\obj\Stress.TelemetryService\Debug\net8.0\opentelemetry\proto\logs\v1\Logs.cs (3)
467if (SchemaUrl.Length != 0) hash ^= SchemaUrl.GetHashCode(); 751if (SchemaUrl.Length != 0) hash ^= SchemaUrl.GetHashCode(); 1198if (SeverityText.Length != 0) hash ^= SeverityText.GetHashCode();
artifacts\obj\Stress.TelemetryService\Debug\net8.0\opentelemetry\proto\metrics\v1\Metrics.cs (5)
567if (SchemaUrl.Length != 0) hash ^= SchemaUrl.GetHashCode(); 851if (SchemaUrl.Length != 0) hash ^= SchemaUrl.GetHashCode(); 1324if (Name.Length != 0) hash ^= Name.GetHashCode(); 1325if (Description.Length != 0) hash ^= Description.GetHashCode(); 1326if (Unit.Length != 0) hash ^= Unit.GetHashCode();
artifacts\obj\Stress.TelemetryService\Debug\net8.0\opentelemetry\proto\trace\v1\Trace.cs (7)
413if (SchemaUrl.Length != 0) hash ^= SchemaUrl.GetHashCode(); 697if (SchemaUrl.Length != 0) hash ^= SchemaUrl.GetHashCode(); 1235if (TraceState.Length != 0) hash ^= TraceState.GetHashCode(); 1237if (Name.Length != 0) hash ^= Name.GetHashCode(); 1836if (Name.Length != 0) hash ^= Name.GetHashCode(); 2174if (TraceState.Length != 0) hash ^= TraceState.GetHashCode(); 2481if (Message.Length != 0) hash ^= Message.GetHashCode();
System.CodeDom (1)
System\CodeDom\Compiler\CompilerInfo.cs (1)
86public override int GetHashCode() => _codeDomProviderTypeName.GetHashCode();
System.ComponentModel.Annotations (2)
System\ComponentModel\DataAnnotations\UIHintAttribute.cs (2)
113return a.GetHashCode() ^ b.GetHashCode();
System.ComponentModel.Primitives (4)
System\ComponentModel\CategoryAttribute.cs (1)
140public override int GetHashCode() => Category?.GetHashCode() ?? 0;
System\ComponentModel\DescriptionAttribute.cs (1)
47public override int GetHashCode() => Description?.GetHashCode() ?? 0;
System\ComponentModel\DesignerCategoryAttribute.cs (1)
63public override int GetHashCode() => Category?.GetHashCode() ?? 0;
System\ComponentModel\DisplayNameAttribute.cs (1)
46public override int GetHashCode() => DisplayName?.GetHashCode() ?? 0;
System.ComponentModel.TypeConverter (7)
System\ComponentModel\Design\ServiceContainer.cs (1)
256public int GetHashCode(Type obj) => obj.FullName!.GetHashCode();
System\ComponentModel\MemberDescriptor.cs (4)
52_nameHash = name.GetHashCode(); 72_nameHash = _name?.GetHashCode() ?? 0; 93_nameHash = _name.GetHashCode(); 187/// Gets the hash code for the name of the member as specified in <see cref='string.GetHashCode()'/>.
System\ComponentModel\ToolboxItemAttribute.cs (1)
118return _toolboxItemTypeName.GetHashCode();
System\ComponentModel\ToolboxItemFilterAttribute.cs (1)
96return FilterString.GetHashCode();
System.Composition.Runtime (3)
System\Composition\Hosting\Core\CompositionContract.cs (3)
93hc ^= _contractName.GetHashCode(); 219result ^= kv.Key.GetHashCode(); 224result ^= sval.GetHashCode();
System.Data.Common (3)
src\libraries\Common\src\System\Data\Common\DbConnectionPoolKey.cs (1)
56return _connectionString == null ? 0 : _connectionString.GetHashCode();
System\Data\Common\ObjectStorage.cs (1)
660return unchecked(obj.Key.GetHashCode() + obj.Value.ElementName.GetHashCode());
System\Data\XmlToDatasetMap.cs (1)
27return LocalName.GetHashCode();
System.Data.Odbc (2)
Common\System\Data\ProviderBase\DbConnectionPoolIdentity.cs (1)
20_hashCode = sidString == null ? 0 : sidString.GetHashCode();
src\libraries\Common\src\System\Data\Common\DbConnectionPoolKey.cs (1)
56return _connectionString == null ? 0 : _connectionString.GetHashCode();
System.Diagnostics.DiagnosticSource (3)
System\Diagnostics\Activity.cs (2)
1953return ToHexString().GetHashCode(); 2147return ToHexString().GetHashCode();
System\Diagnostics\Metrics\StringSequence.cs (1)
18public override int GetHashCode() => Value1.GetHashCode();
System.Drawing.Common.Tests (1)
System\Drawing\FontFamilyTests.cs (1)
158Assert.Equal(fontFamily.GetName(0).GetHashCode(), fontFamily.GetHashCode());
System.Drawing.Primitives (1)
System\Drawing\Color.cs (1)
599return name.GetHashCode();
System.IO.Packaging (1)
System\IO\Packaging\ZipPackage.cs (1)
753return extension.ToUpperInvariant().GetHashCode();
System.Linq.Expressions (1)
System\Dynamic\ExpandoClass.cs (1)
52int hashCode = _hashCode ^ newKey.GetHashCode();
System.Net.Http (3)
System\Net\Http\Headers\AuthenticationHeaderValue.cs (1)
90result ^= _parameter.GetHashCode();
System\Net\Http\Headers\NameValueHeaderValue.cs (1)
72return nameHashCode ^ _value.GetHashCode();
System\Net\Http\Headers\ProductInfoHeaderValue.cs (1)
77return _comment.GetHashCode();
System.Net.HttpListener (1)
System\Net\Managed\ListenerPrefix.cs (1)
95return _original.GetHashCode();
System.Net.Sockets (1)
System\Net\Sockets\UnixDomainSocketEndPoint.cs (1)
144public override int GetHashCode() => _path.GetHashCode();
System.ObjectModel (1)
System\ComponentModel\TypeConverterAttribute.cs (1)
68public override int GetHashCode() => ConverterTypeName.GetHashCode();
System.Private.CoreLib (16)
src\libraries\System.Private.CoreLib\src\System\ApplicationId.cs (1)
82Name.GetHashCode() ^ Version.GetHashCode();
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\EqualityComparer.cs (1)
300public override int GetHashCode([DisallowNull] string obj) => obj?.GetHashCode() ?? 0;
src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.cs (1)
1519public override int GetHashCode() => Name.GetHashCode();
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureInfo.cs (1)
655return Name.GetHashCode() + CompareInfo.GetHashCode();
src\libraries\System.Private.CoreLib\src\System\Globalization\RegionInfo.cs (1)
190public override int GetHashCode() => Name.GetHashCode();
src\libraries\System.Private.CoreLib\src\System\Globalization\StringInfo.cs (1)
36public override int GetHashCode() => _str.GetHashCode();
src\libraries\System.Private.CoreLib\src\System\Globalization\TextInfo.cs (1)
498public override int GetHashCode() => CultureName.GetHashCode();
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\TypeMapLazyDictionary.cs (1)
311private static int ComputeHashCode(string key) => key.GetHashCode();
src\libraries\System.Private.CoreLib\src\System\Runtime\Versioning\FrameworkName.cs (2)
81return Identifier.GetHashCode() ^ Version.GetHashCode() ^ Profile.GetHashCode();
src\libraries\System.Private.CoreLib\src\System\StringComparer.cs (3)
379return obj.GetHashCode(); 423int hashCode = nameof(OrdinalComparer).GetHashCode(); 453return obj.GetHashCode();
src\libraries\System.Private.CoreLib\src\System\Text\DecoderReplacementFallback.cs (1)
76public override int GetHashCode() => _strDefault.GetHashCode();
src\libraries\System.Private.CoreLib\src\System\Text\EncoderReplacementFallback.cs (1)
76public override int GetHashCode() => _strDefault.GetHashCode();
src\System\Reflection\Emit\RuntimeMethodBuilder.cs (1)
387return m_strName.GetHashCode();
System.Private.DataContractSerialization (3)
System\Xml\PrefixHandle.cs (1)
251return GetString().GetHashCode();
System\Xml\StringHandle.cs (1)
292return GetString().GetHashCode();
System\Xml\UniqueId.cs (1)
338return ToString().GetHashCode();
System.Private.Uri (2)
System\Uri.cs (2)
1572return OriginalString.GetHashCode(); 1593return remoteUrl.GetHashCode();
System.Private.Windows.Core (4)
System\Reflection\Metadata\TypeNameComparer.cs (4)
62hashCode = "constructed".GetHashCode() ^ GetHashCode(obj.GetGenericTypeDefinition()); 71hashCode = obj.FullName.GetHashCode(); 76hashCode ^= info.Name.GetHashCode(); 86hashCode ^= info.CultureName.GetHashCode();
System.Private.Xml (22)
System\Xml\BinaryXml\XmlBinaryReader.cs (2)
100this.prefix.GetHashCode() ^ this.localname.GetHashCode();
System\Xml\Schema\Chameleonkey.cs (1)
47_hashCode = unchecked(targetNS.GetHashCode() + chameleonLocation.GetHashCode() +
System\Xml\Serialization\CodeIdentifiers.cs (1)
29return CultureInfo.CurrentCulture.TextInfo.ToUpper(s).GetHashCode();
System\Xml\Serialization\Compilation.cs (1)
686return ((_ns != null ? _ns.GetHashCode() : 0) ^ (_type != null ? _type.GetHashCode() : 0));
System\Xml\Serialization\ImportContext.cs (1)
176int code = hashString.GetHashCode();
System\Xml\Serialization\NameTable.cs (3)
32return (_ns == null ? "<null>".GetHashCode() : _ns.GetHashCode()) ^ (_name == null ? 0 : _name.GetHashCode());
System\Xml\Serialization\SourceInfo.cs (1)
269return (Source == null) ? 0 : Source.GetHashCode();
System\Xml\Serialization\XmlSerializer.cs (3)
1054hashCode ^= this.Mapping.Key.GetHashCode(); 1057hashCode ^= this.Mapping.ElementName.GetHashCode(); 1060hashCode ^= this.Mapping.Namespace.GetHashCode();
System\Xml\XmlQualifiedName.cs (1)
54_hash = Name.GetHashCode(); /*+ Namespace.GetHashCode()*/ // for perf reasons we are not taking ns's hashcode.
System\Xml\XPath\XPathNavigatorKeyComparer.cs (3)
45hashCode ^= nav.LocalName.GetHashCode(); 46hashCode ^= nav.Prefix.GetHashCode(); 47hashCode ^= nav.NamespaceURI.GetHashCode();
System\Xml\Xsl\QIL\QilName.cs (1)
88return _local.GetHashCode();
System\Xml\Xsl\Runtime\EarlyBoundInfo.cs (1)
67return _namespaceUri.GetHashCode();
System\Xml\Xsl\Runtime\WhitespaceRuleLookup.cs (1)
148_hashCode = localName.GetHashCode();
System\Xml\Xsl\Runtime\XmlExtensionFunction.cs (2)
117_hashCode = namespaceUri.GetHashCode() ^ name.GetHashCode() ^ ((int)flags << 16) ^ (int)numArgs;
System.Private.Xml.Linq (13)
System\Xml\Linq\XAttribute.cs (1)
687return name.GetHashCode() ^ value.GetHashCode();
System\Xml\Linq\XComment.cs (1)
130return value.GetHashCode();
System\Xml\Linq\XContainer.cs (2)
712if (s != null) return s.GetHashCode(); 723h ^= text.GetHashCode();
System\Xml\Linq\XDocumentType.cs (4)
183return _name.GetHashCode() ^ 184(_publicId != null ? _publicId.GetHashCode() : 0) ^ 185(_systemId != null ? _systemId.GetHashCode() : 0) ^ 186(_internalSubset != null ? _internalSubset.GetHashCode() : 0);
System\Xml\Linq\XName.cs (1)
26_hashCode = ns.GetHashCode() ^ localName.GetHashCode();
System\Xml\Linq\XNamespace.cs (1)
37_hashCode = namespaceName.GetHashCode();
System\Xml\Linq\XProcessingInstruction.cs (2)
156return target.GetHashCode() ^ data.GetHashCode();
System\Xml\Linq\XText.cs (1)
135return text.GetHashCode();
System.Reflection.Context (2)
System\Reflection\Context\Virtual\VirtualMethodBase.cs (1)
129return Name.GetHashCode() ^
System\Reflection\Context\Virtual\VirtualPropertyBase.cs (1)
189return _name.GetHashCode() ^
System.Reflection.MetadataLoadContext (2)
System\Reflection\TypeLoading\General\RoAssemblyName.cs (1)
70public sealed override int GetHashCode() => Name.GetHashCode();
System\Reflection\TypeLoading\Types\RoFunctionPointerType.cs (1)
106return ToString().GetHashCode();
System.Runtime.Caching (1)
System\Runtime\Caching\MemoryCacheKey.cs (1)
21_hash = key.GetHashCode();
System.Security.Cryptography (10)
src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsaAlgorithm.cs (1)
319public override int GetHashCode() => Name.GetHashCode();
src\libraries\Common\src\System\Security\Cryptography\MLDsaAlgorithm.cs (1)
137public override int GetHashCode() => Name.GetHashCode();
src\libraries\Common\src\System\Security\Cryptography\MLKemAlgorithm.cs (1)
126public override int GetHashCode() => Name.GetHashCode();
src\libraries\Common\src\System\Security\Cryptography\SlhDsaAlgorithm.cs (1)
220public override int GetHashCode() => Name.GetHashCode();
System\Security\Cryptography\CngAlgorithm.cs (1)
75return _algorithm.GetHashCode();
System\Security\Cryptography\CngAlgorithmGroup.cs (1)
76return _algorithmGroup.GetHashCode();
System\Security\Cryptography\CngKeyBlobFormat.cs (1)
76return _format.GetHashCode();
System\Security\Cryptography\CngProperty.cs (1)
87int hashCode = Name.GetHashCode() ^ Options.GetHashCode();
System\Security\Cryptography\CngProvider.cs (1)
73return _provider.GetHashCode();
System\Security\Cryptography\HashAlgorithmName.cs (1)
111return _name == null ? 0 : _name.GetHashCode();
System.Security.Cryptography.Cose (1)
src\libraries\Common\src\System\HashCodeRandomization.cs (1)
22return value.GetHashCode();
System.Security.Permissions (2)
System\Security\Permissions\IDRole.cs (2)
52(ID == null ? 0 : ID.GetHashCode()) + 53(Role == null ? 0 : Role.GetHashCode()));
System.ServiceModel.Http (1)
System\ServiceModel\Channels\WebSocketTransportSettings.cs (1)
161hashcode ^= SubProtocol.ToLowerInvariant().GetHashCode();
System.ServiceModel.Primitives (6)
System\IdentityModel\Claims\ClaimComparer.cs (2)
183return claim.ClaimType.GetHashCode() ^ claim.Right.GetHashCode()
System\ServiceModel\Channels\AddressHeader.cs (1)
114return GetComparableForm().GetHashCode();
System\ServiceModel\Description\MetadataConversionError.cs (1)
34return Message.GetHashCode();
System\ServiceModel\Description\ServiceReflector.cs (1)
347return EncodedName.GetHashCode();
System\ServiceModel\Dispatcher\OperationFormatter.cs (1)
972return obj.Name.GetHashCode();
System.Text.Json (1)
System\Text\Json\JsonEncodedText.cs (1)
190=> _value == null ? 0 : _value.GetHashCode();
System.Text.Json.SourceGeneration (1)
src\libraries\Common\src\SourceGenerators\TypeRef.cs (1)
40public override int GetHashCode() => FullyQualifiedName.GetHashCode();
System.Text.RegularExpressions (1)
System\Text\RegularExpressions\Regex.Cache.cs (1)
307_pattern.GetHashCode() ^ (int)_options;
System.Threading.RateLimiting (1)
System\Threading\RateLimiting\MetadataName.T.cs (1)
39return _name.GetHashCode();
System.Windows.Forms (1)
System\Windows\Forms\ComponentModel\COM2Interop\Com2TypeInfoProcessor.PropInfo.cs (1)
36public override int GetHashCode() => Name?.GetHashCode() ?? base.GetHashCode();
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\MaskDescriptor.cs (1)
147return hash.GetHashCode();
System.Xaml (7)
System\Xaml\AttachableMemberIdentifier.cs (1)
68int b = memberName is null ? 0 : memberName.GetHashCode();
System\Xaml\Schema\XamlDirective.cs (2)
65int result = (Name is null) ? 0 : Name.GetHashCode(); 70result ^= ns[i].GetHashCode();
System\Xaml\Schema\XamlValueConverter.cs (1)
118int result = Name.GetHashCode();
System\Xaml\XamlMember.cs (1)
1046return (Name is null ? 0 : Name.GetHashCode()) ^ (int)_memberType ^ DeclaringType.GetHashCode();
System\Xaml\XamlType.cs (2)
1844int result = _name.GetHashCode(); 1847result ^= _namespaces[0].GetHashCode();
Test.Utilities (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeGeneration\ParameterName.cs (1)
70=> NameBasedOnArgument.GetHashCode();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\Section.cs (1)
182Text.GetHashCode()));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
206Hash.Combine(Name.GetHashCode(),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (1)
78=> ConfigName.GetHashCode();
Text.Analyzers (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeGeneration\ParameterName.cs (1)
70=> NameBasedOnArgument.GetHashCode();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\Section.cs (1)
182Text.GetHashCode()));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
206Hash.Combine(Name.GetHashCode(),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (1)
78=> ConfigName.GetHashCode();
UIAutomationTypes (1)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\NativeMethodsCLR.cs (1)
89return this.ToString().GetHashCode();
xunit.console (1)
common\AssemblyResolution\Microsoft.DotNet.PlatformAbstractions\HashCodeCombiner.cs (1)
33var hashCode = (s != null) ? s.GetHashCode() : 0;