20 types derived from SearchValues
System.Private.CoreLib (20)
260 references to SearchValues
dotnet-dev-certs (2)
http2cat (6)
IIS.FunctionalTests (6)
IIS.LongTests (6)
IIS.NewHandler.FunctionalTests (6)
IIS.ShadowCopy.Tests (6)
IISExpress.FunctionalTests (6)
Microsoft.AspNetCore.Antiforgery (1)
Microsoft.AspNetCore.Authentication.Negotiate (1)
Microsoft.AspNetCore.Components (2)
Microsoft.AspNetCore.Components.Web (1)
Microsoft.AspNetCore.DataProtection.Abstractions (1)
Microsoft.AspNetCore.DeveloperCertificates.XPlat (2)
Microsoft.AspNetCore.Http (2)
Microsoft.AspNetCore.Http.Abstractions (2)
Microsoft.AspNetCore.Http.Connections (1)
Microsoft.AspNetCore.HttpOverrides (3)
Microsoft.AspNetCore.Mvc.Core (1)
Microsoft.AspNetCore.Mvc.Razor (1)
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Microsoft.AspNetCore.Routing (3)
Microsoft.AspNetCore.Server.HttpSys (6)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (6)
Microsoft.AspNetCore.Server.IIS (6)
Microsoft.AspNetCore.Server.Kestrel.Core (7)
Microsoft.AspNetCore.Shared.Tests (9)
Microsoft.AspNetCore.WebUtilities (1)
Microsoft.Extensions.FileProviders.Physical (2)
Microsoft.Extensions.ServiceDiscovery.Dns (1)
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (1)
Microsoft.ML.Tokenizers (2)
Microsoft.Net.Http.Headers (3)
PresentationFramework (1)
RepoTasks (2)
System.CodeDom (2)
System.Collections.Immutable (1)
System.Configuration.ConfigurationManager (1)
System.Diagnostics.DiagnosticSource (5)
System.Net.Http (7)
System.Net.HttpListener (2)
System.Net.Mail (2)
System.Net.Primitives (2)
System.Net.Quic (1)
System.Net.Security (1)
System.Net.WebSockets (1)
System.Net.WebSockets.Client (1)
System.Private.CoreLib (67)
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (30)
394/// <inheritdoc cref="ContainsAny{T}(ReadOnlySpan{T}, SearchValues{T})"/>
397public static bool ContainsAny<T>(this Span<T> span, SearchValues<T> values) where T : IEquatable<T>? =>
400/// <inheritdoc cref="ContainsAny(ReadOnlySpan{char}, SearchValues{string})"/>
403public static bool ContainsAny(this Span<char> span, SearchValues<string> values) =>
430/// <inheritdoc cref="ContainsAnyExcept{T}(ReadOnlySpan{T}, SearchValues{T})"/>
433public static bool ContainsAnyExcept<T>(this Span<T> span, SearchValues<T> values) where T : IEquatable<T>? =>
521public static bool ContainsAny<T>(this ReadOnlySpan<T> span, SearchValues<T> values) where T : IEquatable<T>?
537public static bool ContainsAny(this ReadOnlySpan<char> span, SearchValues<string> values) =>
664public static bool ContainsAnyExcept<T>(this ReadOnlySpan<T> span, SearchValues<T> values) where T : IEquatable<T>?
799public static int IndexOfAnyExcept<T>(this Span<T> span, SearchValues<T> values) where T : IEquatable<T>? =>
1306public static int IndexOfAnyExcept<T>(this ReadOnlySpan<T> span, SearchValues<T> values) where T : IEquatable<T>?
1377public static int LastIndexOfAnyExcept<T>(this Span<T> span, SearchValues<T> values) where T : IEquatable<T>? =>
1886public static int LastIndexOfAnyExcept<T>(this ReadOnlySpan<T> span, SearchValues<T> values) where T : IEquatable<T>?
2648public static int IndexOfAny<T>(this Span<T> span, SearchValues<T> values) where T : IEquatable<T>? =>
2658public static int IndexOfAny(this Span<char> span, SearchValues<string> values) =>
3011public static int IndexOfAny<T>(this ReadOnlySpan<T> span, SearchValues<T> values) where T : IEquatable<T>?
3028public static int IndexOfAny(this ReadOnlySpan<char> span, SearchValues<string> values)
3078public static int LastIndexOfAny<T>(this Span<T> span, SearchValues<T> values) where T : IEquatable<T>? =>
3432public static int LastIndexOfAny<T>(this ReadOnlySpan<T> span, SearchValues<T> values) where T : IEquatable<T>?
4826public static void ReplaceAny<T>(this ReadOnlySpan<T> source, Span<T> destination, SearchValues<T> values, T newValue) where T : IEquatable<T>?
4852public static void ReplaceAny<T>(this Span<T> span, SearchValues<T> values, T newValue) where T : IEquatable<T>?
4876public static void ReplaceAnyExcept<T>(this ReadOnlySpan<T> source, Span<T> destination, SearchValues<T> values, T newValue) where T : IEquatable<T>?
4901public static void ReplaceAnyExcept<T>(this Span<T> span, SearchValues<T> values, T newValue) where T : IEquatable<T>?
5075public static SpanSplitEnumerator<T> SplitAny<T>(this ReadOnlySpan<T> source, SearchValues<T> separators) where T : IEquatable<T> =>
5620public static int CountAny<T>(this ReadOnlySpan<T> span, SearchValues<T> values) where T : IEquatable<T>?
5887private readonly SearchValues<T> _searchValues = default!;
5911internal SpanSplitEnumerator(ReadOnlySpan<T> source, SearchValues<T> searchValues)
5921/// it will instead use <see cref="SpanSplitEnumeratorMode.SearchValues"/> with a cached <see cref="SearchValues{Char}"/>
5929_searchValues = Unsafe.As<SearchValues<T>>(string.SearchValuesStorage.WhiteSpaceChars);
6046/// A <see cref="SearchValues{Char}"/> was provided and should behave the same as with <see cref="Any"/> but with the separators in the <see cref="SearchValues"/>
System.Private.DataContractSerialization (2)
System.Private.Uri (20)
System.Private.Xml (3)
System.Reflection.Metadata (1)
System.Reflection.MetadataLoadContext (1)
System.Runtime (1)
System.Security.Cryptography (2)
System.Security.Cryptography.Xml (1)
System.Text.Encodings.Web (2)
System.Text.Json (3)
System.Text.RegularExpressions (9)
System\Text\RegularExpressions\RegexCompiler.cs (7)
75private static MethodInfo SpanIndexOfAnySearchValuesMethod => field ??= typeof(MemoryExtensions).GetMethod("IndexOfAny", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(SearchValues<>).MakeGenericType(Type.MakeGenericMethodParameter(0))])!.MakeGenericMethod(typeof(char));
76private static MethodInfo SpanIndexOfAnySearchValuesStringMethod => field ??= typeof(MemoryExtensions).GetMethod("IndexOfAny", [typeof(ReadOnlySpan<char>), typeof(SearchValues<string>)])!;
81private static MethodInfo SpanIndexOfAnyExceptSearchValuesMethod => field ??= typeof(MemoryExtensions).GetMethod("IndexOfAnyExcept", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(SearchValues<>).MakeGenericType(Type.MakeGenericMethodParameter(0))])!.MakeGenericMethod(typeof(char));
88private static MethodInfo SpanLastIndexOfAnySearchValuesMethod => field ??= typeof(MemoryExtensions).GetMethod("LastIndexOfAny", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(SearchValues<>).MakeGenericType(Type.MakeGenericMethodParameter(0))])!.MakeGenericMethod(typeof(char));
94private static MethodInfo SpanLastIndexOfAnyExceptSearchValuesMethod => field ??= typeof(MemoryExtensions).GetMethod("LastIndexOfAnyExcept", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(SearchValues<>).MakeGenericType(Type.MakeGenericMethodParameter(0))])!.MakeGenericMethod(typeof(char));
106private static MethodInfo MemoryMarshalGetArrayDataReferenceSearchValuesMethod => field ??= typeof(MemoryMarshal).GetMethod("GetArrayDataReference", [Type.MakeGenericMethodParameter(0).MakeArrayType()])!.MakeGenericMethod(typeof(SearchValues<char>))!;
122/// <summary><see cref="SearchValues{T}"/> instances used by the expression.</summary>
System.Web.HttpUtility (2)
System.Windows.Forms (2)
System.Windows.Forms.Design (1)
Templates.Blazor.Tests (2)
Templates.Blazor.WebAssembly.Auth.Tests (2)
Templates.Blazor.WebAssembly.Tests (2)
Templates.Mvc.Tests (2)
Templates.Tests (2)