
Learn how to generate and compile .NET assemblies at runtime in VB.NET using System.CodeDom.Compiler and System.Reflection.Emit, including a template-like generic programming example.

So let me present the example where we can use Reflection and Reflection.Emit to do something interesting.

So let me present the example where we can use Reflection and Reflection.Emit to do something interesting.
One not so well known feature of .NET platform is possibility to invoke compiler and practically create code and assembly from running instance of application. It is possible to do that in two ways. First one is a bit simpler and involves namespaces System.CodeDom and System.CodeDom.Compiler, second one is more efficient and utilizes namespace System.Reflection.Emit. Since there are very few examples about how to use System.CodeDom.Compiler I will start with it.
During last year I wrote an article about DTS and how to use it in VB.NET. In that article I stated that I didn’t manage to solve the problem related to CustomTask. Today I finally forced myself to tackle that problem again and here is the result.
In this article I will revisit Observer pattern and try to show how it can be modified and used to make web services to dispatch and receive notifications.
Shows how to adapt the Observer pattern for asynchronous notifications between SOAP web services using proxies, URLs, and persistent observer collections.
In this article I will try to introduce Visitor pattern and one possible variation on it. It treats problems related to projects projects where high level of adaptability is needed.
Explains the Visitor design pattern and a variation that uses type casting to support adaptable project designs.
During last year I wrote an article about DTS and how to use it in C#. In that article I stated that I didn’t manage to solve the problem related to CustomTask. Today I finally forced myself to tackle that problem again and here is the result. Writing simple CustomTask in C# is the easiest part.
In this article I will concentrate on enumerating, executing and changing properties or global variables of DTS package.
One not so well known feature of .NET platform is possibility to invoke compiler and practically create code and assembly from running instance of application. It is possible to do that in two ways. First one is a bit simpler and involves namespaces System.CodeDom and System.CodeDom.Compiler, second one is more efficient and utilizes namespace System.Reflection.Emit. Since there are very few examples about how to use System.CodeDom.Compiler I will start with it.
One significant task for developers (including myself) is doing some kind of automation of Microsoft Office. So, I will concentrate on the opposing side of the problem - how to use managed assembly from MS Office or VB script. In this article, I will discuss how to call managed code from unmanaged code.

This article requires knowledge of IL or at least desire to learn it. My intention is to give few illustrations where usage of IL is possible or only option.

The purpose of this article is to try to introduce observer pattern and compare it to .NET event delegate handling of notifications.

Delegates are a kind of type safe function pointers which are actually declared as class derived from System.MulticastDelegate.

I find C# a very interesting language and it also comes handy to analyze ILASM code.

Since I received copy of Visual Studio .NET Beta 2 and did not manage to find “ILAssemblyLanguageProgrammersReference.doc” which was included in beta 1 I decided to share my experience with other assembly enthusiasts.
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegisterMembers onlyWrite an article and earn +1,000 SHARP when it is approved.
Write an article