StandardFormat 構造体

定義

実際の文字列を使用せずに標準書式の文字列を表します。

public value class StandardFormat : IEquatable<System::Buffers::StandardFormat>
public readonly struct StandardFormat : IEquatable<System.Buffers.StandardFormat>
type StandardFormat = struct
Public Structure StandardFormat
Implements IEquatable(Of StandardFormat)
継承
StandardFormat
実装

注釈

オブジェクトは StandardFormat 、1 文字の標準書式指定子 ('G'、'D'、または 'X' など) と省略可能な有効桁数指定子で構成されます。 有効桁数指定子の範囲は 0 から 9 です。また、特殊な StandardFormat.NoPrecision 値を指定することもできます。

コンストラクター

StandardFormat(Char, Byte)

StandardFormat 構造体の新しいインスタンスを初期化します。

フィールド

MaxPrecision

最大有効桁数の値を定義します。

NoPrecision

書式が有効桁数を使用しないか、有効桁数が指定されていないことを示します。

プロパティ

HasPrecision

書式に定義された有効桁数が含まれるかどうかを示す値を取得します。

IsDefault

現在のインスタンスが既定の書式かどうかを示す値を取得します。

Precision

書式の有効桁数のコンポーネントを取得します。

Symbol

書式の文字のコンポーネントを取得します。

メソッド

Equals(Object)

指定したオブジェクトが、現在のインスタンスと等しい StandardFormat オブジェクトであるかどうかを示す値を返します。

Equals(StandardFormat)

指定した StandardFormat が現在のインスタンスと等しいかどうかを示す値を返します。

GetHashCode()

このインスタンスのハッシュ コードを返します。

Parse(ReadOnlySpan<Char>)

NoPrecision の有効桁数を使用して、ReadOnlySpan<System.Char>StandardFormat インスタンスに変換します。

Parse(String)

従来の .NET 標準書式文字列を StandardFormat インスタンスに変換します。

ToString()

この書式の文字列表現を返します。

TryParse(ReadOnlySpan<Char>, StandardFormat)

StandardFormat インスタンスへの ReadOnlySpan<Char> の変換を試みて、解析操作が成功したかどうかを示す値を返します。

演算子

Equality(StandardFormat, StandardFormat)

2 つの StandardFormat インスタンスが等しいかどうかを示す値を返します。

Implicit(Char to StandardFormat)

NoPrecision の有効桁数を使用して、文字を StandardFormat インスタンスに変換します。

Inequality(StandardFormat, StandardFormat)

2 つの StandardFormat インスタンスが等しくないかどうかを判断します。

適用対象