C# Inline Diagnostics in Visual Studio

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

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

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

    See newdevsguide.com/2022/11/21/vs-inline-diagnostics-for-csharp/ for an article-based version of this content.

  • @russellvn
    @russellvn 4 месяца назад +1

    Very nice tip for this option.
    Thanks

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

    great, nice to know!

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

    Nice tip! I wonder what that exclamation point is doing after Console.Readline()!

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

      That's a C# nullability annotation telling C# the result of getting a string from the user will never be null. The CLR says ReadLine can return null, but in practice it doesn't happen even if the user doesn't type anything.