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