StandardFormat.TryParse(ReadOnlySpan<Char>, StandardFormat) Method

Definition

Attempts to convert a ReadOnlySpan<Char> to a StandardFormat instance and returns a value that indicates whether the parsing operation succeeded.

C#
public static bool TryParse(ReadOnlySpan<char> format, out System.Buffers.StandardFormat result);

Parameters

format
ReadOnlySpan<Char>

A read-only span that contains the character to convert.

result
StandardFormat

When the method returns, contains the parsed StandardFormat instance if the operation was successful.

Returns

true if the parsing operation was successful; otherwise, false.

Applies to

Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Standard 2.1