private PInvokeILEmitter(MethodDesc targetMethod) { Debug.Assert(targetMethod.IsPInvoke); _targetMethod = targetMethod; _importMetadata = targetMethod.GetPInvokeMethodMetadata(); _marshallers = Marshaller.GetMarshallersForMethod(targetMethod); }
private PInvokeILEmitter(MethodDesc targetMethod) { Debug.Assert(targetMethod.IsPInvoke); _targetMethod = targetMethod; _importMetadata = targetMethod.GetPInvokeMethodMetadata(); _marshallers = Marshaller.GetMarshallersForMethod(targetMethod); }