12 references to ContainsAny
Microsoft.Extensions.AI.Abstractions (1)
Contents\DataUriParser.cs (1)
149
return Base64.IsValid(value) && !value.
ContainsAny
(" \t\r\n");
System.IO.Pipes (2)
System\IO\Pipes\PipeStream.Unix.cs (2)
205
if (pipeName.AsSpan().
ContainsAny
(s_invalidPathNameChars) || pipeName.EndsWith(Path.DirectorySeparatorChar))
212
if (pipeName.AsSpan().
ContainsAny
(s_invalidFileNameChars))
System.Private.CoreLib (5)
src\libraries\System.Private.CoreLib\src\System\IO\Directory.cs (1)
73
if (value is not null && value.AsSpan().
ContainsAny
(PathInternal.DirectorySeparators))
src\libraries\System.Private.CoreLib\src\System\IO\Enumeration\FileSystemEnumerableFactory.cs (1)
77
if (Path.DirectorySeparatorChar != '\\' && expression.AsSpan().
ContainsAny
(@"\""<>"))
src\libraries\System.Private.CoreLib\src\System\IO\Enumeration\FileSystemName.cs (1)
162
expressionEnd.
ContainsAny
("\"<>*?") :
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (2)
388
/// <inheritdoc cref="
ContainsAny
{T}(ReadOnlySpan{T}, ReadOnlySpan{T})"/>
392
ContainsAny
((ReadOnlySpan<T>)span, values);
System.Private.Xml (4)
System\Xml\Serialization\XmlSerializationWriter.cs (1)
416
Debug.Assert(!span.Slice(0, charsWritten).
ContainsAny
(escapeChars), "Primitive value contains illegal xml char.");
System\Xml\XmlConvert.cs (3)
411
token.AsSpan().
ContainsAny
(Crt) ||
428
token.AsSpan().
ContainsAny
(Crt) ||
483
if (str.AsSpan().
ContainsAny
(Crt))