Archive for

Replace all UUIDs in an ATL COM DLL.

1. Introduction. 1.1 Recently, a friend asked me for advise on a very unusual requirement. 1.2 He needs to replace all UUIDs in a COM DLL with new ones. 1.3 He does not have the source codes to the original COM server so any modifications will have to be done on the binary code. 1.4 … Continue reading

Explore Possibilities with MSIL.

1. Introduction. 1.1. It will be hard to find an intermediate and advanced .NET programmer who has not heard of MSIL. 1.2 I have occasionally worked with IL code in the past, specifically when there is a need to modify the declarations of parameters and attributes for the purpose of interop marshaling. 1.3 Then last … Continue reading

How C# Extension Methods Work

1. Introduction. 1.1 Extension methods were introduced in C# 3.0. 1.2 The main purpose of extension methods is to provide for seamless integration of new functionalities to existing classes. 1.3 I have personally used extension methods to great effect in my projects and I intend to share some of my extension methods with readers in … Continue reading