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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Marshalling: Non-generic collections #243

Open
jasongin opened this issue Mar 22, 2024 · 1 comment
Open

Marshalling: Non-generic collections #243

jasongin opened this issue Mar 22, 2024 · 1 comment
Assignees
Milestone

Comments

@jasongin
Copy link
Member

.NET generic collection interfaces like IList<T>, IDictionary<T>, IEnumerable<T> are already supported for marshalling to/from equivalent JS collections.

This issue is about adding support for non-generic collections IList, IDictionary, IEnumerable and possibly some others.

I don't think non-generic collections are used much anymore, but maybe we should consider supporting them for completeness.

See also #242 about generic collection classes. We should also consider non-generic collection classes as part of this issue.

@jasongin jasongin added this to the Version 1.0 milestone May 17, 2024
@jasongin jasongin self-assigned this Jun 17, 2024
@jasongin
Copy link
Member Author

The challenge with non-generic collections is that the element type is not known (AKA object). So the marshaller needs to dynamically detect the type of each item and marshal it accordingly. So this is maybe related to #307.

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

No branches or pull requests

1 participant