csf-dev / CSF.Reflection

MIT License
0 stars 0 forks source link

To allow DI, create an interface and non-static implementation of the reflector #12

Closed craigfowler closed 4 years ago

craigfowler commented 4 years ago

I'd like to be able to use the static reflection class as a service, in the usual dependency-injected manner.

This means I'd need an interface and a class which can be instantiated.

The static Reflect class would then be changed so that it just defers to a locally-cached singleton.