UnaryExpressionType() public static method

public static UnaryExpressionType ( UnaryExpressionType type ) : string
type UnaryExpressionType
return string
Ejemplo n.º 1
0
        public override void Visit(WUnaryExpression node)
        {
            node.Expression.Accept(this);
            string expr = this.dfsStack.Pop();

            string nodeStr = $"{TsqlFragmentToString.UnaryExpressionType(node.ExpressionType)}{expr}";

            this.dfsStack.Push(nodeStr);
        }
Ejemplo n.º 2
0
 internal override string ToString(string indent)
 {
     if (OneLine())
     {
         return(string.Format(CultureInfo.CurrentCulture, "{0}{1}{2}", indent,
                              TsqlFragmentToString.UnaryExpressionType(ExpressionType), Expression.ToString("")));
     }
     else
     {
         return(string.Format(CultureInfo.CurrentCulture, "{0}{1}\r\n{2}", indent,
                              TsqlFragmentToString.UnaryExpressionType(ExpressionType), Expression.ToString(indent)));
     }
 }