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

How to understand 2 main() functions after using uftrace to profile the C++ program? -

c# - Update a combobox from a presenter (MVP) -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -