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

Improve Support for data lists #588

Open
6 tasks
badcel opened this issue Mar 17, 2022 · 1 comment
Open
6 tasks

Improve Support for data lists #588

badcel opened this issue Mar 17, 2022 · 1 comment
Milestone

Comments

@badcel
Copy link
Member

badcel commented Mar 17, 2022

Verify if IEnumerable and / or support for foreach can be added for the following elements:

  • GLib.Array
  • GLib.Sequence
  • GLib.SList
  • GLib.List
  • Gio.ListModel
  • Gio.FileEnumerator

Is it possible to implement custom generic variants of the mentioned types so they integrate seemlessly with linq and allow easy data access?

Depending on the type of list there could be multiple interfaces be relevant:

  • IEnumerable
  • ICollection
  • IReadOnlyCollection
  • ...

sample API:

@mjakeman
Copy link
Member

mjakeman commented Mar 18, 2022

Maybe my earlier draft on GstIterator could help here: #157

Specifically Iterator.cs

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