public static IsComparison ( this op ) : bool | ||
op | this | |
return | bool |
public static bool IsComparison(this BinaryOperatorKind op)
{
switch (op)
{
case BinaryOperatorKind.Less:
case BinaryOperatorKind.Greater:
case BinaryOperatorKind.LessEqual:
case BinaryOperatorKind.GreaterEqual:
return true;
default:
return false;
}
}