示例#1
0
 public InteropRecipientCollection(RecipientCollection outer)
 {
     this._count = outer.Count;
     if (this._count == 0)
     {
         this._handle = IntPtr.Zero;
     }
     else
     {
         int num = Marshal.SizeOf(typeof(MapiMailMessage.MAPIHelperInterop.MapiRecipDesc));
         this._handle = Marshal.AllocHGlobal((int) (this._count * num));
         int num2 = (int) this._handle;
         foreach (Recipient recipient in outer)
         {
             Marshal.StructureToPtr(recipient.GetInteropRepresentation(), (IntPtr) num2, false);
             num2 += num;
         }
     }
 }
示例#2
0
 public MapiMailMessage()
 {
     this._files = new ArrayList();
     this._recipientCollection = new RecipientCollection();
     this._manualResetEvent = new ManualResetEvent(false);
 }