C#


ROSLYN.DESIGN.CA1000 : Do not declare static members on generic types (C#)

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

要旨

When a static member of a generic type is called, the type argument must be specified for the type. When a generic instance member that does not support inference is called, the type argument must be specified for the member. In these two cases, the syntax for specifying the type argument is different and easily confused.

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

プロパティ

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

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

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