This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (arguments[currentIndex].MatchingParameter?.Element.IndexOf() is {} index && index >= 0) | |
// vs. | |
if (arguments[currentIndex].MatchingParameter?.Element.IndexOf() is >= 0 and var index) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var argumentsMax = TryGetMethodArgumentAbstractValues(); | |
if (argumentsMax == null) return null; | |
if (argumentsMax.Count != 2) return null; | |
// vs | |
var argumentsMax = TryGetMethodArgumentAbstractValues(); | |
if (argumentsMax is null or { Count: not 2 }) return null; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment