StandardFormat.Parse Method

Definition

Overloads

Parse(ReadOnlySpan<Char>)

Converts a ReadOnlySpan<System.Char> into a StandardFormat instance using NoPrecision precision.

Parse(String)

Converts a classic .NET standard format string to a StandardFormat instance.

Parse(ReadOnlySpan<Char>)

Converts a ReadOnlySpan<System.Char> into a StandardFormat instance using NoPrecision precision.

public:
 static System::Buffers::StandardFormat Parse(ReadOnlySpan<char> format);
public static System.Buffers.StandardFormat Parse (ReadOnlySpan<char> format);
static member Parse : ReadOnlySpan<char> -> System.Buffers.StandardFormat
Public Shared Function Parse (format As ReadOnlySpan(Of Char)) As StandardFormat

Parameters

format
ReadOnlySpan<Char>

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

Returns

A value whose Symbol property value is the character in format and whose Precision property value is NoPrecision.

Parse(String)

Converts a classic .NET standard format string to a StandardFormat instance.

public:
 static System::Buffers::StandardFormat Parse(System::String ^ format);
public static System.Buffers.StandardFormat Parse (string format);
static member Parse : string -> System.Buffers.StandardFormat
Public Shared Function Parse (format As String) As StandardFormat

Parameters

format
String

A classic .NET standard format string.

Returns

A format.

Exceptions

format is not a valid standard format string.

Applies to