Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / Languages / C#

.Net Performance tip - 2

3.00/5 (8 votes)
22 May 2010CPOL 20.7K  
.Net Performance tip - 2
.Net Performance tip - 2

Last week i was doing some exploration on performance of if statements vs switch statements and surprisingly i found that switch is more performance intent than the if statements.

Hence the recomendation would be to prefer swicth over if statements.

I hope this helps!.

Regards,
-Vinayak

License

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