Re: fxcop
Earnie Boyd <[email protected]>
| Newsgroups | gmane.comp.gnu.dotgnu.developer |
|---|---|
| Message-ID | <[email protected]> |
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