Make Implicit
In This Article
Converts an explicitly-typed variable declaration to an implicit one.
#Availability
Available from the context menu or via shortcuts:
- when the caret is on a variable declaration, provided that the variable is initialized to a value of an integral type.
Note
This refactoring is only available in .NET Framework 3.
#Notes
- This refactoring is the functional opposite of Make Explicit.
#Example
│string a = "Hello World";
Dim │a As String = "Hello World"
Result:
var a = "Hello World";
Dim a = "Hello World"
#Screenshot
See Also