Microsoft.CSharp.RuntimeBinder.Semantics.ExprFactory.CreateUnaryOp C# (CSharp) Method

CreateUnaryOp() public method

public CreateUnaryOp ( ExpressionKind exprKind, CType pType, EXPR pOperand ) : EXPRUNARYOP
exprKind ExpressionKind
pType CType
pOperand EXPR
return EXPRUNARYOP
        public EXPRUNARYOP CreateUnaryOp(ExpressionKind exprKind, CType pType, EXPR pOperand)
        {
            Debug.Assert(exprKind.isUnaryOperator());
            Debug.Assert(pOperand != null);
            EXPRUNARYOP rval = new EXPRUNARYOP();
            rval.kind = exprKind;
            rval.type = pType;
            rval.flags = 0;
            rval.Child = pOperand;
            rval.OptionalUserDefinedCall = null;
            rval.UserDefinedCallMethod = null;
            Debug.Assert(rval != null);
            return (rval);
        }