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
I have an interface that I would like to duck type that returns enum types and takes enum types as parameters.
e.g.
publicenumStatus{Started,Running,Finished,}publicclassCalculator{publicStatusCalculate(CalculationTypecalculationType){// ... some very complex calculationsreturnStatus.Finished;}}
When attempting to call functions like Calculate with an impromtu interface created using ActLike<T> I receiving binding exceptions.
I noticed in the InterfaceDictionaryWrappedTest() mapping int to TestEnum works well but I cannot find a way to create an impromtu interface for something like the example above.
Is there a way to do this?
The text was updated successfully, but these errors were encountered:
Submitted #32 with a failing test - also passing tests with what I managed to achieve. I am interested in the most convenient way to work with enum parameters where the type cannot be referenced statically.
I have an interface that I would like to duck type that returns enum types and takes enum types as parameters.
e.g.
When attempting to call functions like
Calculate
with an impromtu interface created usingActLike<T>
I receiving binding exceptions.I noticed in the
InterfaceDictionaryWrappedTest()
mappingint
toTestEnum
works well but I cannot find a way to create an impromtu interface for something like the example above.Is there a way to do this?
The text was updated successfully, but these errors were encountered: