RCS1193: Overriding member should not change 'params' modifier
Properties
Property | Value |
---|---|
Default Severity | Warning |
Minimum language version | - |
Examples
Example #1
diagnostic.cs
public class Base
{
public virtual void Foo(params object[] values)
{
}
}
public class Derived : Base
{
public override void Foo(object[] values)
{
}
}
fix.cs
public class Derived : Base
{
public override void Foo(params object[] values)
{
}
}