Skip to content

Commit eb7fc4a

Browse files
committed
Established new MemberAccessor class for efficient reflection
When getting or setting e.g. property values via reflection, we're currently doing this using e.g. `PropertInfo.GetValue()` or `PropertInfo.SetValue()`. This is slow, as it first needs to dynamically generate a delegate. Since we have some knowledge of what types of members we'll be calling and what their signatures look like ahead of time, we can generate our own delegate, and then cache objects with these delegates, thus improving performance significantly. The `MemberAccessor` does this. This is the first step toward implementation. Currently, the `MemberDispatcher` still calls reflection directly. This class will later be refactored into a set of extension methods which will operate off of `MemberAccessor`.
1 parent 11c5cde commit eb7fc4a

File tree

1 file changed

+363
-0
lines changed

1 file changed

+363
-0
lines changed

0 commit comments

Comments
 (0)