Пример #1
0
 private PInvokeILEmitter(MethodDesc targetMethod)
 {
     Debug.Assert(targetMethod.IsPInvoke);
     _targetMethod   = targetMethod;
     _importMetadata = targetMethod.GetPInvokeMethodMetadata();
     _marshallers    = Marshaller.GetMarshallersForMethod(targetMethod);
 }