Samples. Sicuri?

Leggendo queste righe di codice da uno dei "Samples" di Microsoft per C#2005 mi tornano in mente le "antiche" raccomandazioni sul concatenamento stringhe. Che sia cambiato qualcosa nella 2.0?

if (_AppName.Length > 255)

{

throw new ProviderException("ApplicationName exceeded max length of " + 255);

}

Print | posted @ mercoledì 30 novembre 2005 0.00

Comments on this entry:

Gravatar # re: Samples. Sicuri?
by Lorenzo Barbieri at 30/11/2005 8.30

ma compila???
  
Gravatar # re: Samples. Sicuri?
by Mario Duzioni at 30/11/2005 9.58

Si, ma fa una faccia il compilatore...
  
Gravatar # Samples II, sempre sicuri?
by TheDuzBlog! ;-p at 04/05/2006 10.07

  
Comments have been closed on this topic.