-
-
Notifications
You must be signed in to change notification settings - Fork 231
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add an overload to the "ToDynamicList" method which accepts a Type #48
Comments
You mean the a new extension method should be added like: public static List<dynamic> ToDynamicList([NotNull] this IEnumerable source, [NotNull] Type type) Which will generate a typed result list from Type type? |
Yes @StefH! That is it! What do you think about it? Possible, good idea? For me that would be very useful! Thanks :) |
Good idea, yes. |
You could also reuse the code I just posted above and make a call to the existing ones you have through reflection. I could fork it and do it if you would like me to. Cheers! |
Should be fixed. See new nuget. |
Thanks for that! I will have a look as soon as possible. Cheers! |
@rpaschoal Did you have time to take a look ? |
@rpaschoal Any update? |
Hello @StefH, I will have a look in a few days... I am currently enjoying some holidays! Thanks :) |
@rpaschoal Any luck ? |
@rpaschoal Any update? |
Closing |
Hello @StefH,
Is it possible to add a new overload to the existing "ToDynamicList" extension method which accepts an instance of a Type class in order to return a typed list?
This may also come as an enhancement to the library itself since most people use it for dynamic operations which they may only know the type of their data at runtime.
As a workaround for now I did the following which is a bit nasty but it is working:
Many Thanks!
The text was updated successfully, but these errors were encountered: