C#


ROSLYN.DESIGN.CA1028 : Enum Storage should be Int32 (C#)

See Roslyn-Detected C# Warning Classes for more information.

要旨

An enumeration is a value type that defines a set of related named constants. By default, the System.Int32 data type is used to store the constant value. Although you can change this underlying type, it is not required or recommended for most scenarios.

この指摘はRoslynのCA1028に該当します。ルール詳細につい ては、下記リンクを参照してください。 CA1028

プロパティ

クラス名 Enum Storage should be Int32 (C#)
日本語クラス名 Enum Storage should be Int32 (C#)
クラス分類 信頼性 (reliability)
ニーモニック ROSLYN.DESIGN.CA1028
カテゴリー なし
対応言語 C# で利用可能です。
有効/無効設定 このワーニングクラスのチェックはデフォルトで無効になっています。チェックを有効にするにはプロジェクト設定ファイル (configuration file)に以下の WARNING_FILTER ルールを追加してください。
WARNING_FILTER += allow class="Enum Storage should be Int32 (C#)"

関連のある設定ファイルパラメータ

設定ファイルの以下のパラメータがこのワーニングクラスのチェックに影響します。