Details
-
Sub-task
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
Description
// csharp_style_pattern_matching_over_is_with_cast_check = true if (o is int i) {...} // csharp_style_pattern_matching_over_is_with_cast_check = false if (o is int) {var i = (int)o; ... }
For Reference: [Use pattern matching to avoid 'is' check followed by a cast (IDE0020 and IDE0038) - .NET | Microsoft Docs|https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0020-ide0038]
Attachments
Issue Links
- links to