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.
  • Наука та технологія

КОМЕНТАРІ • 11

  • @CodingTutorialsAreGo
    @CodingTutorialsAreGo  Рік тому

    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 👍.

  • @funnybaldandbeardy3927
    @funnybaldandbeardy3927 Рік тому +2

    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!

  • @umdi3337
    @umdi3337 5 місяців тому +1

    Excellent examples and tutoring

  • @davidwhite2011
    @davidwhite2011 Рік тому +1

    Coding Tutorials are the bomb!

  • @syedhasnadjami6008
    @syedhasnadjami6008 Рік тому +1

    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.

  • @10Totti
    @10Totti Рік тому +1

    Your tutorials are phenomenal!
    Many Thanks!

  • @DNI404
    @DNI404 Рік тому +1

    Thanks for this video

  • @ibrahimalshmrani8216
    @ibrahimalshmrani8216 Рік тому +1

    Genius 👍

  • @priestofpsi
    @priestofpsi Рік тому +1

    How do you have so much patience. Excellent tutorial

  • @10Totti
    @10Totti Рік тому +3

    Good tutorial!