Archive for November, 2009

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> […]

VS 2008 Project: Group/nest source code files

By admin - Last updated: Thursday, November 26, 2009

Like windows form project, the design code and source code are grouped together for the ease of code management. You can group any related files in to one expendable tree view. Before grouping After grouping That’s pretty handy aye! Unfortunately, there is no UI to do this. The only way I’ve found is to modify […]

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 the […]