Possible en double:
Checking for string contents? string Length Vs Empty StringEn. NET, qui est le meilleur, mystring.Length == 0 ou mystring == string.Empty?
Dans .NET, qui est le mieux,
if (mystring.Length == 0)
ou
if (mystring == string.Empty)
Il semble que ceux-ci auraient le même effet , mais qui serait le meilleur Ind les scènes?
Y at-il une raison fonctionnelle vous ne fais pas String.IsNullOrEmpty (mystring)? – JustLoren
http://stackoverflow.com/questions/151472/what-is-the-difference-between-string-empty-and, http://stackoverflow.com/questions/810442/whats-the-most-efficient-way -t-déterminer-si-une-chaîne-non-limitée-est-vide-je – womp
Je ne savais pas à ce sujet jusqu'à maintenant! :-) Woot stackoverflow .... – Matt