Click here to Skip to main content
12,349,884 members (21,469 online)
Click here to Skip to main content
Articles » Web Development » ASP.NET » General » Alternatives
Alternatives (2)
Add your own
alternative version

Tagged as

Stats

31.7K views
30 bookmarked
Posted

Best practices in developing ASP.NET applications

, 19 Jan 2011 CPOL
Best practices in developing ASP.NET applications

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

19 Jan 2011
_impostor_
I agree with Chris...string.IsNullOrEmpty: 312 msLength: 140 ms [fastest]This is not a fair comparison.Need to compare:(string != null && string.Length !=0)with: String.IsNullOrEmpty(string)Even if the first construct is faster, there is a readability...
3 Feb 2011
_impostor_
Initializing is great... unless you have no control over the contents.Consider this:String strTmp = String.Empty;strTmp = SomeRandomMethod();//Suppose SomeRandomMethod returns null under some circumstances...Now anything you try to do with strTmp (other than compare to null) will...

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Mahendra Vishwakarma
Software Developer (Senior)
India India
No Biography provided

| | Privacy | Terms of Use | Mobile
Web02 | 2.8.160621.1 | Last Updated 19 Jan 2011
Article Copyright 2011 by Mahendra Vishwakarma
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid