C

There are 4 entries for the tag C

Storing dynamically generated code to disk

Below I will show what it takes to generate a dynamic method at run-time and persist it to an assembly on disk. The assembly may later, at any time, be loaded normally from disk or referenced from other code and executed any number of times. This post is a minimal example just to practically show the lay of the land of dynamic code generation. Background (Skip this section if you just want to quickly review my sample!) This post is also the result from feedback on my previous posts Dynamic Code Generation in...

Dynamic Code Generation in .NET presentation with Anders Hejlsberg and myself online at Viddler

Please enjoy a tour of what coding was like before Dynamic Code Generation, what it is like today and what it will be like tomorrow! Presented by Anders Hejlsberg and myself! I did a presentation this year at Øredev where I spoke about Dynamically Code Generation on the .NET platform. Anders Hejlsberg himlself is part of my presentation in a video that he recorded just for us at Øredev. It is the same sample of using the Compiler as a service that he did at this years PDC. Here is the original post on that sample video: Dynamically Generated...

FlagsAttribute how to use it right

I like flags. Rarely do I get a chance to use them. Today the perfect opportunity came up and I recalled the "good way" of dealing with flags that I had found last time. After some digging I found it and I thought it is worthy of another post in another blog. So no news today just a helpful test class that shows exactly how to define and use an enum with the FlagsAttribute. [TestClass] public class FlagsTests { [Flags] public enum Metasyntactic { Noop...

Composite Oriented Programming spike on Unity Application Block

Suddenly the coolness of Qi4j starts seeping into the .NET community. There are now several proofs of concept available. And here is one more. There are two major differences with this post compared to the other ones out there: This spike does not rest upon the obvious and very suitable Castle project. This implementation uses another DI framework which I've learn to use and really like. It is not as evolved for sure but neither is it HUGE and complex. I used the Unity Application Block from Patterns & Practices. I...