Asynchronous programming with async await

A simplified approach for asynchronous programming was introduced with Visual Studio 2012, that leverages asynchronous support in the .NET Framework 4.5 and higher as well as in the Windows Run-time. Here in this approach compiler does all the difficult work and application retains a logical structure that resembles synchronous code. As an...

Continue reading

Boxing and unboxing in C#

Boxing is a process to store or convert value type to an object type. In this case CLR wrap the value type to System.Object and stores it into managed heap. int a = 100; object obj = a; // boxing Unboxing is just oposite to boxing. It extracts the value type from object. object obj = 123; int a = (int)obj; //...

Continue reading