RES: fxcop

<[email protected]>
Newsgroups gmane.comp.gnu.dotgnu.developer
Message-ID <000f01c42eb2$4af1e640$3301010a@CRON>
http://www.gotdotnet.com/team/fxcop/


-----Mensagem original-----
De: Earnie Boyd [mailto:[email protected]] 
Enviada em: sexta-feira, 30 de abril de 2004 09:51
Para: Miroslaw Dobrzanski-Neumann
Cc: PNET-D
Assunto: Re: [DotGNU]fxcop

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

_______________________________________________
Developers mailing list
[email protected]
http://dotgnu.org/mailman/listinfo/developers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.