24 references to ContainsAny
Microsoft.Extensions.FileProviders.Physical (2)
Internal\PathUtils.cs (2)
24
path.AsSpan().
ContainsAny
(_invalidFileNameChars);
27
path.AsSpan().
ContainsAny
(_invalidFilterChars);
System.CodeDom (2)
System\CodeDom\Compiler\CodeValidator.cs (2)
947
if (e.FileName.AsSpan().
ContainsAny
(s_invalidPathChars))
953
if (e.RegionText.AsSpan().
ContainsAny
(s_newLineChars))
System.Collections.Immutable (1)
System\Collections\Frozen\String\KeyAnalyzer.cs (1)
206
return s.
ContainsAny
(s_asciiLetters);
System.Configuration.ConfigurationManager (1)
System\Configuration\BaseConfigurationRecord.cs (1)
3095
if (subPath.AsSpan().
ContainsAny
(s_invalidSubPathChars))
System.Net.Http (2)
System\Net\Http\Headers\HeaderDescriptor.cs (1)
175
if (headerValue.
ContainsAny
(s_dangerousCharacterBytes))
System\Net\Http\HttpRuleParser.cs (1)
312
if (host.
ContainsAny
(s_disallowedHostChars))
System.Net.Primitives (2)
System\Net\Cookie.cs (2)
244
|| value.AsSpan().
ContainsAny
(s_reservedToNameChars))
381
m_name.AsSpan().
ContainsAny
(s_reservedToNameChars))
System.Private.CoreLib (4)
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (2)
394
/// <inheritdoc cref="
ContainsAny
{T}(ReadOnlySpan{T}, SearchValues{T})"/>
398
ContainsAny
((ReadOnlySpan<T>)span, values);
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\StringSearchValues.cs (2)
249
asciiStartUnaffectedByCaseConversion = asciiStartUnaffectedByCaseConversion && !slice.
ContainsAny
(s_asciiLetters);
496
if (value.AsSpan().
ContainsAny
(s_asciiLetters))
System.Private.Uri (4)
System\DomainNameHelper.cs (1)
206
if (asciiForm.AsSpan().
ContainsAny
(s_unsafeForNormalizedHostChars))
System\UriBuilder.cs (3)
173
if (!string.IsNullOrEmpty(value) && value.AsSpan().
ContainsAny
(s_hostReservedChars))
183
if (value.AsSpan(1, value.Length - 2).
ContainsAny
(s_hostReservedCharsExceptColon))
289
if (!input.AsSpan().
ContainsAny
(s_userInfoReservedChars))
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\General\Helpers.cs (1)
119
return identifier.AsSpan().
ContainsAny
(s_charsToEscape);
System.Security.Cryptography (2)
System\Security\Cryptography\Base64Transforms.cs (1)
244
if (inputBuffer.
ContainsAny
(s_whiteSpace))
System\Security\Cryptography\X509Certificates\X500NameEncoder.cs (1)
140
rdnValue.
ContainsAny
(s_needsQuotingChars);
System.Security.Cryptography.Xml (1)
System\Security\Cryptography\Xml\CryptoHelpers.cs (1)
69
if (name == null || name.AsSpan().
ContainsAny
(s_invalidChars))
System.Text.Json (1)
System\Text\Json\Reader\JsonReaderHelper.cs (1)
22
text.
ContainsAny
(s_specialCharacters);
System.Windows.Forms (1)
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (1)
519
if (text.AsSpan().
ContainsAny
(s_whitespace))