public static ReqlExpr TranslateUnary( ExpressionType type, ReqlExpr term ) { switch( type ) { case ExpressionType.Not: return term.Not(); default: throw new NotSupportedException( "Unary term not supported." ); } }