Convert to System Type/Built-In Type
This refactoring enables you to switch between the .NET Framework type names and their keyword aliases.
Available when the caret is in a type reference.
Place the caret in a type reference.
The blinking cursor shows the caret’s position at which the Refactoring is available.
- Press the Ctrl + . or Ctrl + ~ shortcut to invoke the Code Actions menu.
Select Convert to System Type from the menu (Convert to Built-In Type if you need to use a language-specific type).
After execution, the refactoring switches the CLR type to its keyword alias or vice versa.
You can also apply the “Apply built-in type style” rule in code cleanup. See the following topic for more information: Configure Cleanup.