khellang/Scrutor

Public API

jvmlet opened this issue ยท 3 comments

Would you please expose ReflectionExtensions class as public ?

Hi @jvmlet! ๐Ÿ‘‹๐Ÿป

I'd like to avoid littering Type with all kinds of extension methods for all consumers of the library.

Any particular method you're interested in? Feel free to just copy the code if there's anything you need ๐Ÿ˜Š

I understand the issue with exposing extension methods as public....
Then maybe an interface with default implementations that gets Type and internally uses extension methods?
Or may be even replaces them?
The extensions you have for Type are very rich and expressive, I haven't found the library that provides similar query API for Type.
I'm using Scrutor discovery and filtering features, and will be great to have the same library to query the Type without duplicating it.

I don't think it's right for this library to expose Type extension methods like that, but you're free to take the code and do whatever you like ๐Ÿ˜Š