Exemple #1
0
        public static tMD_MethodDef *GetMethodAndStore(void *pThis_, /*HEAP_PTR*/ byte **pTargetObj, void **ppNextDelegate)
        {
            tDelegate *pThis = (tDelegate *)pThis_;

            *pTargetObj = pThis->targetObj;
            if (ppNextDelegate != null)
            {
                *ppNextDelegate = pThis->pNext;
            }
            return(pThis->pTargetMethod);
        }
Exemple #2
0
        static tAsyncCall *ctor(byte *pThis_, byte *pParams, byte *pReturnValue)
        {
            // Note that the 'this' object is already allocated because this method is not
            // marked as 'InternalMethod' - it is marked as 'runtime'
            tDelegate *pThis = (tDelegate *)pThis_;

            pThis->targetObj     = ((/*HEAP_PTR*/ byte **)pParams)[0];
            pThis->pTargetMethod = ((tMD_MethodDef **)pParams)[1];
            pThis->pNext         = null;

            return(null);
        }
Exemple #3
0
        public static tMD_MethodDef *GetMethod(void *pThis_)
        {
            tDelegate *pThis = (tDelegate *)pThis_;

            return(pThis->pTargetMethod);
        }