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

Popular posts from this blog

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

android - ConstraintLayout: Realign baseline constraint in case if dependent view visibility was set to GONE -

c# - Populating Gridview inside Listview ItemTemplate On Web User Control from Code Behind -