Archives

Archives / 2010
  • Unit testing a private generic method

    Tags: C#, Unit Testing

    I had to create another useful test helper today which tests private generic methods. I realise test purists would say you should not test private methods but I find it a much quicker way of unit … more

  • Redirecting Assembly Binding

    Tags: C#

    Remembered a useful way to redirect assembly bindings to newer versions:

    1: <?xml version="1.0" encoding="utf-8" ?>

    2: <configuration>

    3: <runtime>

    4: … more

  • Get rid of someone’s TFS workspace

    Tags: TFS

    Not exactly a fan of TFS myself, especially with better source control platforms available such as Mecurial, SVN or GIT, I needed to delete another users workspace. Unfortunately that workspace was on … more

  • Simple read and display of hardcoded XAML

    Tags: XAML, Silverlight

    I found a useful solution to a problem with a path element today. I was trying to dynamically create the path on the fly. I had a lot of rendering issues. So instead I decided to just an XAMLReader to … more

  • Getting rid of magic strings in Raise Property Event

    Tags: C#

    I really dislike magic strings in code, and whenever I can I try to avoid using them either by using constants and what have you. So you can imagine what I felt like when I started raising property … more