FXCop Rule for “If X = Nothing” when X is a nullable integer

1 Dim x as Integer? = Nothing  
2 If x = Nothing Then  
3     'this is what I think will happen   
4 Else  
5     'this is what really happens   
6 End If

The proper way to write that is "If x Is Nothing".

Is there a FXCop rule that checks for this? Or better yet, can someone show me how to write my own?



Another good resource for writing custom FxCop rules can be found here: binarycoder

Need Your Help

Typescript - RequireJS specify pathing in require.config

javascript requirejs typescript

I am creating a new set of web pages in an existing application. We are beginning to implement Typescript+RequireJS.

How to parse a string in MySQL

mysql parsing

So the problem is I have a column that contains a snapshot:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.