C# Pattern Matching - Improve your C# skills in 6 minutes

Поделиться
HTML-код
  • Опубликовано: 22 дек 2024

Комментарии • 12

  • @rmcgraw7943
    @rmcgraw7943 4 месяца назад

    Good video. U are correct. Most known nothing about property matching. There are some boxing/unboxing issues doing it, but it’s great.

  • @rmcgraw7943
    @rmcgraw7943 4 месяца назад

    Can you tell me how to return an interface from a struct without causing a box? Hint: there are 2 ways.

  • @tutorialsEUC
    @tutorialsEUC  Год назад +2

    🔥 Pattern Matching is an often overlooked programming technique even though it can VASTLY improve your code! So learn how to use it to stand out among the rest!
    📰 Make sure to check out the C# Digest Newsletter to get weekly updates on all things C#! bit.ly/csharp-digest
    🚀 SKYROCKET your C# skills and become a sought-after C# web developer with our C# Progress Academy: academy-tutorials.eu/csharp-progress-academy-organic?
    📚 Or do you like to learn through BOOKS more? Our TINY C# PROJECTS BOOK!
    mng.bz/M5an
    We'll make sure to turn you into a true developer in no time!

  • @michaelgervasoni8009
    @michaelgervasoni8009 Год назад +1

    Do you know how compiler handles the str and collection variables? After the is keyword, is a new variable created (str or collection) that is casting obj into either a string or collection in this case?

    • @tutorialsEUC
      @tutorialsEUC  Год назад

      Yes, when using pattern matching in C# with the "is" keyword, a new variable is created that is casted into the pattern type :)

  • @nkululekoleggomsimang9762
    @nkululekoleggomsimang9762 Год назад +2

    Okay Brother 🔥🔥🔥🔥This is so cool

  • @mcemgunes
    @mcemgunes 5 месяцев назад

    Clear explanation! Thanks!

  • @tutorialsEUC
    @tutorialsEUC  Год назад +1

    📰 Make sure to check out the C# Digest Newsletter to get weekly updates on all things C#! bit.ly/csharp-digest
    🚀 C# Progress Academy - Become a job-ready C# and Angular web developer to land your dream developer role: bit.ly/45vbPUg

    • @coderite
      @coderite Год назад

      i guess the progress academy is not for newbie..just picking up a tech journey ?

    • @tutorialsEUC
      @tutorialsEUC  Год назад

      It contains a C# fundamentals course to get every beginner started :)