Repository navigation
Extension Methods #141
Closed
GrumpyPaasta
started this conversation in
Ideas
Replies: 2 comments
|
The idea is cool, but it’s unclear how to document it so that it can be used everywhere. |
0 replies
|
Thanks for the suggestion — your extension methods are a perfectly reasonable approach for application code. After reviewing it, I don’t think SDL3-CS should add these methods to the public API for now. The wrapper already provides The equivalent library call is: string text = SDL.PointerToString(ev.Text) ?? string.Empty;Improving the XML documentation and discoverability of this existing helper would be a better fit. Thanks for raising the idea! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Not sure if it's something you want to do for the library, but I've found a few places where the return type is an IntPtr, and it makes sense for it to be that, for instance for TextEditingEvent and TextInputEvent and was personally making extensions methods to work with them. Please feel free to delete this, just giving an idea. Hopefully it didn't already exist somewhere and I missed it
All reactions