posts - 4237, comments - 3946, trackbacks - 370

Disclaimer

This was my personal weblog originally hosted by UgiDotNet, written mostly in Italian.

This blog is now part of my new site:
These postings are provided 'AS IS' with no warranties, and confer no rights. The views expressed on this weblog are mine alone and do not necessarily reflect the views of my employers.

Licenza Creative Commons

Tag Cloud

Archives

Post Categories

Continuando a parlare di String.Empty... e similari...

The real cost of performance

Oltre ai post di Adrian, per continuare il discorso iniziato da Gabriele...

 

Print | posted on mercoledì 12 gennaio 2005 16:51 |

Feedback

Gravatar

# re: Continuando a parlare di String.Empty... e similari...

Per fortuna non sono ancora così contorto da utilizzare la Equals anche se l'aspetto appare sicuramente più Object Oriented.

Quella del length presuppone che la variabile sia diversa da Null.

Per quanto riguarda la classica dimenticanza del doppio uguale ho sentito spesso suggerire di invertire gli operatori come abitudine (anzichè Value == "" usare "" == Value) così l'eventuale dimenticanza viene subito segnalata dal compilatore.
12/01/2005 18:48 | Gabriele Gaggi
Comments have been closed on this topic.