We now find issue in C# Tuple Deconstruction

Hi C#ers

Since C# 7 you’ve been able to return a tuple from a method and then deconstruct it, this functionality was enhanced in C#10. We’re now able to find issues using our existing rules when this happens - see the example below for some of the issues that can be discovered.

This is available in Sonarcloud today and will follow in SonarQube 9.6 and SonarLint

Enjoy!

Tom

3 Likes