开发者

Need tools which will refactor the C# code for null checks

开发者 https://www.devze.com 2023-03-22 02:10 出处:网络
Can anyone suggest me for automating the null check refactoring in C# code? The actual problem is, I have a C# consol开发者_运维技巧e application with 500 files where in each file contains so main IF-

Can anyone suggest me for automating the null check refactoring in C# code? The actual problem is, I have a C# consol开发者_运维技巧e application with 500 files where in each file contains so main IF-ELSE conditional statement for user-defined objects. Now, I need to put null checks for all the objects(also nested objects) used in these IF-ELSE conditional statements.

To achieve this, I need a tool which will place the null checks automatically.


ReSharper will help you find these. Here's an example:

Need tools which will refactor the C# code for null checks

0

精彩评论

暂无评论...
验证码 换一张
取 消