Saturday, September 09, 2006

Is Your .NET Code OK?

That's sometime a tricky question, but you have tools for answering this question. One of them is FxCop which performs a static analysis of your DLLs and EXEs. It will report you "stupid mistakes" as well as more serious ones. For example it warns you about wrong usage of constructors as well as potential numeric overflows.
However, don't take everything it says as the book-of-laws because it is not always right in its findings, actually for my code it warns me where it shouldn't. But... fortunately you can exclude the findings that are not correct with a simple right-click.
I would recommend you to download and run this tool over your code and take a look at the findings. You don't need to change your code, but the results are always interesting... my 2 cents...

2 comments:

Unknown said...
This comment has been removed by a blog administrator.
Lusu said...

I do not tolerate commercial messages on my blog. Use your own blog to do that.