コード例 #1
0
        public object VisitNullPropegator(NullPropegatorExpression node)
        {
            object value = node.Left.Accept(this);

            if (value is null)
            {
                value = node.Right.Accept(this);
            }
            node.Type = node.Left.Type;
            return(value);
        }
コード例 #2
0
 public Expression VisitNullPropegator(NullPropegatorExpression node)
 {
     node.Left.Accept(this);
     node.Right.Accept(this);
     return(node);
 }