StandardFormat.Parse Method
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.
Parse(ReadOnlySpan<Char>) |
Converts a |
Parse(String) |
Converts a classic .NET standard format string to a StandardFormat instance. |
- 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
.NET 10 and other versions
Product | Versions |
---|---|
.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 |
- 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.
Applies to
.NET 10 and other versions
Product | Versions |
---|---|
.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 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: