-
Notifications
You must be signed in to change notification settings - Fork 56
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
enum : short crashes #53
Comments
Hi, thanks for reporting the issue! I'm on holiday now; I should be able to fix it on the weekend or the beginning of next week. In the meantime, the solution could be to use This can be time consuming if you have a lot of enum properties, but I can't think of another way of doing it unfortunately. I'll post any updates on the progress in this thread. |
Just a small update: there are some new things I'd like to add to the next release, so I will release the new version probably in a couple of days. Right now there is a TypeGen NuGet package on the dev branch (in the Until the next version is released you can use this package locally, and of course I'll post an update here when I make the release. |
I just released version 2.3.0, which should fix this issue. |
It will crash in Generator.cs, in
GetEnumValueText(object enumValue, Type type)
on linevar enumValueInt = (int)enumValue;
because that is invalid cast (note that enumValueInt= (int)(short)enumValue would work).Could this be fixed, and is there some way to disable enum generation in the meantime? I would be fine with numbers instead of all enums.
The text was updated successfully, but these errors were encountered: