Generate Deconstructors
Alt+Insert | Deconstructors (ReSharper_GenerateDeconstructor
)
note
Tuple deconstruction is a C# 7.0 feature.
By default, ReSharper automatically detects C# version based on the associated compiler. However, you can specify the target C# version explicitly for a project — right-click the project in the Solution Explorer, choose Edit project item properties from the context menu and use the C# Language Level selector.
To set the C# version for all projects in your solution, specify it in a Directory.Build.props file in your solution directory as described here.
tip
You can configure common code generation preferences on the Alt+R, O).
page of ReSharper options (
tip
You can invoke Find Usages Shift+F12 on the
Deconstruct
method to find all related tuple deconstructions.

tip
To bind this code generation command to its own shortcut, go to
and assign a shortcut for theReSharper_GenerateDeconstructor
command.