ReadStandAloneMethodSig() static private method

static private ReadStandAloneMethodSig ( ModuleReader module, IKVM.Reflection.Reader.ByteReader br, IGenericContext context ) : IKVM.Reflection.__StandAloneMethodSig
module IKVM.Reflection.Reader.ModuleReader
br IKVM.Reflection.Reader.ByteReader
context IGenericContext
return IKVM.Reflection.__StandAloneMethodSig
Exemplo n.º 1
0
 private static Type ReadFunctionPointer(ModuleReader module, ByteReader br, IGenericContext context)
 {
     // TODO like .NET we return System.IntPtr here, but ideally we should fire an event in Universe that
     // the user can hook to provide a custom type (or we simply should build in full support for function pointer types)
     MethodSignature.ReadStandAloneMethodSig(module, br, context);
     return(module.universe.System_IntPtr);
 }
Exemplo n.º 2
0
        private static Type ReadFunctionPointer(ModuleReader module, ByteReader br, IGenericContext context)
        {
            __StandAloneMethodSig sig = MethodSignature.ReadStandAloneMethodSig(module, br, context);

            if (module.universe.EnableFunctionPointers)
            {
                return(FunctionPointerType.Make(module.universe, sig));
            }
            else
            {
                // by default, like .NET we return System.IntPtr here
                return(module.universe.System_IntPtr);
            }
        }