ReSharper
 
Get ReSharper
Get your hands on the new features ahead of the release by joining the Early Access Program for ReSharper 2025.1! Learn more

Code Inspection: Merge nested property patterns

Last modified: 05 January 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 (AltEnter):