static private ReadStandAloneMethodSig ( |
||
module | ||
br | IKVM.Reflection.Reader.ByteReader | |
context | IGenericContext | |
return | IKVM.Reflection.__StandAloneMethodSig |
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); }
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); } }