As a followup to my previous entry on faster reflection with expression trees, I have released the source on code plex and that is where i will actively be distributing updates through.
Some noteable changes are that now you retrieve an FastProperty instance through a factory method which will cache the property for subsequent reference. Also, I have merged everything into one class because I realized I was looking at what information I needed in the wrong places. Now you can just say FastProperty<object,object>.Make() and it won't throw a fit on binding.
Also added a couple of extension methods so that you can create a FastProperty from a PropertyInfo object, ie. var fastProperty = typeof(MyType).GetProperty("MyProperty").ToFastProperty();
Print | posted on Wednesday, July 09, 2008 2:19 AM