mookid8000/Rebus — pull request #62 by ssboisen (2012-03-22 04:48:35+00:00)
Title: Small change to Snoop to avoid the use of magic-strings for propertynames

ExtractPropertyName method will use expression of func t to get the property name, this way when you select a property to send to SetValue you don't need to supply a string but can instead get type-safety. This is also awesome if you decide to rename that property.

Also, this is a couple of fun gists, but I thought it might be overkill to add it to Rebus, it's awesome though:

It uses a CIL reader from mono to get the backing field of a property from the cil, then you don't have to rely on your backingfields having a specific name that is exactly the same as the property except a lowercase first letter :)

https://gist.github.com/104006
https://gist.github.com/104001