I was just playing around with some stuff at home where I was wishing that we had compile time attributes, it looks like XC# supports what I was looking for, I'll have to play with it a bit to be sure...

http://www.resolvecorp.com/Products.aspx