Skip to main content

RCS1193: Overriding member should not change 'params' modifier

Properties

PropertyValue
Default SeverityWarning
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)
{
}
}

Applies to