Using Roslyn Analyzers

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

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

  • @MartinCode
    @MartinCode หลายเดือนก่อน +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 หลายเดือนก่อน

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

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

    u got typo in thumbnail picture 🙂

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

      We know. Thanks.

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

    Show.