หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
This refactoring applies to:
- C#
What: Use pattern matching.
When: You want to use the new C# pattern matching capabilities.
Why: This refactoring will make your code more clear and concise.
How-to
Place your caret inside the statement.
Press Ctrl+. to trigger the Quick Actions and Refactorings menu.
Select Use pattern matching.
