Using expression trees to optimize your code

January 15, 2011

Hi, A few days ago I wanted to use attributes to make my code easier. The problem was that It cost me in performance and I couldnโ€™t afford it at this point of the code, so I decided to use expression to optimize my code. Lets say we want to make a attribute that will set a default value for a property 1: public class Person 2: { ...