Browsing articles in ".NET"
Sep
9
2009

Setting custom toolwindow icon for Visual Studio add-in

I recently completed a minor update to my Favorites Menu for Visual Studio add-in. The new installer is already put under ‘My Development’ section on my site. The update includes a minor bug fix i.e, toolwindow icon is not set properly inside Visual Studio 2008. I do not remember from where I got the following code, but this worked for me. Paste the below code in to a Utililty.cs Usage:   Note: 1. The code [...]

Nov
13
2008

Singleton Pattern vs. Static Class

The singleton pattern ensures a class has only one instance, and provide a global point of access to it. There is a nice article about choosing between Singleton pattern and the static class here with examples.

Nov
6
2008
.NET // C#

DebuggerStepThrough attribute

Pedram Rezaei has written how we can let .NET debugger know, not to step in to certain elements of your program with the help of DebuggerStepThroughAttribute. Read it here

Jun
9
2008

TypeCode enum in C#

Recently, one of my friend digged in to metadata of TypeCode enum type and found out that, it does not have value 17 in it.   Even I was surprised to see this, and wanted to know the reason behind value 17 missing from the enumeration. I googled and found a link to blog which explains, why the value 17 has been missed from the enum. From the author: We’ve had this “hole” in the [...]