Partial method cannot have access or the virtual, abstract, override, new, sealed, extern modifiers

CodeRush shows the Partial method cannot have access or the virtual, abstract, override, new, sealed, extern modifiers code issue if a partial method declaration includes access modifiers or the virtual, abstract, override, new, sealed or extern modifiers.

Fix

Remove the invalid modifiers.

Purpose

Highlights the partial method declarations, which would cause the A partial method cannot have access modifiers or the virtual, abstract, override, new, sealed, or extern modifiers compilation error.

Example

public partial void <:caret:>ProcessString(string str);

Fix:

partial void ProcessString(string str);