Cyclomatic Complexity will be high for methods with a high number of decision statements including if/while/for statements. So how do we improve on it?
I am handling a
The last if in case 2 can be simplified:
if(isTrue) { if(e > 1) {
can be replaced by
if(isTrue && (e>1))
case 3 can be rewritten as:
new string[]{StringConstants.AAA,...} .Contains(e.PropertyName)
you can even make the string array into a HashSet to get O(1) performance.
HashSet