Archives by Tag 'C#'
A simplest/dumbest CSharp IDE
By admin - Last updated: Sunday, November 29, 2009
The tiny WPF app (14k) has a textbox allows the input of the C# code, it compiles the code and execute the code after press F5 key.
Here is what it looks like. No surprise.
The main part which compiles the code at runtime is using CSharpCodeProvider from Microsoft.CSharp namespace.
static CompilerResults Build(string code, IEnumerable<string> references)
{
[...]
C# Find All Derived Types From Assembly
By admin - Last updated: Sunday, November 15, 2009
I was always wondering if there is any method to find all derived types for the given type within an assembly. It would be handy to just pass either a class or an interface type and it will return me all its subs. I’ve come out with a method does that. It finds all [...]
