Archive for the ‘C# ASP .NET’ Category

Optimizing Wait in MultiThreading

January 4th, 2012Posted by admin

While working in Multithreading environment the primary thread has to wait until it’s secondary thread to complete their execution. So in this case most of the time we use Thread.Sleep() and that is a bad practice because it blocks the primary thread for a time that might be less or exceeds than the completion time […]

Optimize your C# Application

January 4th, 2012Posted by admin

1. StringBuilder: knowing when to use The main difference between string and StringBuilder is that using the StringBuilder to modify a string without creating a new object can boost performance when concatenating many strings in a loop. If you have a loop that will make modification to a single string for many iterations, then a […]