.Net Performance tip - 3
Last week i was trying to explore how the if statement performs under various conditions as shown below.
if( statement 1)
if( statement 2)
if( statement 3)
if( statement 1 && statement 2 && statement 3)
The results indicate that, the second approach is far better than the first one.
Hence, the recommendation would be to use the second approach over the first one
I hope this helps!.
Motivated achiever who guides organizations in applying technology to business settings, provides added value, and creates project deliverables in a timely manner. An experienced Technical Consultant, have successfully led large project teams of more than 20 people from requirements gathering to implementation and support using C#, .NET ,ADO.NET, ADO.NET Entity Framework,ASP.NET,ASP.NET MVC, WCF and SQL Server.