Use Short Notation
In This Article
Converts an explicit form of a nullable type reference (e.g. “Nullable<int>”) to its short form (e.g. “int?”).
#Availability
Available from the context menu or via shortcuts:
- when the cursor is on an explicit form reference to the nullable type.
#Notes
- This refactoring is the opposite of Use Explicit Notation.
#Examples
│Nullable <int> a = null;
Dim a As │Nullable (Of Integer) = Nothing
Result:
int?│ a = null;
Dim a As Integer?│ = Nothing