Stop Visual Studio Express 2012 from SCREAMING at you

I don’t develop .NET code professionally but I do like to keep my tools sharp in every direction – that includes knowing the latest technologies even if they don’t relate to JEE. Playing around with .NET means I need a good environment at a reasonable price (read free) and after trying SharpDevelop and VS Express a couple of years ago I decided that the best IDE for me was VS C# Express. After happily using it for more than 2 years I upgraded to VS Express 2012 for Windows Desktop (there’s…Continue Reading “Stop Visual Studio Express 2012 from SCREAMING at you”

  I KEEP six honest serving-men (They taught me all I knew); Their names are What and Why and When And How and Where and Who. Rudyard Kipling   What? In Prototyping the web API I started describing an idea to build a tool that can be used to try out/prototype web APIs before actually building a back-end implementation, helping a team to describe a clear and strict HTTP API, as well as allowing them to build and test client code without having written one…Continue Reading “Apis – The Web API builder”

This quick snippet will give you all the types declared in all the assemblies loaded, filtered by namespace. List<Type> types = new List<Type>(); Assembly[] assemblies = AppDomain.CurrentDomain.GetAssemblies(); foreach (Assembly asm in assemblies) { IEnumerable<Type> asmTypes = from t in asm.GetTypes() where t.IsClass && (t.Namespace != null && t.Namespace.StartsWith(targetNamespace)) select t; types.AddRange(asmTypes); } I actually got to this point because of the way NUnit wraps an assembly in another AppDomain. The snippet need Linq so it’s for 3.5 or newer.

NanoDI, a small .NET Dependency Injection container

Some time ago I worked on some projects using ASP.NET that were mostly ASPX with some specialized ASHX’s (c# behind the scenes). The handlers just generated some graphs or exported Excel files, regular code monkey style, no architecture, no plan, just write it fast – quick dirty hack, quick buck – and I always thought that these guys that accept .NET inferior stuff deserve what they get. As time flew by, I started to get a taste of what .NET is all about, luring me…Continue Reading “NanoDI, a small .NET Dependency Injection container”