Tool to refactor C# var to explicit type

前端 未结 7 661
陌清茗
陌清茗 2020-12-03 17:15

Our coding standards ask that we minimise the use of C# var (suggests limiting it\'s use to being in conjunction with Linq). However there are times when using generics wher

7条回答
  •  南笙
    南笙 (楼主)
    2020-12-03 17:40

    Resharper does this (only in version 4+ I'm sure of it) but I don't know if its possible to simply convert var into the specific type automatic - eventually you need to go to the "var" and then a light shows up which gives you the option to specify the type explicitly

提交回复
热议问题