Contents tagged with C#

  • Micro ORMS: a little play with peta poco and others.

    Tags: C#, Micro ORM

    I went to a talk at the Midlands Developer Network, a user group based near Coventry, UK, that try to meet up once a month on Micro ORM’s.A Micro ORM is essentially a cut-down version of a standard … more

  • How to get a collection of exports from MEF

    Tags: C#, MEF

    Had fun today, learning MEF! I wanted to be able to get multiple exports available in the catalogue to be accessible through a property on a class. For example say I have a collection of log providers … more

  • 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

  • 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