You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add support for using enums in ToString in addition to strings. Developers can't remember the available string option values, but could use Intellisense to view and select their desired value.
The text was updated successfully, but these errors were encountered:
Ah, ok. Yeah, Intellisense won't recognize that parameter definition.
Your approach is definitely creative, but beyond the capability of IDEs to handle. The IDE is scanning the parameter types and when it sees OneOf<,>, it has no clue what a OneOf does or how it should interpret the type parameters defined for it.
You might consider two overloads,:
ToString(string, string)
ToString(BuiltinRender, Language)
That should solve the issue. It is a nice tool. I searched for a long time before I found it!
Add support for using enums in ToString in addition to strings. Developers can't remember the available string option values, but could use Intellisense to view and select their desired value.
The text was updated successfully, but these errors were encountered: