Tag Archives: Tips



Picking up New Project Template right from the Start Page in Visual Studio 2017

Visual Studio 2017 having a reshaped start page. Be it with getting started documents, picking up your recent projects, or evening creating a new project. This has everything to get you started. Creating the new project has an altogether a new section to start up a new project. When you select the “Create new project…” […]

Working with Zip Files in .NET

Zipping and Unzipping in a Client Application or a Website is very common requirement. Until the latest .NET version, there is no API that fully supports these things. We would have relied on J# specific JAVA APIs or there are superior 3rd party APIs available which could have done the trick. .NET 4.5 gives an […]

Timeout in Regular Expressions

Regular expressions are common forms of parsing a document and get meaning. It has been very popular and most of the people do use it regularly to solve their complex problems. Being a developer, I use them very often. But there is a catch on using a regular expression. Regular expression gives you a chance […]

Use “Run To Cursor” and save time while debugging

Run to cursor is a great and an hidden features of Visual Studio. This can really boost up your productivity of work while debugging any application in Visual Studio.  You can really avoid the step by step debugging and directly stop the debugger where you are targeting it to stop.  “Run to Cursor” is  just […]

Refreshing browser from Application written in C#

Well, after looking at the feature in Visual Studio 2013 well introduced by my buddy Abhijit, I was thinking to do the similar thing from application as well. I thought if I could build a tool how could I mimic the same behavior to send refresh signal to an opened process from my application. It […]

LargeObjectHeapCompaction in .NET Garbage Collection

Do you know that .NET GC now equipped with yet another option to Compact Large Object Heap. This has been a long problem for people where LOH can produce fragmentation in memory or when Free space table cannot handle allocation requests. LOH is the Large object Heap allocated generally for large objects which are above […]

View Code Definition with in Same Code Window – Peek Definition in Visual Studio 2013 Preview

Visual Studio 2013 Preview IDE helps us to view the code definition with in the same code window without navigating to other files.  This feature is known as “Peek Definition”.  “Peek Definition” improves the overall developer productivity and getting things in a smart manner.  The fundamental of this features is very similar to how the […]

Using Mutex to avoid deadlocks

Mutex is not new to the .NET framework. The Win32 api supports an object called Mutex and .NET framework class Mutex is actually a wrapper class for the same Win32 kernel mutex object. Mutex objects are generally used to synchronize Threads across process. Mutexes are namable and hence you can signal whether the Mutex is […]

Writing inline Code in WPF

Generally when you create a WPF window, you will get two files automatically created for you. One which represents the XAML, which is stored in .XAML extension file, and another is a class which is stored in a Code-Behind file with .cs extension. But in certain scenarios, it is actually required to write your Code […]

ThreadLocal storage in .NET

Similar to Lazy, ThreadLocal creates object local to one thread. So each individual thread will have its own Lazy initializer object and hence will create the object multiple times once for each thread. In .NET 3.5 or before, you can create objects that are local to one thread using ThreadStatic attribute. But sometimes ThreadStatic fails […]