private static unsafe Assembly FindAssemblyOfMethodInCallStack(int callstackStart, int callstackSize, IntPtr[] callstack) { for (int i = callstackStart; i < callstackSize; ++i) { var methodPointer = callstack[i]; var eeType = SharpLangModule.ResolveEETypeFromMethodPointer(methodPointer); if (eeType.Value != null) { var runtimeType = SharpLangModule.ResolveType(eeType); return(runtimeType.Module.Assembly); } } return(null); }
unsafe public SharpLangTypeGenericParameter(SharpLangModule module, GenericParameterHandle handle) : base(null) { this.InternalModule = module; this.InternalHandle = handle; }
internal SharpLangAssembly(SharpLangModule mainModule) { this.Modules = new [] { mainModule }; }
public SharpLangTypeDefinition(SharpLangEEType* eeType, SharpLangModule module, TypeDefinitionHandle handle) : base(eeType) { this.InternalModule = module; this.InternalHandle = handle; }