Permalink
Fetching contributors…
Cannot retrieve contributors at this time
48 lines (37 sloc) 963 Bytes

RCS1193: Overriding member cannot change 'params' modifier

Property Value
Id RCS1193
Category Design
Default Severity Warning
Enabled by Default
Supports Fade-Out -
Supports Fade-Out Analyzer -

Example

Code with Diagnostic

public class Base
{
    public virtual void Foo(params object[] values)
    {
    }
}

public class Derived : Base
{
    public override void Foo(object[] values) // RCS1193
    {
    }
}

Code with Fix

public class Derived : Base
{
    public override void Foo(params object[] values)
    {
    }
}

See Also

(Generated with DotMarkdown)