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: 08 November 2024

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):