tag:blogger.com,1999:blog-2453531995281041139.post5010528270651244284..comments2020-11-25T17:31:30.807-08:00Comments on Vinayaka Krishna Shenoy's Technical Diary: .Net Coding Best practicesVinayaka Krishna Shenoyhttp://www.blogger.com/profile/14768632601696924318noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-2453531995281041139.post-89591710448315345642009-12-22T04:07:30.054-08:002009-12-22T04:07:30.054-08:00Hello Vinayak,
It would be helpful if you could ...Hello Vinayak,<br /><br /><br />It would be helpful if you could provide the reasons for each of the following best practices<br /><br />1. Do not hard code strings/ numerics. Instead of that use constants<br /><br />2.For string comparison - Use String. Empty instead of “”<br /><br /><br />3.When we have to manipulate the strings inside a loop, use StringBuilder instead of string <br /><br />4.Use ‘as’ operator for type casting<br /><br />5.Prefer Generic Dictionaries over HashTable <br /><br /><br /><br />Thanks,<br />Suraj H.B.Anonymoushttps://www.blogger.com/profile/18353208048616287911noreply@blogger.com