24 references to Contains
Microsoft.AspNetCore.Components.Web (1)
Forms\FieldIdGenerator.cs (1)
48if (InvalidIdChars.Contains(c))
Microsoft.AspNetCore.Http.Abstractions (1)
PathString.cs (1)
100if (s_validPathChars.Contains(value[i]) || (isPercentEncodedChar = Uri.IsHexEncoding(value, i)))
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\W3CPropagator.cs (1)
482if (s_validBaggageValueChars.Contains(c))
System.Net.Mail (1)
System\Net\Mail\MailBnfHelper.cs (1)
303if (!s_charactersAllowedInTokens.Contains(data[offset]) || data[offset] == ' ')
System.Private.CoreLib (6)
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));
src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeNameParserHelpers.cs (2)
62!s_endOfFullTypeNameDelimiterChars.Contains(input[offset])) // invalid name, escapes a char that does not need escaping 67else if (s_endOfFullTypeNameDelimiterChars.Contains(c))
System.Private.Uri (7)
System\IPv6AddressHelper.cs (1)
181if (name[i] != '%' && !UriHelper.Unreserved.Contains(name[i]))
System\UriExt.cs (1)
201if (!char.IsAscii(value) || UriHelper.Unreserved.Contains(value))
System\UriHelper.cs (5)
206Debug.Assert(!noEscape.Contains('%'), "Need to treat % specially; it should be part of any escaped set"); 233Debug.Assert(!noEscape.Contains('%'), "Need to treat % specially; it should be part of any escaped set"); 253Debug.Assert(!stringToEscape.IsEmpty && !noEscape.Contains(stringToEscape[0])); 284if (!noEscape.Contains(c)) 531s_notSafeForUnescapeChars.Contains(ch);
System.Reflection.Metadata (2)
System\Reflection\Metadata\TypeNameParserHelpers.cs (2)
62!s_endOfFullTypeNameDelimiterChars.Contains(input[offset])) // invalid name, escapes a char that does not need escaping 67else if (s_endOfFullTypeNameDelimiterChars.Contains(c))
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\General\Helpers.cs (1)
124return s_charsToEscape.Contains(c);
System.Security.Cryptography (1)
System\Security\Cryptography\Base64Transforms.cs (1)
262while (!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))