Beispiel #1
0
        public static ExplicitCastExpressionSyntax ExplicitCastExpression(ExpressionSyntax pValue, SmallType pTargetType)
        {
            var e = new ExplicitCastExpressionSyntax(0, null);

            e.SetValue(pValue);
            e.TypeNamspace = pTargetType.Namespace;
            e.TypeName     = pTargetType.Name;
            return(e);
        }
Beispiel #2
0
 public virtual void Visit(ExplicitCastExpressionSyntax pNode)
 {
     pNode.Value.Accept(this);
 }
Beispiel #3
0
 public virtual SyntaxNode Visit(ExplicitCastExpressionSyntax pNode)
 {
     return(SyntaxFactory.ExplicitCastExpression(pNode.Value.Accept <ExpressionSyntax>(this), pNode.Type).WithAttributes(pNode));
 }