Lazy Initializer to defer expensive Object creation

0 comments
.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. Here is a discussion how simply you can use Lazy initialize to defer the execution of a method or property for values to whenever it is required.

Operator Overloading with Implicit and Explicit Casts in C#

0 comments
Its been a very common mistake of not declaring implicit and explicit cast operator overloads while working with data types which might take part in some calculations in long run. Many of the developers don't know why we use checked or unchecked while doing calculations. This post is an article on how you can use Cast overloads to get your job done easily when you require your type to take part in arithmetic operations and casts to arithmetic data types.

Notion of System.Nullable - A Look

0 comments
C# has lots of flexibilities and hooks to turn around things that was impossible for other languages. One of such thing is the introduction of Nullable Types. Here is a discussion of how you could use Nullable to make sure your code works well for null values in Value Types.

Garbage Collection Notifications in .NET 4.0

0 comments
Memory management is primary for any application. From the very beginning, we have used destructors,  or deleted the allocated memory whilst using the other programming languages like C or C++.  C# on the other hand being a proprietor of .NET framework provides us a new feature so that the programmer does  not have to bother about the memory deallocation and the framework does it automatically.

How to create a WCF service without Visual Studio

0 comments
WCF is the first step in building a truly service oriented application for you. It is the most important when working with distributed architecture.Visual Studio is capable of creating its own configuration settings that helps in developing our application with ease. But what if you don’t have Visual Studio? Here is the details to implement one of the most basic WCF service without using Visual Studio and how to interact with the service. Lets do it step by step:

Partial Methods

0 comments
Partial classes allows you to divide your own class in one or more files but during runtime the files would be merged to produce a single coherent object. By this way the classes could be made very small and also easily maintainable.

.NET Community Session : ASP.NET 4.0 In - Depth

0 comments
ASP.NET 4.0 comes with lots of new features that enhance the developers to deal with ASP.NET applications easily and also core functionality to deal with both server side and client side of an ASP.NET application. These changes makes ASP.NET 4.0 applications more effective than the existing ASP.NET applications.

XML Binding in WPF with Sample RSS reader

0 comments
XAML being getting more and more popular is also introduced for Mobile applications. Recently while I was exploring on the internet, I found that the recent version of Windows 7 mobile interfaces uses Silverlight to deal with the interface.