ReSharper
 
Get ReSharper
You are viewing the documentation for an earlier version of ReSharper.

Code Inspection: Join or separate 'var' in deconstruction declarations

Last modified: 30 September 2021

This inspection checks the code style for using 'var' in declarations.

By default, ReSharper will suggest joined notation for multiple var 's in deconstruction declarations, for example var (x, y) = GetTuple();. You can select Prefer separate declarations for deconstructed variables on the Code Editing | C# | Syntax Style page of ReSharper options to opt for separate notation, for example (var x, var y) = GetTuple();.