wit-bindgen
wit-bindgen copied to clipboard
C#: Generate meaningful `ToString` methods for types
Per https://github.com/bytecodealliance/wit-bindgen/pull/968#issuecomment-2175527144, we should generate meaningful ToString method overrides, at least for types which are used as errors. This would allow us to generate a useful diagnostic message when constructing WitExceptions, which application code can catch and print.