Прочетете на английски Редактиране

Споделяне чрез


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>)

Source:
StandardFormat.cs
Source:
StandardFormat.cs
Source:
StandardFormat.cs

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

C#
public static System.Buffers.StandardFormat Parse(ReadOnlySpan<char> format);

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 и други версии
Продукт Версии
.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

Parse(String)

Source:
StandardFormat.cs
Source:
StandardFormat.cs
Source:
StandardFormat.cs

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

C#
public static System.Buffers.StandardFormat Parse(string? format);
C#
public static System.Buffers.StandardFormat Parse(string format);

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 и други версии
Продукт Версии
.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