Coding Shorts: Generic Attributes in C# 11

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

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

  • @cerkit-creative
    @cerkit-creative 2 года назад +1

    As always, another excellent video. I can always count on you to keep me informed of the important features that we'll be seeing in v.Next. Generic attributes have always been something I've wondered about. Thanks for taking the time to make this video.

  • @dono42
    @dono42 2 года назад +2

    This is one of two things that I have been waiting for this since generics were introduced way back in in 2.0. I have always disliked the typeof syntax, so I am happy for this change. The other is generic operator overloading.

    • @swildermuth
      @swildermuth  2 года назад

      It's an interesting feature. I started looking at it in ways that Attributes didn't support, so I wonder what use-case you were trying to solve with them?

  • @Tryste
    @Tryste 2 года назад

    I nver had the occasion to stop by and say it but Shawn your teaching style and videos (here or on Pluralsight) saved me and my projects so many times.
    Thank you!

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

    I wish so much Microsoft can solve the problem with generic resolving issues. Lets assume you have an interface IMyInterface. And an Interfac IMyInterface : IMyInterface. Than you have a list of IMyInterface.
    It is not possible to cast them to IMyInterface for example.

  • @afgone123456
    @afgone123456 2 года назад

    Great video, how did you customise dotnet command and show the execution times?

    • @swildermuth
      @swildermuth  2 года назад +1

      I found a .cmd file for running the dotnet.exe so I could name it "n" to be easier. I am pretty sure the execution times are from the debugger.

  • @youtubeplusofficial
    @youtubeplusofficial 2 года назад +1

    Thanks u so much God