How extension method works in .Net

Posted by Anuraj on Sunday, October 5, 2014

.Net .Net 3.0 / 3.5 Visual Studio

What is extension method

Why you shouldn't believe in your favorite .net decompiler

Posted by Anuraj on Saturday, October 4, 2014

.Net .Net 4.0 CodeProject Miscellaneous Visual Studio

Yesterday I posted about explicit interface implementation. I was curious about to know how CLR treats Explicit interface implementation. I looked into the generated IL code using IL DASM, and it was pretty similar to C# code I wrote. So I thought of reverse engineering the assembly. I verified the assembly with five .net decompilers. And only two provided the compilable code. Here is the .Net decompilers I used.

Explicit Interface Implementation in C#

Posted by Anuraj on Friday, October 3, 2014

.Net .Net 4.0 ASP.Net ASP.Net MVC CodeProject Visual Studio

If a class implements two interfaces that contain a member with the same signature, then implementing that member on the class will cause both interfaces to use that member as their implementation.

Download .NET Architecture Universe Poster - 2014

Posted by Anuraj on Monday, September 29, 2014

.Net .Net 4.0 Miscellaneous Visual Studio

.NET Universe Poster (2014) showing the main .NET SDKs, libraries and packages classified by application type and package type (NuGet, official support, etc.)

No more annual renewal fee for Windows developer accounts

Posted by Anuraj on Monday, September 29, 2014

Windows Phone

Windows Dev Center requires only a one-time registration payment, which grants developers the ability to submit apps to both the Windows Store and Windows Phone Store, with no annual renewal fee.

CreateObject equivalent for C#

Posted by Anuraj on Wednesday, September 17, 2014

.Net .Net 4.0 ASP.Net MVC Windows Forms

In current project, I had to use some 3rd party APIs, which is exposed via COM Interop. I found some VB.Net code to consume, but I couldn’t find in C# implementation for the same. Here is the code snippet which is equivalent VB.Net CreateObject method.

Serializing .NET dictionary

Posted by Anuraj on Tuesday, September 16, 2014

.Net .Net 3.0 / 3.5 .Net 4.0 ASP.Net MVC Unit Testing

Recently I had to implement XML Serialization in one of my class, it was deriving from base class, which has a dictionary property and XML Serialization was failing due to that. And here is the code snippet which will help you to serialize a .Net dictionary. It is implemented using IXmlSerializable interface

Copyright © 2017 - Anuraj P. Blog content licensed under the Creative Commons CC BY 2.5 | Unless otherwise stated or granted, code samples licensed under the MIT license. This is a personal blog. The opinions expressed here represent my own and not those of my employer. Hosted with ❤ by GitHub