Getting Lazy with .NET 4.0

By | March 22, 2011

.NET 2010 comes with lots of new features. Some relates to Technology while other relates to language enhancements. The huge class library that is there with .NET framework is also enriched with new classes. In .NET 4.0 there is a new set of classes which introduces a new concept called Lazy initializes. In this article I am going… Read More »

Annonymous objects in C#

By | March 21, 2011

Do you know C# 3.5 and above allows you to create anonymous types using Automatic Property initializers ? Yes, you can declare a type directly while you code to hold abstract data. Lets see how you can do this : var x = new { X = 20, Y = new MyObj(), Z = “New String” }; Well… Read More »

Setting the right target framework for a .NET project in Visual Studio 2010

By | March 20, 2011

In this Tips I’ll discuss about Client Profile which is nothing but a subset of the associated framework and optimized for client applications e.g. .NET Framework 4 Client profile is a subset of .NET Framework 4. You can view or change the target framework for a project in Visual Studio 2010 as displayed below Client Profile improves the… Read More »

Selecting Cache Provider On the Fly in ASP.NET

By | March 19, 2011

If you have multiple Cache Provider in your ASP.NET application you can  set the output cache provider dynamically at runtime .  This is extremely useful if want to store cache data in different storage based on the usages of the data. To use this features you need to override the GetOutputCacheProviderName() method within the Global.asax file of your… Read More »

Filter Properties in IntelliTrace Event Window

By | March 17, 2011

While dealing with IntelliTrace, sometime you must have noticed there are so many event capture by the IntelliTrace. You can filter them out by selecting categories from IntelliTrace Window which will minimize the number of events captured. As shown in below image, I have filtered the records on “ASP.NET” Categories,hence it’s displaying all the ASP.NET Related events. But… Read More »