16 references to Contains
Microsoft.AspNetCore.Http.Abstractions (1)
PathString.cs (1)
100
if (s_validPathChars.
Contains
(value[i]) || (isPercentEncodedChar = Uri.IsHexEncoding(value, i)))
System.Net.Mail (1)
System\Net\Mail\MailBnfHelper.cs (1)
303
if (!s_charactersAllowedInTokens.
Contains
(data[offset]) || data[offset] == ' ')
System.Private.CoreLib (4)
src\libraries\System.Private.CoreLib\src\System\Net\WebUtility.cs (2)
581
private static bool IsUrlSafe(char ch) => s_safeUrlChars.
Contains
(ch);
584
private static bool IsUrlSafe(byte ch) => s_safeUrlBytes.
Contains
(ch);
src\libraries\System.Private.CoreLib\src\System\Reflection\AssemblyName.cs (1)
352
else if (!UnreservedReserved.
Contains
(ch))
src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (1)
47
Debug.Assert(char.IsWhiteSpace((char)i) == sv.
Contains
((char)i));
System.Private.Uri (5)
System\UriExt.cs (1)
244
if (!char.IsAscii(value) || UriHelper.Unreserved.
Contains
(value))
System\UriHelper.cs (4)
208
Debug.Assert(!noEscape.
Contains
('%'), "Need to treat % specially; it should be part of any escaped set");
235
Debug.Assert(!noEscape.
Contains
('%'), "Need to treat % specially; it should be part of any escaped set");
255
Debug.Assert(!stringToEscape.IsEmpty && !noEscape.
Contains
(stringToEscape[0]));
286
if (!noEscape.
Contains
(c))
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\General\Helpers.cs (1)
129
return s_charsToEscape.
Contains
(c);
System.Security.Cryptography (1)
System\Security\Cryptography\Base64Transforms.cs (1)
261
while (!inputBuffer.IsEmpty && s_whiteSpace.
Contains
(inputBuffer[0]));
System.Web.HttpUtility (3)
System\Web\Util\HttpEncoder.cs (3)
419
if (s_urlSafeBytes.
Contains
(b))
450
if (!s_urlSafeBytes.
Contains
(b) && b != ' ')
493
if (s_urlSafeBytes.
Contains
((byte)ch))