Skip to content

Conversation

@adaamz
Copy link
Contributor

@adaamz adaamz commented Apr 27, 2020

Would be nice to have dynamic return type extension for this method.
Or we can remove support for object resolution and add generics :)

@hrach
Copy link
Member

hrach commented Apr 27, 2020

Or we can remove support for object resolution and add generics :)

AFAIK this cannot be solved with generics.

@hrach
Copy link
Member

hrach commented Apr 27, 2020

The second could provide IRepository<Author>. Though not AuthorsRepository.

@adaamz
Copy link
Contributor Author

adaamz commented Apr 27, 2020

Right, I'm using generics where I'm lazy to write extension 😄 probably not good idea.

Do you thing some of these can be solved via return extension?
I have something work in progress so I can add it there, it is failing test or failing test with some implementation difference :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants