UnaryExpressionType() 공개 정적인 메소드

public static UnaryExpressionType ( UnaryExpressionType type ) : string
type UnaryExpressionType
리턴 string
예제 #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);
        }
예제 #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)));
     }
 }