In a previous blog I explored how to create a dynamic compiler. In this blog I'll explore how to create an evaluator that aids in the compilation of classes. It will take care of the ceremony needed to wrap the code into a class, compile it and retrieve the result.
Dynamic compilation is an awesome feature to add to your projects. Especially frameworks will benefit from the compilation of dynamic expressions and scripts. There are two main ways of doing it: the Code DOM Compiler or the Roslyn project. In this blog I will show how to implement them both.
Need to add named event support to your class? Implement the IEventHandling interface or extend from the abstract EventHandlingBase class. In this tutorial I explore how you can give your class named events.
In this tutorial I explore how an event list can be used to support scenarios with classes with a multitude of events. There is a way to decrease the number of private backing variables using an EventList
In a previous tutorial I explained how events can be implemented as properties on a class using Strongly Typed Events for TypeScript. Let's explore how these work on interfaces. Interfaces work a little different, because they don't have getters and setters on them (at least nog in TypeScript 1.8). Let's explore how these work on interfaces.