Tag Archives: .NET 4.0

Preview Selected Items in Visual Studio

By | September 17, 2013

You must have familiar with automatic previewing items once we select it from the solution explorer. We have discussed this features over here – “Preview Tab in Visual Studio” . Do you know, you can quickly enable or disable this features just directly from solution explorer? In the solution explorer,  you can select or deselect the “Preview Selected… Read More »

Initialize assemblies using PreApplicationStartMethod for ASP.NET 4.0 Application

By | August 27, 2011

Sometimes your ASP.NET application needs to hook up some code before even the Application is started. Assemblies supports a custom attribute called PreApplicationStartMethod which can be applied to any assembly that should be loaded to your ASP.NET application, and the ASP.NET engine will call the method you specify within it before actually running any of code defined in… Read More »

Lazy Initializer to defer expensive Object creation in .NET 4.0

By | June 30, 2011

.NET 4.0 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 »

Working with Co-Variance and Contra-Variance in .NET 4.0

By | June 29, 2011

If you literally think of variance, you would say variance is a concept in which if one data varies at a certain time, the other one will vary automatically. And rightly so. In case of .NET, variance comes just in such way. Lets talk about why we need variance or Co-variance in .NET.