C# design for implementing mulitple condition evaluation with tracability -
i have requirement there group of conditions have evaluate on input data. , each evaluation have capture trace data. like
group 1 ((input.attribute1 > {some fixedvalue} && input.attribute2.contains("somefixedvalue")) || (input.attribute3 < 'somefixedvalue')) finally input have have detail trace input value , evaluated value , condition failed.
and there multiple groups these, each group having multiple such conditions
presently each group of conditions have created function , each condition have created single if statements , capture values inside if statement. have many such groups , each group has many such conditions. thinking if there better way/pattern implement this.
Comments
Post a Comment