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

Code Inspection: Merge nested property patterns

Last modified: 21 July 2022

C# 10 simplifies the pattern matching syntax with dotted access instead of object pattern nesting. ReSharper detects such places in your code and suggests the corresponding quick-fix (Alt+Enter):