[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RES: [DotGNU]fxcop
From: |
ths |
Subject: |
RES: [DotGNU]fxcop |
Date: |
Fri, 30 Apr 2004 09:54:36 -0300 |
http://www.gotdotnet.com/team/fxcop/
-----Mensagem original-----
De: Earnie Boyd [mailto:address@hidden
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
address@hidden
http://dotgnu.org/mailman/listinfo/developers