TypeName | UnusedParametersAnalyzer |
Check Id | CC0057 |
Category | Usage |
Severity | Warning |
When a method declares a parameter and does not use it might bring incorrect conclusions for anyone reading the code and also demands the parameter when the method is called, unnecessarily.
public static void SampleMethod(string name)
{
}
A code fix will be presented to you that will transform the code to remove the unused parameter.
public static void SampleMethod()
{
}
None
TBD