Pattern matching preferences
C# preferences
The style rules in this section concern the use of pattern matching in C#.
- Use pattern matching to avoid
as
followed by anull
check (IDE0019 - Use pattern matching to avoid
is
check followed by a cast (IDE0020 and IDE0038) - Use switch expression (IDE0066)
- Use pattern matching (IDE0078)
- Use pattern matching (
not
operator) (IDE0083) - Simplify property pattern (IDE0170)
Visual Basic preferences
The style rules in this section concern the use of pattern matching in Visual Basic.
See also
Feedback
Submit and view feedback for