StandardFormat.Parse Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Parse(ReadOnlySpan<Char>) |
Converts a |
Parse(String) |
Converts a classic .NET standard format string to a StandardFormat instance. |
Parse(ReadOnlySpan<Char>)
- Source:
- StandardFormat.cs
- Source:
- StandardFormat.cs
- Source:
- StandardFormat.cs
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.
Applies to
Parse(String)
- Source:
- StandardFormat.cs
- Source:
- StandardFormat.cs
- Source:
- StandardFormat.cs
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);
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.