Top C# Programming Mistakes
Date: 27 Aug 2009 Comments: 11 so far1.Using String variables: if (someString.Length > 0) { // … } … but someString could be a null: if (!String.IsNullOrEmpty(someString)) { // much better now !? } 2.String concatenation string s = “dev”; s += “-”; s += “the”; s += “-”; s += “web”; s += “.”; s += “com”; This is not very [...]
