C#


ROSLYN.NAMING.CA1725 : Parameter names should match base declaration (C#)

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

要旨

Consistent naming of parameters in an override hierarchy increases the usability of the method overrides. A parameter name in a derived method that differs from the name in the base declaration can cause confusion about whether the method is an override of the base method or a new overload of the method.

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

プロパティ

クラス名 Parameter names should match base declaration (C#)
日本語クラス名 Parameter names should match base declaration (C#)
クラス分類 スタイル (style)
ニーモニック ROSLYN.NAMING.CA1725
カテゴリー なし
対応言語 C# で利用可能です。
有効/無効設定 このワーニングクラスのチェックはデフォルトで有効になっています。チェックを無効にするにはプロジェクト設定ファイル (configuration file)に以下の WARNING_FILTER ルールを追加してください。
WARNING_FILTER += discard class="Parameter names should match base declaration (C#)"

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

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