-
Notifications
You must be signed in to change notification settings - Fork 16
var guidance #141
Copy link
Copy link
Closed
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationgood first issueGood for newcomersGood for newcomers
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationgood first issueGood for newcomersGood for newcomers
Currently there is not guidance in the docs around
var. With C# 9, this also somewhat expands to target-typed new expressions as well.Previously the only written guidance was in Tom's blog.
We believe there should be some additional guidance provided here as well:
Both of the following should be put in a "Variables" section under "Coding"
varany time that the initialization of the variable clearly shows what the variable will contain.