I am comparing the max and min of 6 variables which i calculated separately and then i would do a switch. The problem is, when i am doing max comparison using Math.Max(var1, var2, var3, var4, var5, var6), i am getting the below error.
“Overload resolution failed because no accessible ‘Max’ accepts this number of arguments”
Can someone help please. Started learning recently.