コード例 #1
0
ファイル: AssemblyLoader.cs プロジェクト: aromaa/ManagedCLR
        public TypeMethodHandle ReadMethod(BaseJIT jit, MethodDefinitionHandle methodHandle)
        {
            MethodDefinition methodDefinition = this.metadata.GetMethodDefinition(methodHandle);
            TypeDefinition   typeDefinition   = this.metadata.GetTypeDefinition(methodDefinition.GetDeclaringType());

            TypeHandle      typeHandle = this.typeLoader.LoadType(this.metadata, typeDefinition);
            MethodBodyBlock methodBody = this.peReader.GetMethodBody(methodDefinition.RelativeVirtualAddress);

            return(typeHandle.LoadMethod(jit, this, this.metadata, methodHandle, methodBody));
        }