Redundant sealed modifier
CodeRush Classic shows the Redundant sealed modifier code issue if a member of a sealed type has the sealed modifier.
#Fix
Remove the sealed modifier from the member declaration.
#Purpose
Highlights the sealed modifiers, which can be removed to improve code readability.
#Example
public sealed class MyClass: MyBase
{
public sealed override string GetText()
{
return base.GetText();
}
}
Fix:
public sealed class MyClass: MyBase
{
public override string GetText()
{
return base.GetText();
}
}