No, the VB-style expressions are not allowed. If you insist on that
idiom, you could do:
switch (pos.CompareTo(0))
{
case -1:
// < case
break;
case 0:
// = case
break;
case 1:
// > case
break;
}
Only if you don't mind people thinking your code is weird, though.
-rick-