The requested page is not available for the requested platform. You are viewing the content for Default platform.

Scope

CodeRush features that can declare new members (for example, Code Templates and Code Providers) use the Scope Options to determine the new declarations' visibility modifier. The Scope Options are configured using the Editor | <Language> | Scope Options options page.

Options_Scope

You can choose one of the following modifiers for every declaration:

  • Use default visibility (private for C# methods, public for C# types)
  • Private
  • Protected
  • Friend
  • Protected Friend
  • Public
  • Match parent scope (uses the parent type's visibility modifier)