Category Archives: .NET Tips and Tricks

How exception filters can help you investigate runtime errors in C#

By | July 2, 2016

Exception filters are not new. Its been there for a long time (at least for than a year) as it is been released with .NET framework 6.0. But I do see developers don’t know the basic advantages of using exception filters and use code inside catch to determine problems. Let us look how exception filters can help you… Read More »

View Help with in Same Code Window – Peek Help in Visual Studio 2013

By | December 27, 2013

Peek Help feature enables the Visual Studio 2013 users to view the code help ( MSDN documentation ) with in same code window. This increases the overall productivity of the developers – getting things done without distracted by the other things. The Peek Help feature is very similar to the “View Code Definition”, where we have seen how… Read More »

How to Create an Attached Properties in WPF

By | October 12, 2013

Well, attached properties, just like normal properties are an object of Dependency Property, but with a very special point embedded into it. Even though the attached properties can only be added to a class which inherits from DependencyObject and also the property where it is attached to should also be a dependency property itself, an Attached property in… Read More »

How to implement Event Accessors and Single Handler Events

By | October 9, 2013

Event accessor is not new concept. It has been part of C# language from its inception. If you have ever built a class which has an Event with it, you might have already used it. The .NET automatically adds one Event Accessor inside the event when you define one without it. Unlike VB.NET, the event accessor does not… Read More »

Conditional Compilation with Precompiler Directives in C#

By | October 8, 2013

Coming from C or C++, C# has always the flexibility to handle directives. The directives are well known in those languages, but most of the developers don’t know that these things still exists in C#. There are few pre-processor directives available on C# which help you to define a constant which is replaced during compile time, or even… Read More »

Easy Search within Visual Studio Dependency Diagrams

By | October 7, 2013

Dependency Graphs in Visual Studio allows us to explore and understand the code in a better and visual way. In this tip you will learn how you can search some components from  the Visual Studio generated dependency diagram very effectively.  First of all, lets have a look how to generate the dependency diagram.  If you want to manage… Read More »