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