-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
Switch case and if-elseif conditional not supported #77
Comments
@okomeiht thanks for reporting the issue. Can you please show some code? |
@okomeiht, ok, I understood what you mean. I will try to fix it, when I will have some time. |
Ok thanks. Great job on the library. |
I am encountering the same problem. Thanks for looking into this^^ |
Any fix or workaround for this as of now? |
AFAIK the [Computed]
public SomeEnum Prop
get {
return condition1
? SomeEnum.One
: condition2
? SomeEnum.Two
: condition3
...
: SomeEnum.Hundred;
}
} |
@gvas Thanks, yes that works. Even normal switch case worked for me when I tried. Didnt try with if-else yet. This library is awesome! |
Hi Alexander,
I am working on a project where we use the Computed attribute on an enum.
The enum depends on some condition that is in a switch case. Unfortunatelly the switch case is not supported and the default value is always returned when I apply the Decompile Method.
We try to use If - elseif instead of the switch case but it does not work neither.
The text was updated successfully, but these errors were encountered: