MemoryExtensions.IsWhiteSpace(ReadOnlySpan<Char>) Method

Definition

Indicates whether the specified span contains only whitespace characters.

public static bool IsWhiteSpace(this ReadOnlySpan<char> span);

Parameters

span
ReadOnlySpan<Char>

The source span.

Returns

true if the span contains only whitespace characters, false otherwise.

Applies to

產品 版本
.NET Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Standard 2.0 (package-provided), 2.1