Category Archives: .NET

Working with Zip Files in .NET

By | October 19, 2013

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 edge on handling… Read More »

Setting Default Global Timeout for Regular expressions

By | October 18, 2013

In my previous post, I mentioned about the capability of specifying a Timeout while executing a Regular expression. Sometimes, when your application is totally developed, and it would be a heck to change every single code which uses regular expression to specify a timeout. Sometimes the Regular expression is parsed inside an external assembly. In such cases, you… 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 »

Sending raw JSON request to ASP.NET from JQuery

By | September 26, 2013

JSON or Javascript Object Notation has been quite popular these days because of being it is only a Key/Value pair, but also can significantly form a Tree structure of data. For small and precise Ajax communication, people are preferring JSON over XML or html because it is portable and very small in size. JQuery being one of the… Read More »