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:
精彩评论