kswoll / someta

General purpose meta programming with Fody
11 stars 3 forks source link

Provide ability for property interceptors to have the accessors injected into the interceptor #7

Closed kswoll closed 2 years ago

kswoll commented 5 years ago

This would allow the attribute to get access to the accessors outside of get/set access. Would be useful for constructing Lazy<T> with a factory.

kswoll commented 2 years ago

I think this can be achieved through simple reflection given access to the PropertyInfo in the get accessor. Or else just use the the state extension points to store the lazy field.