SearchValuesPolyfillCreate(ReadOnlySpan`1Char) Method

Creates a SearchValuesPolyfillT instance for values.

Definition

Namespace: FolkerKinzel.Strings
Assembly: FolkerKinzel.Strings (in FolkerKinzel.Strings.dll) Version: 9.4.0+10a7d4d71aa960998e32ac0ac6c4fcbe4164c917
C#
public static SearchValuesPolyfill<char> Create(
	ReadOnlySpan<char> values
)

Parameters

values  ReadOnlySpanChar
The set of values.

Return Value

SearchValuesPolyfillChar
A SearchValuesPolyfillT instance for values.

Remarks

  Tip

This method allocates a new String from values when used with framework versions lower than .NET 8.0. Whenever you can, use the method overload that takes a String as argument!

See Also