Closed christophdebaene closed 8 months ago
Indeed implemented interfaces by the given type are not checked right now, but only Interfaces
should be considered, not AllInterfaces
. You are welcome to add this functionality, just remember to write unit tests for it.
About the remaining two, I am not sure If they are needed, a user can easily achieve similar outcomes by writing custom functions that utilize the current version of AllReferencedTypes
.
First of all I like your project very much and planning to use it for more use cases.
Right now I am using it for scanning
Requests
from MediatR and consequently generate API client. Given the following class, thatCustomer
is also resolved.Extending the
SearchIn
enum withInterfaces
andAllInterfaces
. An extra boolean parameterincludeSelf
that includes the given type is also a nice functionality I found handy.Another option could be to make it more explicit and maybe add another method
AllReferencedTypesAndSelf
. Having an overload that accepts anIEnumerable<IType>
would also be handy.Interfaces
andAllInterfaces
onSearchIn
enumincludeSelf
IEnumerable<IType>
Please let me know where I can help or create a pull request for the given functionality.