[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [DotGNU]fxcop
From: |
Earnie Boyd |
Subject: |
Re: [DotGNU]fxcop |
Date: |
Fri, 30 Apr 2004 08:51:08 -0400 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 |
Miroslaw Dobrzanski-Neumann wrote:
Hello,
do you know FxCop?
Sounds like a software for monitoring incoming FAX for unwanted SPAM.
FxCop ist a kind of lint that analyzes assemblies for coding and performance
problems.
One of the fixed ideas (validation rules) of fxcop reads (this is not a
citation):
Do not test for empty string comparing it to empty string literal:
if (val == "")
...
use its length instead:
if (val.Length == 0)
...
because comparing strings (empty literal will be converted to an string
instance before comparison) is much more expensive than comaring the string
length.
A point worth remembering. You don't give links to FxCop.
Earnie.
--
http://www.mingw.org
http://sourceforge.net/projects/mingw
https://sourceforge.net/donate/index.php?user_id=15438