gircore / gir.core

A C# binding generator for GObject based libraries providing a C# friendly API surface
https://gircore.github.io/
MIT License
301 stars 28 forks source link

Improve Support for data lists #588

Open badcel opened 2 years ago

badcel commented 2 years ago

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

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:

sample API:

mjakeman commented 2 years ago

Maybe my earlier draft on GstIterator could help here: https://github.com/gircore/gir.core/pull/157

Specifically Iterator.cs