gir.core
gir.core copied to clipboard
Support UserData
Currently user data is not generated. Create a UserData class which is pinned and is disposable and holds an arbitrary object.
Add an implicit conversion from object to UserData to allow easy passing of data.
The UserData parameter should be nullable.
The default value of the UserData parameter should be null.
This makes the api more similar to the GTK api and the user does not need to keep data alive as the UserData class is responsible for this task.