on 10/20/2013 2:47 AM
I’ve done some small tests while writing the library to handle readonly objects in C#. Turns out that getting the value of a sub expression can be costly (since you have to compile the expression and execute). When just setting one property there can be a performance benefit of using the following syntax: new MyClass(1, “2”).With(m => m.MyProperty, 3) There might be some way of optimizing the code in order to get better performance for the form: new MyClass(1, “2”).With(m => m.MyProperty == 3) [...]
>> Read the full article on assertfail.gewalli.se
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper