C# 11 - List Patterns
Вставка
- Опубліковано 9 лют 2023
- Need to analyse lists of arbitrary length? C# 11 gives us list pattern matching.
Source code available at: github.com/JasperKent/List-Pa...
Topics include:
- Discarding with '_'
- Switch expressions
- Extracting data with a declaration pattern
- Matching against Lists and arrays
- Capturing ranges with '..'
- Combining list and relational patterns
And did anyone spot the 'deliberate' mistake that the video title says C# 8 not C# 11? Don't know what I was thinking of. - Наука та технологія
Pattern matching is a powerful feature of C#. Do you use it much? Let me know in the comments.
Source code available at: github.com/JasperKent/List-Patterns
Remember to subscribe at ua-cam.com/channels/qWQzlUDdllnLmtgfSgYTCA.html
And if you liked the video, click the 👍.
The way you explain things is so simple and to the point, have learned so much watching your videos, please keep up the great work!
Excellent examples and tutoring
Coding Tutorials are the bomb!
Thanks for making a video about this topic. The way you explains things makes it really easy to understand. I have another suggestion. It is about the new scoped modifier in C#11. It would be really helpful if you can make a video explaining this new feature.
I'll put it on the list.
Your tutorials are phenomenal!
Many Thanks!
Thanks for this video
Genius 👍
How do you have so much patience. Excellent tutorial
Good tutorial!