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

CreateFunctionPointer() public method

public CreateFunctionPointer ( EXPRFLAG nFlags, CType pType, EXPR pObject, MethWithInst MWI ) : Microsoft.CSharp.RuntimeBinder.Semantics.EXPRFUNCPTR
nFlags EXPRFLAG
pType CType
pObject EXPR
MWI MethWithInst
return Microsoft.CSharp.RuntimeBinder.Semantics.EXPRFUNCPTR
        public EXPRFUNCPTR CreateFunctionPointer(EXPRFLAG nFlags, CType pType, EXPR pObject, MethWithInst MWI)
        {
            Debug.Assert(0 == (nFlags & ~(EXPRFLAG.EXF_BASECALL)));
            EXPRFUNCPTR rval = new EXPRFUNCPTR();
            rval.kind = ExpressionKind.EK_FUNCPTR;
            rval.type = pType;
            rval.flags = nFlags;
            rval.OptionalObject = pObject;
            rval.mwi = new MethWithInst(MWI);
            Debug.Assert(rval != null);
            return (rval);
        }