Implemented interface member:
method
Equals
System.Collections.Generic.IEqualityComparer<T>.Equals(T, T)
4 overrides of Equals
mscorlib (4)
system\stringcomparer.cs (4)
171public override bool Equals(string x, string y) { 268public override bool Equals(string x, string y) { 340public override bool Equals(string x, string y) { 416public override bool Equals(string x, string y) {
285 references to Equals
mscorlib (6)
system\AppDomainSetup.cs (3)
583if(StringComparer.OrdinalIgnoreCase.Equals("NetFx40_Legacy20SortingBehavior", str)) { 591if(StringComparer.OrdinalIgnoreCase.Equals("NetFx45_Legacy40SortingBehavior", str)) { 601if(StringComparer.OrdinalIgnoreCase.Equals("UseRandomizedStringHashAlgorithm", str)) {
system\security\principal\windowsidentity.cs (2)
1401if (!foundPrimaryGroupSid && StringComparer.Ordinal.Equals( groupSid.Value, primaryGroupSid.Value)) 1412if (!foundPrimaryGroupSid && StringComparer.Ordinal.Equals( groupSid.Value, primaryGroupSid.Value))
system\stringcomparer.cs (1)
106return Equals(sa, sb);
System.Activities.Core.Presentation (1)
System\Activities\Core\Presentation\DynamicActivityPropertyChooserViewModel.cs (1)
116if (StringComparer.Ordinal.Equals(this.SelectedPropertyName, property.Name))
System.Activities.Presentation (4)
System.Activities.Presentation\System\Activities\Presentation\DynamicActivityPropertyUtilities.cs (1)
19if (StringComparer.Ordinal.Equals(property.Name, propertyName))
System.Activities.Presentation\System\Activities\Presentation\PropertyReferenceUtilities.cs (2)
25if (StringComparer.Ordinal.Equals(reference.TargetProperty, targetProperty)) 46if (StringComparer.Ordinal.Equals(reference.TargetProperty, targetProperty))
System.Activities.Presentation\System\Activities\Presentation\View\TypeBrowser.xaml.cs (1)
589if (lastNamespace == null || !StringComparer.OrdinalIgnoreCase.Equals(lastNamespace.DisplayName, type.Namespace))
System.Data (38)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TypeBrowser.xaml.cs (1)
589if (lastNamespace == null || !StringComparer.OrdinalIgnoreCase.Equals(lastNamespace.DisplayName, type.Namespace))
fx\src\data\System\Data\Common\DbConnectionStringBuilder.cs (2)
414if (StringComparer.OrdinalIgnoreCase.Equals(DbConnectionStringKeywords.Password, keyword) || 415StringComparer.OrdinalIgnoreCase.Equals(DbConnectionStringSynonyms.Pwd, keyword)) {
fx\src\data\System\Data\Common\DbConnectionStringCommon.cs (29)
248if (StringComparer.OrdinalIgnoreCase.Equals(svalue, "true") || StringComparer.OrdinalIgnoreCase.Equals(svalue, "yes")) 250else if (StringComparer.OrdinalIgnoreCase.Equals(svalue, "false") || StringComparer.OrdinalIgnoreCase.Equals(svalue, "no")) 255if (StringComparer.OrdinalIgnoreCase.Equals(tmp, "true") || StringComparer.OrdinalIgnoreCase.Equals(tmp, "yes")) 257else if (StringComparer.OrdinalIgnoreCase.Equals(tmp, "false") || StringComparer.OrdinalIgnoreCase.Equals(tmp, "no")) 278if (StringComparer.OrdinalIgnoreCase.Equals(svalue, "sspi") || StringComparer.OrdinalIgnoreCase.Equals(svalue, "true") || StringComparer.OrdinalIgnoreCase.Equals(svalue, "yes")) 280else if (StringComparer.OrdinalIgnoreCase.Equals(svalue, "false") || StringComparer.OrdinalIgnoreCase.Equals(svalue, "no")) 285if (StringComparer.OrdinalIgnoreCase.Equals(tmp, "sspi") || StringComparer.OrdinalIgnoreCase.Equals(tmp, "true") || StringComparer.OrdinalIgnoreCase.Equals(tmp, "yes")) 287else if (StringComparer.OrdinalIgnoreCase.Equals(tmp, "false") || StringComparer.OrdinalIgnoreCase.Equals(tmp, "no")) 336if (StringComparer.OrdinalIgnoreCase.Equals(value, PoolBlockingPeriodAutoString)) 341else if (StringComparer.OrdinalIgnoreCase.Equals(value, PoolBlockingPeriodAlwaysBlockString)) 346else if (StringComparer.OrdinalIgnoreCase.Equals(value, PoolBlockingPeriodNeverBlockString)) 471if (StringComparer.OrdinalIgnoreCase.Equals(value, ApplicationIntentReadOnlyString)) 476else if (StringComparer.OrdinalIgnoreCase.Equals(value, ApplicationIntentReadWriteString)) 598if (StringComparer.InvariantCultureIgnoreCase.Equals(value, SqlPasswordString)) 603else if (StringComparer.InvariantCultureIgnoreCase.Equals(value, ActiveDirectoryPasswordString)) 608else if (StringComparer.InvariantCultureIgnoreCase.Equals(value, ActiveDirectoryIntegratedString)) 613else if (StringComparer.InvariantCultureIgnoreCase.Equals(value, ActiveDirectoryInteractiveString)) 639if (StringComparer.InvariantCultureIgnoreCase.Equals(value, ColumnEncryptionSettingEnabledString)) { 643else if (StringComparer.InvariantCultureIgnoreCase.Equals(value, ColumnEncryptionSettingDisabledString)) {
fx\src\data\System\Data\OleDb\OledbConnectionStringbuilder.cs (2)
230if (StringComparer.OrdinalIgnoreCase.Equals(s, keyword)) { 247if (StringComparer.OrdinalIgnoreCase.Equals(s, keyword)) {
fx\src\data\System\Data\SqlClient\SqlConnectionStringBuilder.cs (4)
1241if (StringComparer.OrdinalIgnoreCase.Equals(svalue, NamedPipes)) { 1244else if (StringComparer.OrdinalIgnoreCase.Equals(svalue, SharedMemory)) { 1247else if (StringComparer.OrdinalIgnoreCase.Equals(svalue, TCPIP)) { 1250else if (StringComparer.OrdinalIgnoreCase.Equals(svalue, VIA)) {
System.Data.Entity (7)
System\Data\Common\EntitySql\SemanticResolver.cs (1)
625Debug.Assert(this.NameComparer.Equals(name, member.Name), "this.NameComparer.Equals(name, member.Name)");
System\Data\Common\EntitySql\TypeResolver.cs (2)
72return _stringComparer.Equals(x.Name, y.Name); 387Debug.Assert(_parserOptions.NameComparer.Equals(name, member.Name), "_parserOptions.NameComparer.Equals(name, member.Name)");
System\Data\Common\EntityUtil.cs (2)
1523if (!StringComparer.Ordinal.Equals(containerName1, containerName2) || 1524!StringComparer.Ordinal.Equals(setName1, setName2))
System\Data\Common\Utils\TrailingSpaceComparer.cs (1)
57return StringComparer.OrdinalIgnoreCase.Equals(NormalizeString(x), NormalizeString(y));
System\Data\Objects\ObjectContext.cs (1)
2847if (StringComparer.OrdinalIgnoreCase.Equals(parameters[i].Name, parameterName))
System.Data.Entity.Design (1)
System\Data\EntityModel\Emitters\Utils.cs (1)
213if (StringComparer.OrdinalIgnoreCase.Equals(name, "id"))
System.Data.Services (1)
System\Data\Services\HttpContextServiceHost.cs (1)
401if (key != null && StringComparer.OrdinalIgnoreCase.Equals(key.Trim(), item))
System.Data.Services.Design (1)
System\Data\EntityModel\Emitters\Utils.cs (1)
351if (StringComparer.OrdinalIgnoreCase.Equals(propertyName, "id"))
System.IdentityModel (196)
System\IdentityModel\Claims\AuthenticationTypeMaps.cs (2)
70if (StringComparer.Ordinal.Equals( normalizedAuthenticationMethod, mapping.Normalized ) ) 87if ( StringComparer.Ordinal.Equals( unnormalizedAuthenticationMethod, mapping.Unnormalized ) )
System\IdentityModel\Claims\ClaimComparer.cs (1)
279if (StringComparer.Ordinal.Equals(dn1.Name, dn2.Name))
System\IdentityModel\Claims\ClaimsConversionHelper.cs (10)
118if (StringComparer.Ordinal.Equals(claim.ClaimType, ClaimTypes.Sid)) 139if (StringComparer.Ordinal.Equals(claim.ClaimType, ClaimTypes.Sid) && claim.Resource is SecurityIdentifier) 151else if (StringComparer.Ordinal.Equals(claim.ClaimType, ClaimTypes.Email) && claim.Resource is MailAddress) 156else if (StringComparer.Ordinal.Equals(claim.ClaimType, ClaimTypes.Thumbprint) && claim.Resource is byte[]) 162else if (StringComparer.Ordinal.Equals(claim.ClaimType, ClaimTypes.Hash) && claim.Resource is byte[]) 168else if (StringComparer.Ordinal.Equals(claim.ClaimType, ClaimTypes.NameIdentifier) && claim.Resource is SamlNameIdentifierClaimResource) 183else if (StringComparer.Ordinal.Equals(claim.ClaimType, ClaimTypes.X500DistinguishedName) && claim.Resource is X500DistinguishedName) 189else if (StringComparer.Ordinal.Equals(claim.ClaimType, ClaimTypes.Uri) && claim.Resource is Uri) 194else if (StringComparer.Ordinal.Equals(claim.ClaimType, ClaimTypes.Rsa) && claim.Resource is RSA) 200else if (StringComparer.Ordinal.Equals(claim.ClaimType, ClaimTypes.DenyOnlySid) && claim.Resource is SecurityIdentifier)
System\IdentityModel\Claims\ClaimsHelper.cs (1)
59if (StringComparer.Ordinal.Equals(ClaimTypes.Upn, claim.Type))
System\IdentityModel\Claims\X509CertificateClaimSet.cs (1)
116else if (StringComparer.OrdinalIgnoreCase.Equals(this.certificate.SubjectName.Name, this.certificate.IssuerName.Name))
System\IdentityModel\Configuration\IdentityConfiguration.cs (1)
450StringComparer.Ordinal.Equals(handlerElementCollection.Name, ConfigurationStrings.DefaultConfigurationElementName))
System\IdentityModel\Configuration\IdentityConfigurationElementCollection.cs (1)
61if (!StringComparer.Ordinal.Equals(name, ConfigurationStrings.DefaultConfigurationElementName) && result == null)
System\IdentityModel\Metadata\MetadataSerializer.cs (13)
195if (StringComparer.Ordinal.Equals(conactType, "unspecified")) 199else if (StringComparer.Ordinal.Equals(conactType, "administrative")) 203else if (StringComparer.Ordinal.Equals(conactType, "billing")) 207else if (StringComparer.Ordinal.Equals(conactType, "other")) 211else if (StringComparer.Ordinal.Equals(conactType, "support")) 215else if (StringComparer.Ordinal.Equals(conactType, "technical")) 230else if (StringComparer.Ordinal.Equals(keyType, "encryption")) 234else if (StringComparer.Ordinal.Equals(keyType, "signing")) 569if (!StringComparer.Ordinal.Equals(entity.FederationId, resultEntityGroup.Name)) 754else if (!StringComparer.Ordinal.Equals(ns, FederationMetadataConstants.Namespace)) 758else if (StringComparer.Ordinal.Equals(xsiType, prefix + ":" + FederationMetadataConstants.Elements.ApplicationServiceType)) 762else if (StringComparer.Ordinal.Equals(xsiType, prefix + ":" + FederationMetadataConstants.Elements.SecurityTokenServiceType)) 2176if (!StringComparer.Ordinal.Equals(entity.FederationId, entitiesDescriptor.Name))
System\IdentityModel\Protocols\WSTrust\RequestSecurityTokenResponse.cs (1)
53if (message.KeySizeInBits > 0 && StringComparer.Ordinal.Equals(message.KeyType, KeyTypes.Symmetric))
System\IdentityModel\Protocols\WSTrust\WSTrust13RequestSerializer.cs (3)
212if (StringComparer.Ordinal.Equals(elementName, WSTrust13Constants.ElementNames.SecondaryParameters)) 243if (StringComparer.Ordinal.Equals(elementName, WSTrust13Constants.ElementNames.KeyWrapAlgorithm)) 249if (StringComparer.Ordinal.Equals(elementName, WSTrust13Constants.ElementNames.ValidateTarget))
System\IdentityModel\Protocols\WSTrust\WSTrust13ResponseSerializer.cs (1)
191if (StringComparer.Ordinal.Equals(elementName, WSTrust13Constants.ElementNames.KeyWrapAlgorithm))
System\IdentityModel\Protocols\WSTrust\WSTrustConstantsAdapter.cs (2)
107if (StringComparer.Ordinal.Equals(ns, WSTrustFeb2005Constants.NamespaceURI)) 111else if (StringComparer.Ordinal.Equals(ns, WSTrust13Constants.NamespaceURI))
System\IdentityModel\Protocols\WSTrust\WSTrustRequestSerializer.cs (2)
80if ((StringComparer.Ordinal.Equals(requestSecurityToken.RequestType, RequestTypes.Issue) || requestSecurityToken.RequestType == null) && 81StringComparer.Ordinal.Equals(requestSecurityToken.KeyType, KeyTypes.Asymmetric) &&
System\IdentityModel\Protocols\WSTrust\WSTrustSerializationHelper.cs (71)
212if (!StringComparer.Ordinal.Equals(rst.Claims.Dialect, WSAuthorizationConstants.Dialect)) 911if (StringComparer.Ordinal.Equals(elementName, WSPolicyConstants.ElementNames.AppliesTo)) 918if (StringComparer.Ordinal.Equals(elementName, trustConstants.Elements.Claims)) 943if (StringComparer.Ordinal.Equals(claims.Dialect, WSAuthorizationConstants.Dialect)) 960if (StringComparer.Ordinal.Equals(elementName, trustConstants.Elements.ComputedKeyAlgorithm)) 966if (StringComparer.Ordinal.Equals(elementName, trustConstants.Elements.BinaryExchange)) 972if (StringComparer.Ordinal.Equals(elementName, trustConstants.Elements.Issuer)) 978if (StringComparer.Ordinal.Equals(elementName, trustConstants.Elements.SignWith)) 989if (StringComparer.Ordinal.Equals(elementName, trustConstants.Elements.EncryptWith)) 1000if (StringComparer.Ordinal.Equals(elementName, trustConstants.Elements.Entropy)) 1013if (StringComparer.Ordinal.Equals(elementName, trustConstants.Elements.KeySize)) 1019if (StringComparer.Ordinal.Equals(elementName, trustConstants.Elements.KeyType)) 1025if (StringComparer.Ordinal.Equals(elementName, trustConstants.Elements.Lifetime)) 1032if (StringComparer.Ordinal.Equals(elementName, trustConstants.Elements.RenewTarget)) 1055if (StringComparer.Ordinal.Equals(elementName, trustConstants.Elements.OnBehalfOf)) 1064if (StringComparer.Ordinal.Equals(elementName, WSTrust14Constants.ElementNames.ActAs)) 1073if (StringComparer.Ordinal.Equals(elementName, trustConstants.Elements.RequestType)) 1084if (StringComparer.Ordinal.Equals(elementName, trustConstants.Elements.TokenType)) 1095if (StringComparer.Ordinal.Equals(elementName, trustConstants.Elements.UseKey)) 1117if (StringComparer.Ordinal.Equals(elementName, trustConstants.Elements.AuthenticationType)) 1128if (StringComparer.Ordinal.Equals(elementName, trustConstants.Elements.EncryptionAlgorithm)) 1139if (StringComparer.Ordinal.Equals(elementName, trustConstants.Elements.CanonicalizationAlgorithm)) 1150if (StringComparer.Ordinal.Equals(elementName, trustConstants.Elements.SignatureAlgorithm)) 1161if (StringComparer.Ordinal.Equals(elementName, trustConstants.Elements.Encryption)) 1180if (StringComparer.Ordinal.Equals(elementName, trustConstants.Elements.ProofEncryption)) 1199if (StringComparer.Ordinal.Equals(elementName, trustConstants.Elements.DelegateTo)) 1218if (StringComparer.Ordinal.Equals(elementName, trustConstants.Elements.Forwardable)) 1231if (StringComparer.Ordinal.Equals(elementName, trustConstants.Elements.Delegatable)) 1244if (StringComparer.Ordinal.Equals(elementName, trustConstants.Elements.AllowPostdating)) 1251if (StringComparer.Ordinal.Equals(elementName, trustConstants.Elements.Renewing)) 1266if (StringComparer.Ordinal.Equals(elementName, trustConstants.Elements.CancelTarget)) 1290if (StringComparer.Ordinal.Equals(elementName, trustConstants.Elements.Participants)) 1319if (StringComparer.Ordinal.Equals(elementName, WSAuthorizationConstants.Elements.AdditionalContext)) 1868if (StringComparer.Ordinal.Equals(elementName, trustConstants.Elements.Entropy)) 1881if (StringComparer.Ordinal.Equals(elementName, trustConstants.Elements.KeySize)) 1887if (StringComparer.Ordinal.Equals(elementName, trustConstants.Elements.Lifetime)) 1894if (StringComparer.Ordinal.Equals(elementName, WSPolicyConstants.ElementNames.AppliesTo)) 1901if (StringComparer.Ordinal.Equals(elementName, trustConstants.Elements.RequestedSecurityToken)) 1920if (StringComparer.Ordinal.Equals(elementName, trustConstants.Elements.RequestedProofToken)) 1944if (StringComparer.Ordinal.Equals(elementName, trustConstants.Elements.RequestedAttachedReference)) 1952if (StringComparer.Ordinal.Equals(elementName, trustConstants.Elements.RequestedUnattachedReference)) 1960if (StringComparer.Ordinal.Equals(elementName, trustConstants.Elements.TokenType)) 1971if (StringComparer.Ordinal.Equals(elementName, trustConstants.Elements.RequestType)) 1982if (StringComparer.Ordinal.Equals(elementName, trustConstants.Elements.KeyType)) 1988if (StringComparer.Ordinal.Equals(elementName, trustConstants.Elements.AuthenticationType)) 1999if (StringComparer.Ordinal.Equals(elementName, trustConstants.Elements.EncryptionAlgorithm)) 2010if (StringComparer.Ordinal.Equals(elementName, trustConstants.Elements.CanonicalizationAlgorithm)) 2021if (StringComparer.Ordinal.Equals(elementName, trustConstants.Elements.SignatureAlgorithm)) 2032if (StringComparer.Ordinal.Equals(elementName, trustConstants.Elements.SignWith)) 2043if (StringComparer.Ordinal.Equals(elementName, trustConstants.Elements.EncryptWith)) 2054if (StringComparer.Ordinal.Equals(elementName, trustConstants.Elements.BinaryExchange)) 2060if (StringComparer.Ordinal.Equals(elementName, trustConstants.Elements.Status)) 2066if (StringComparer.Ordinal.Equals(elementName, trustConstants.Elements.RequestedTokenCancelled)) 2100if (StringComparer.Ordinal.Equals(computedKeyAlgorithm, trustConstants.ComputedKeyAlgorithm.Psha1)) 2131if (StringComparer.Ordinal.Equals(computedKeyAlgorithm, ComputedKeyAlgorithms.Psha1)) 2489if (StringComparer.Ordinal.Equals(requestType, RequestTypes.Issue) || StringComparer.Ordinal.Equals(requestType, trustConstants.RequestTypes.Issue)) 2493else if (StringComparer.Ordinal.Equals(requestType, RequestTypes.Renew) || StringComparer.Ordinal.Equals(requestType, trustConstants.RequestTypes.Renew)) 2497else if (StringComparer.Ordinal.Equals(requestType, RequestTypes.Cancel) || StringComparer.Ordinal.Equals(requestType, trustConstants.RequestTypes.Cancel)) 2501else if (StringComparer.Ordinal.Equals(requestType, RequestTypes.Validate) || StringComparer.Ordinal.Equals(requestType, trustConstants.RequestTypes.Validate)) 2758if (StringComparer.Ordinal.Equals(keyType, KeyTypes.Asymmetric) || StringComparer.Ordinal.Equals(keyType, trustConstants.KeyTypes.Asymmetric)) 2762else if (StringComparer.Ordinal.Equals(keyType, KeyTypes.Symmetric) || StringComparer.Ordinal.Equals(keyType, trustConstants.KeyTypes.Symmetric)) 2766else if (StringComparer.Ordinal.Equals(keyType, KeyTypes.Bearer) || StringComparer.Ordinal.Equals(keyType, trustConstants.KeyTypes.Bearer)) 2889if (StringComparer.Ordinal.Equals(dialect, WSAuthorizationConstants.Dialect)) 2901if (StringComparer.Ordinal.Equals(dialect, WSAuthorizationConstants.Dialect))
System\IdentityModel\RsaSignatureCookieTransform.cs (3)
348return (StringComparer.OrdinalIgnoreCase.Equals(HashName, "SHA256") 349|| StringComparer.OrdinalIgnoreCase.Equals(HashName, "SHA-256") 350|| StringComparer.OrdinalIgnoreCase.Equals(HashName, "System.Security.Cryptography.SHA256"));
System\IdentityModel\SecurityTokenService.cs (9)
354if (StringComparer.Ordinal.Equals(keyType, KeyTypes.Asymmetric)) 366else if (StringComparer.Ordinal.Equals(keyType, KeyTypes.Symmetric)) 371if (request.ComputedKeyAlgorithm != null && !StringComparer.Ordinal.Equals(request.ComputedKeyAlgorithm, ComputedKeyAlgorithms.Psha1)) 408else if (StringComparer.Ordinal.Equals(keyType, KeyTypes.Bearer)) 1077if (StringComparer.Ordinal.Equals(request.KeyType, KeyTypes.Bearer) && request.KeySizeInBits.HasValue && (request.KeySizeInBits.Value != 0)) 1090if (StringComparer.Ordinal.Equals(request.KeyType, KeyTypes.Symmetric)) 1111return (StringComparer.Ordinal.Equals(keyType, KeyTypes.Symmetric) 1112|| StringComparer.Ordinal.Equals(keyType, KeyTypes.Asymmetric) 1113|| StringComparer.Ordinal.Equals(keyType, KeyTypes.Bearer));
System\IdentityModel\SignedXml.cs (1)
1145if (StringComparer.OrdinalIgnoreCase.Equals(uri, String.Empty))
System\IdentityModel\Tokens\ConfigurationBasedIssuerNameRegistry.cs (6)
67if (!StringComparer.Ordinal.Equals(customConfigElement.LocalName, ConfigurationStrings.TrustedIssuers)) 77if (StringComparer.Ordinal.Equals(childElement.LocalName, ConfigurationStrings.Add)) 97else if (StringComparer.Ordinal.Equals(childElement.LocalName, ConfigurationStrings.Remove)) 99if (childElement.Attributes.Count != 1 || !StringComparer.Ordinal.Equals(childElement.Attributes[0].LocalName, ConfigurationStrings.Thumbprint)) 112else if (StringComparer.Ordinal.Equals(childElement.LocalName, ConfigurationStrings.Clear)) 209return StringComparer.OrdinalIgnoreCase.Equals(x, y);
System\IdentityModel\Tokens\Saml2AssertionKeyIdentifierClause.cs (2)
69if (null != saml2Clause && StringComparer.Ordinal.Equals(assertionId, saml2Clause.Id)) 84if (null != wcfClause && StringComparer.Ordinal.Equals(assertionId, wcfClause.AssertionId))
System\IdentityModel\Tokens\Saml2Id.cs (1)
77return (null != other) && StringComparer.Ordinal.Equals(this.value, other.Value);
System\IdentityModel\Tokens\Saml2SecurityTokenHandler.cs (9)
589if (!StringComparer.Ordinal.Equals(TokenProfile11ValueType, value)) 1090if (!StringComparer.Ordinal.Equals(ClaimsIdentity.DefaultIssuer, claim.OriginalIssuer)) 1830if (StringComparer.Ordinal.Equals(attribute.Name, ClaimTypes.Actor)) 2663if (!StringComparer.Ordinal.Equals(assertion.Version, version)) 3224if (!StringComparer.Ordinal.Equals(data.AttributeValueXsiType, ClaimValueTypes.String)) 3874else if (StringComparer.Ordinal.Equals(SamlAccessDecision.Permit.ToString(), value)) 3878else if (StringComparer.Ordinal.Equals(SamlAccessDecision.Deny.ToString(), value)) 3882else if (StringComparer.Ordinal.Equals(SamlAccessDecision.Indeterminate.ToString(), value)) 4640StringComparer.Ordinal.Equals(nameIdentifier.Format.AbsoluteUri, Saml2Constants.NameIdentifierFormats.Entity.AbsoluteUri))
System\IdentityModel\Tokens\SamlSecurityTokenHandler.cs (8)
713if (!StringComparer.Ordinal.Equals(ClaimsIdentity.DefaultIssuer, claim.OriginalIssuer)) 1258else if (StringComparer.Ordinal.Equals(attr.Name, SamlConstants.ElementNames.NameIdentifier)) 1292if (StringComparer.Ordinal.Equals(ClaimTypes.NameIdentifier, claimType) && GetClaim(subject, ClaimTypes.NameIdentifier) != null) 1324if (StringComparer.Ordinal.Equals(claimType, claim.Type)) 2788if (SamlAttribute != null && !StringComparer.Ordinal.Equals(SamlAttribute.AttributeValueXsiType, ClaimValueTypes.String)) 3558if (!StringComparer.Ordinal.Equals(subject.Name, requiredSubjectName) || 3559!StringComparer.Ordinal.Equals(subject.NameFormat, requiredSubjectFormat) || 3560!StringComparer.Ordinal.Equals(subject.NameQualifier, requiredSubjectQualifier))
System\IdentityModel\Tokens\SamlSecurityTokenRequirement.cs (19)
69if (StringComparer.OrdinalIgnoreCase.Equals(attribute.LocalName, ConfigurationStrings.MapToWindows)) 78else if (StringComparer.OrdinalIgnoreCase.Equals(attribute.LocalName, ConfigurationStrings.IssuerCertificateValidator)) 82else if (StringComparer.OrdinalIgnoreCase.Equals(attribute.LocalName, ConfigurationStrings.IssuerCertificateRevocationMode)) 88if (StringComparer.OrdinalIgnoreCase.Equals(revocationModeString, ConfigurationStrings.X509RevocationModeNoCheck)) 93else if (StringComparer.OrdinalIgnoreCase.Equals(revocationModeString, ConfigurationStrings.X509RevocationModeOffline)) 98else if (StringComparer.OrdinalIgnoreCase.Equals(revocationModeString, ConfigurationStrings.X509RevocationModeOnline)) 108else if (StringComparer.OrdinalIgnoreCase.Equals(attribute.LocalName, ConfigurationStrings.IssuerCertificateValidationMode)) 114if (StringComparer.OrdinalIgnoreCase.Equals(validationModeString, ConfigurationStrings.X509CertificateValidationModeChainTrust)) 119else if (StringComparer.OrdinalIgnoreCase.Equals(validationModeString, ConfigurationStrings.X509CertificateValidationModePeerOrChainTrust)) 124else if (StringComparer.OrdinalIgnoreCase.Equals(validationModeString, ConfigurationStrings.X509CertificateValidationModePeerTrust)) 129else if (StringComparer.OrdinalIgnoreCase.Equals(validationModeString, ConfigurationStrings.X509CertificateValidationModeNone)) 134else if (StringComparer.OrdinalIgnoreCase.Equals(validationModeString, ConfigurationStrings.X509CertificateValidationModeCustom)) 144else if (StringComparer.OrdinalIgnoreCase.Equals(attribute.LocalName, ConfigurationStrings.IssuerCertificateTrustedStoreLocation)) 150if (StringComparer.OrdinalIgnoreCase.Equals(trustedStoreLocationString, ConfigurationStrings.X509TrustedStoreLocationCurrentUser)) 155else if (StringComparer.OrdinalIgnoreCase.Equals(trustedStoreLocationString, ConfigurationStrings.X509TrustedStoreLocationLocalMachine)) 175if (StringComparer.Ordinal.Equals(childElement.LocalName, ConfigurationStrings.NameClaimType)) 177if (childElement.Attributes.Count != 1 || !StringComparer.Ordinal.Equals(childElement.Attributes[0].LocalName, ConfigurationStrings.Value)) 183else if (StringComparer.Ordinal.Equals(childElement.LocalName, ConfigurationStrings.RoleClaimType)) 185if (childElement.Attributes.Count != 1 || !StringComparer.Ordinal.Equals(childElement.Attributes[0].LocalName, ConfigurationStrings.Value))
System\IdentityModel\Tokens\SessionSecurityTokenCacheKey.cs (1)
148if (!StringComparer.Ordinal.Equals(key2.EndpointId, this.endpointId))
System\IdentityModel\Tokens\SessionSecurityTokenHandler.cs (2)
107if (!StringComparer.Ordinal.Equals(customConfigElement.LocalName, ConfigurationStrings.SessionTokenRequirement)) 121if (StringComparer.OrdinalIgnoreCase.Equals(attribute.LocalName, ConfigurationStrings.Lifetime))
System\IdentityModel\Tokens\UserNameSecurityTokenHandler.cs (1)
132if (!string.IsNullOrEmpty(type) && !StringComparer.Ordinal.Equals(type, WSSecurity10Constants.UPTokenPasswordTextValue))
System\IdentityModel\Tokens\X509SecurityTokenHandler.cs (20)
109if (!StringComparer.Ordinal.Equals(customConfigElement.LocalName, ConfigurationStrings.X509SecurityTokenHandlerRequirement)) 121if (StringComparer.OrdinalIgnoreCase.Equals(attribute.LocalName, ConfigurationStrings.MapToWindows)) 125else if (StringComparer.OrdinalIgnoreCase.Equals(attribute.LocalName, ConfigurationStrings.X509CertificateValidator)) 129else if (StringComparer.OrdinalIgnoreCase.Equals(attribute.LocalName, ConfigurationStrings.X509CertificateRevocationMode)) 135if (StringComparer.OrdinalIgnoreCase.Equals(revocationModeString, ConfigurationStrings.X509RevocationModeNoCheck)) 139else if (StringComparer.OrdinalIgnoreCase.Equals(revocationModeString, ConfigurationStrings.X509RevocationModeOffline)) 143else if (StringComparer.OrdinalIgnoreCase.Equals(revocationModeString, ConfigurationStrings.X509RevocationModeOnline)) 152else if (StringComparer.OrdinalIgnoreCase.Equals(attribute.LocalName, ConfigurationStrings.X509CertificateValidationMode)) 158if (StringComparer.OrdinalIgnoreCase.Equals(validationModeString, ConfigurationStrings.X509CertificateValidationModeChainTrust)) 162else if (StringComparer.OrdinalIgnoreCase.Equals(validationModeString, ConfigurationStrings.X509CertificateValidationModePeerOrChainTrust)) 166else if (StringComparer.OrdinalIgnoreCase.Equals(validationModeString, ConfigurationStrings.X509CertificateValidationModePeerTrust)) 170else if (StringComparer.OrdinalIgnoreCase.Equals(validationModeString, ConfigurationStrings.X509CertificateValidationModeNone)) 174else if (StringComparer.OrdinalIgnoreCase.Equals(validationModeString, ConfigurationStrings.X509CertificateValidationModeCustom)) 183else if (StringComparer.OrdinalIgnoreCase.Equals(attribute.LocalName, ConfigurationStrings.X509TrustedStoreLocation)) 189if (StringComparer.OrdinalIgnoreCase.Equals(trustedStoreLocationString, ConfigurationStrings.X509TrustedStoreLocationCurrentUser)) 193else if (StringComparer.OrdinalIgnoreCase.Equals(trustedStoreLocationString, ConfigurationStrings.X509TrustedStoreLocationLocalMachine)) 359return StringComparer.Ordinal.Equals(valueTypeUri, WSSecurity10Constants.X509TokenType); 441if (!StringComparer.Ordinal.Equals(valueTypeUri, WSSecurity10Constants.X509TokenType)) 458if (encoding == null || StringComparer.Ordinal.Equals(encoding, WSSecurity10Constants.Base64EncodingType)) 462else if (StringComparer.Ordinal.Equals(encoding, WSSecurity10Constants.HexBinaryEncodingType))
System\IdentityModel\XmlUtil.cs (4)
141&& StringComparer.Ordinal.Equals(localName, qname.Name) 142&& StringComparer.Ordinal.Equals(namespaceUri, qname.Namespace); 191else if (!(StringComparer.Ordinal.Equals(expectedTypeNamespace, declaredType.Namespace) 192&& StringComparer.Ordinal.Equals(expectedTypeName, declaredType.Name)))
System.ServiceModel (30)
System\ServiceModel\Security\ClientCredentialsSecurityTokenManager.cs (2)
679if (StringComparer.Ordinal.Equals(securitySpecification, WSTrustFeb2005Constants.NamespaceURI)) 683else if (StringComparer.Ordinal.Equals(securitySpecification, WSTrust13Constants.NamespaceURI))
System\ServiceModel\Security\FederatedSecurityTokenManager.cs (13)
142if ( StringComparer.Ordinal.Equals( tokenType, SecurityTokenTypes.UserName ) ) 152else if ( StringComparer.Ordinal.Equals( tokenType, SecurityTokenTypes.Kerberos ) ) 156else if ( StringComparer.Ordinal.Equals( tokenType, SecurityTokenTypes.Rsa ) ) 166else if ( StringComparer.Ordinal.Equals( tokenType, SecurityTokenTypes.X509Certificate ) ) 176else if ( StringComparer.Ordinal.Equals( tokenType, SecurityTokenTypes.SamlTokenProfile11 ) || 177StringComparer.Ordinal.Equals( tokenType, SecurityTokenTypes.OasisWssSamlTokenProfile11 ) ) 195else if ( StringComparer.Ordinal.Equals( tokenType, SecurityTokenTypes.Saml2TokenProfile11 ) || 196StringComparer.Ordinal.Equals( tokenType, SecurityTokenTypes.OasisWssSaml2TokenProfile11 ) ) 214else if ( StringComparer.Ordinal.Equals( tokenType, ServiceModelSecurityTokenTypes.SecureConversation ) ) 358if ( StringComparer.Ordinal.Equals( securitySpecification, WSTrustFeb2005Constants.NamespaceURI ) ) 362else if ( StringComparer.Ordinal.Equals( securitySpecification, WSTrust13Constants.NamespaceURI ) ) 366else if ( StringComparer.Ordinal.Equals( securitySpecification, WSSecureConversationFeb2005Constants.Namespace ) ) 370else if ( StringComparer.Ordinal.Equals( securitySpecification, WSSecureConversation13Constants.Namespace ) )
System\ServiceModel\Security\WSTrustServiceContract.cs (9)
1700if (StringComparer.Ordinal.Equals(portType.Name, WSTrustServiceContractConstants.Contracts.IWSTrustFeb2005Sync)) 1752else if (StringComparer.OrdinalIgnoreCase.Equals(portType.Name, WSTrustServiceContractConstants.Contracts.IWSTrust13Sync)) 1805else if (StringComparer.OrdinalIgnoreCase.Equals(portType.Name, WSTrustServiceContractConstants.Contracts.IWSTrustFeb2005Async)) 1858else if (StringComparer.OrdinalIgnoreCase.Equals(portType.Name, WSTrustServiceContractConstants.Contracts.IWSTrust13Async)) 1945if (StringComparer.Ordinal.Equals(namespaces[i].Namespace, ns)) 1993if ((schemaImport != null) && StringComparer.Ordinal.Equals(schemaImport.Namespace, ns)) 2135if (StringComparer.Ordinal.Equals(op.Name, operationName)) 2142if (StringComparer.Ordinal.Equals(message.Name, op.Messages.Input.Message.Name)) 2151else if (StringComparer.Ordinal.Equals(message.Name, op.Messages.Output.Message.Name))
System\ServiceModel\Security\WSTrustServiceHost.cs (4)
113if (StringComparer.OrdinalIgnoreCase.Equals(baseAddress.Scheme, Uri.UriSchemeHttp)) 118else if (StringComparer.OrdinalIgnoreCase.Equals(baseAddress.Scheme, Uri.UriSchemeHttps)) 123else if (StringComparer.OrdinalIgnoreCase.Equals(baseAddress.Scheme, Uri.UriSchemeNetTcp)) 127else if (StringComparer.OrdinalIgnoreCase.Equals(baseAddress.Scheme, Uri.UriSchemeNetPipe))
System\UriTemplateHelpers.cs (1)
40if (StringComparer.OrdinalIgnoreCase.Equals(queryKeys[i], queryKeyName))
System\UriTemplateLiteralPathSegment.cs (1)
102StringComparer.OrdinalIgnoreCase.Equals(this.segment, lps.segment));