Contents tagged with .NET

  • Non-Zero Thread Latch

    No Comments July 24, 2014

    Isn't it great when something you wrote years ago suddenly becomes useful again... If you're in a situation, as a colleague of mine was this morning, where you are spinning up a number of threads to … more

  • List referenced Nuget Packages from the Package Manager Console

    No Comments October 21, 2013

    For reasons I won’t bore you with, I needed to work out what packages were installed in the solution I was working on, across all the component projects. This can be done with minimum fuss from the … more

  • Returning Sequences from Moq

    No Comments August 8, 2013

    I was asked earlier today about how to setup a mock object using Moq so that multiple calls to a method return different values. For example, given the following interface definition: public … more

  • Processing Multiple Threads with Unique Keys

    No Comments July 29, 2013

    A requirement cropped up the other day that required a way of allowing multiple processes to run at the same time, but only one instance of a given key at any time. In other words, if four processes … more

  • Unit Test Invocation On A Different Thread

    No Comments March 1, 2013

    A colleague nabbed me yesterday with a problem he needed some help with; he had a block of code that (in a vastly simplified form) looked like this: public interface IFoo { void ExecuteTask( … more

  • Fake Java enum implementation revisited

    No Comments December 2, 2012

    A while ago, I blogged about a fake Java style enum using C# using extension methods. As I initially suspected, I’ve ended up using this pattern on a fairly frequent basis. An updated version of the … more

  • Lazy binding with Ninject

    1 Comment November 23, 2012

    There may well be a much more elegant way of achieving the same goal, but this is what I’ve come up with. Now, I know that I will probably be denounced by those with far better Inversion of Control … more

  • NCrunch

    No Comments February 6, 2012

    A few months ago I was introduced by a colleague to a fantastic Visual Studio extension called NCrunch, and in a single stroke it has managed to almost completely change the way that I write, develop … more

  • Calling MVC Areas From WebForm Pages

    No Comments August 5, 2011

    I'm currently working on a project that involves moving a large classic ASP.NET WebForms application to ASP.NET MVC3; rather than completing re-implementing the system as MVC3 in one large hit, we're … more

  • Robots Failing In Orchard

    No Comments March 8, 2011

    I've been getting to grips with the excellent ASP.Net Orchard, and have fully migrated my old blog over to this platform over the last couple of weeks - the issue that I had with the application … more

  • Validating XML Documents In PowerShell

    3 Comments March 2, 2011

    I came across a problem the other day where a process that relied on several external XML documents was failing due to a combination of factors: The document had been hand-edited The document … more

  • Migrating To Orchard

    No Comments February 28, 2011

    It’s time to jump ship again and move to a new Blog system – this time I’ve settled on Orchard, a .NET CMS system with (amongst other things) a full-featured blogging engine. … more

  • ASP.NET MVC 1.0

    No Comments April 3, 2009

    Are Microsoft really starting to turn a page when it comes to Open Source? Let’s hope so; they’ve just released the source code to the (excellent) ASP.NET MVC framework under the OSI-approved MS-PL … more

  • Fake Java enums using C# extension methods

    No Comments March 25, 2009

    One of the nice features introduced into Java 1.5 that is missing in C# is enum types. In C#, enums are nothing more than a defined set of values with labels, whereas in Java enums can contain … more

  • Opening .NET

    No Comments October 4, 2007

    Scott Guthrie's blog entry "Releasing the Source Code for the .NET Framework Libraries" details how Microsoft are finally going to allow access to the .NET framework source code without having to … more

  • Testing Times Concluded

    No Comments December 8, 2006

    I shouldn't have got myself so wound up about the 70-536 exam I did this morning. The 'real world' questions were not nearly as bad as the Training Kit had me expecting, and there certainly weren't … more

  • Testing Times

    3 Comments December 7, 2006

    I'm sitting the 70-536 (Microsoft .NET Framework 2.0 – Application Development Foundation) exam tomorrow, and I sincerely hope that it's of a higher quality than the learning materials Microsoft … more

  • Monad Moanin'

    1 Comment November 20, 2006

    Last week, Microsoft quietly released Windows Powershell 1.0 (formally known as Monad) to the world. This is a great piece of technology that's worth taking some notice of - it's destined to become … more

  • XML Woes

    No Comments June 15, 2006

    Amongst the many roles I seem to undertake at my current employer (.NET Evangelist, NHibernate Evangelist, ATLAS Evangelist and so on), I also spend a large amount of my time dealing with XML … more

  • Transfer Completed

    No Comments August 31, 2005

    If you can read this, my domain has been successfully transferred from wwwserver to Netcetera. Whilst wwwserver provide an incredibly cheap Asp.NET hosting service and a very intuitive management … more