T
Tony Johansson
Hi!
Here I have an if clause that I have replaced with the special ternary
operor that use ? and : but
it doesn't work. Have I missed something here perhaps ?
if (index == 0)
index = myList.Count - 1;
else
index--;
index = index == 0 ? myList.Count - 1 : index--;
//Tony
Here I have an if clause that I have replaced with the special ternary
operor that use ? and : but
it doesn't work. Have I missed something here perhaps ?
if (index == 0)
index = myList.Count - 1;
else
index--;
index = index == 0 ? myList.Count - 1 : index--;
//Tony