Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: ForAllTypesContainsNamespace #308

Closed
danilo73r opened this issue Feb 15, 2021 · 2 comments
Closed

Feature request: ForAllTypesContainsNamespace #308

danilo73r opened this issue Feb 15, 2021 · 2 comments

Comments

@danilo73r
Copy link

馃殌Feature request

Description: A Method like ForAllTypesInNamespace, but that allows to include all types that belong to a namespace that contains a supperior hierarchy.
Type: Enhancement

Is your proposal related to a problem?

Maybe related with:
#306

Describe the solution you'd like

Namespaces structure:

  • Pocos
  • Pocos\PocosAccounting
  • Pocos\PocosOrders

Method:

ForAllTypesContainsNamespace(ASSEMBLY, "Sample.Pocos");

This method would include all types inside the sub namespaces.

Describe alternatives you've considered

This is possible with ForTypes method and Linq filtering:

ForTypes(typeof(PocoInvoice).Assembly.GetTypes().Where(....).ToArray());

Additional Ideas

This method is too close to this requested functionality. It would be better that have more options.

@chaowlert
Copy link
Collaborator

Cool idea, thank you for suggestion.

@danilo73r
Copy link
Author

thanks @chaowlert for all the fixes and features!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants