-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
honor type-annotations in parameter-declarations #6
Comments
Keys of a ResX-File might introduce a type-annotation, that get´s honored during code generation public static string Hello__userName(..., string userName)... instead of always falling back to public static string Hello__userName(..., object userName)... Utilizing existing formatting-annotations as for string.Format() might be a good idea as well. But solely utilizing these feels a bit of a too steep learning-curve for people just looking for a drop-in-enhancement to get a more typed and manageable acceess to localizables. |
initial design should honor:
More to consider: |
Also, the above list could be extended to also support built-in types as: what about: |
As a developer, I want the source-generator to honor primitive type-declarations in parameter-expressions of a ResX-File´s key value, to let the generator produce better typin gs while generating wrapper-methods, in order to ensure that I pass the correct value to a translation.
The text was updated successfully, but these errors were encountered: