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
When I include a custom control in another control, each using a different enum in a CalcBinding, the first enum tag to name mapping gets overwritten with the second.
This new value is then passed to DynamicExpresso and the string parsing fails with an exception.
Please see the attached code for a demonstration.
In the main window, it isn't able to decipher the PressureSource value because it tries to look it up against the FlowPath enum.
DynamicExpresso.Exceptions.ParseException
HResult=0x80131500
Message=No property or field 'eForecastPressureMethod_Wellhead' exists in type 'FlowpathType' (at index 12).
Source=DynamicExpresso.Core
StackTrace:
at DynamicExpresso.Parsing.Parser.GeneratePropertyOrFieldExpression(Type type, Expression instance, Int32 errorPos, String propertyOrFieldName) WpfXamlPlayground.zip
The text was updated successfully, but these errors were encountered:
ajphall
added a commit
to ajphall/CalcBinding
that referenced
this issue
Oct 18, 2021
When I include a custom control in another control, each using a different enum in a CalcBinding, the first enum tag to name mapping gets overwritten with the second.
This new value is then passed to DynamicExpresso and the string parsing fails with an exception.
Please see the attached code for a demonstration.
DynamicExpresso.Exceptions.ParseException
HResult=0x80131500
Message=No property or field 'eForecastPressureMethod_Wellhead' exists in type 'FlowpathType' (at index 12).
Source=DynamicExpresso.Core
StackTrace:
at DynamicExpresso.Parsing.Parser.GeneratePropertyOrFieldExpression(Type type, Expression instance, Int32 errorPos, String propertyOrFieldName)
WpfXamlPlayground.zip
The text was updated successfully, but these errors were encountered: