gir.core icon indicating copy to clipboard operation
gir.core copied to clipboard

Reduce string conversions

Open badcel opened this issue 5 months ago • 0 comments

The UTF8-Strings and Filename / Platform strings are currently always converted to C# strings. A user of the library perhaps does not want to display the path to the user but just use it as an input for another method.

In this case a method should probably accept a new type like "UTF8String" or "PlatformString" and there could be an overload which takes a C# string and does the conversion and calls the UTF8String based method. So the user can decide which method to use.

Idea came up as part of: https://github.com/PintaProject/Pinta/issues/1616#issuecomment-3070684867

badcel avatar Jul 14 '25 19:07 badcel