Using Roslyn Analyzers

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ม.ค. 2025

ความคิดเห็น • 5

  • @MartinCode
    @MartinCode 4 หลายเดือนก่อน +1

    MethodWithNullParams(int? maybeNull, string? str)
    I would love to have some refactor tool that could suggest non-nullable variables from my parameters. So when the cursor is on the parameters, it can suggest to insert code:
    Int maybeNullParam = maybeNull ?? 0;
    string strParam = str ?? "";
    Is there any analysers that can suggest that?
    Thanks

    • @MartinCode
      @MartinCode 4 หลายเดือนก่อน

      * insert the new suggested text in the body of them method ;-)

  •  4 หลายเดือนก่อน +1

    u got typo in thumbnail picture 🙂

    • @visualstudio
      @visualstudio  4 หลายเดือนก่อน

      We know. Thanks.

  • @alvpaz
    @alvpaz 4 หลายเดือนก่อน

    Show.