Duplicar posible:
Checking for string contents? string Length Vs Empty StringEn .NET, ¿cuál es el mejor, mystring.Length == 0 o mystring == string.Empty?
En .NET, lo que es mejor,
if (mystring.Length == 0)
o
if (mystring == string.Empty)
Parece que éstos tendrían el mismo efecto , pero cuál sería el mejor beh ind las escenas?
¿Existe una razón funcional que no está haciendo 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 -to-determination-if-an-untrimmed-string-is-empty-i – womp
¡No sabía nada hasta ahora! :-) Woot stackoverflow .... – Matt