Skip to content

Commit

Permalink
Fix for incorrect visibility on properties
Browse files Browse the repository at this point in the history
  • Loading branch information
andyedinborough committed Mar 13, 2012
1 parent 8c58458 commit 50e33cd
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions MailMessage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ public static implicit operator System.Net.Mail.MailMessage(MailMessage msg) {
ret.ReplyToList.Add(a);
foreach (var a in msg.To)
ret.To.Add(a);
foreach (var a in msg.Attachments)
ret.Attachments.Add(new System.Net.Mail.Attachment(new System.IO.MemoryStream(a.GetData()), a.Filename, a.ContentType));
foreach (var a in msg.AlternateViews)
ret.AlternateViews.Add(new System.Net.Mail.AlternateView(new System.IO.MemoryStream(a.GetData()), a.ContentType));
foreach (var a in msg.Attachments)
ret.Attachments.Add(new System.Net.Mail.Attachment(new System.IO.MemoryStream(a.GetData()), a.Filename, a.ContentType));
foreach (var a in msg.AlternateViews)
ret.AlternateViews.Add(new System.Net.Mail.AlternateView(new System.IO.MemoryStream(a.GetData()), a.ContentType));

return ret;
}

Expand All @@ -59,19 +59,19 @@ public MailMessage() {
AlternateViews = new List<Attachment>();
}

public DateTime Date { get; private set; }
public string[] RawFlags { get; private set; }
public Flags Flags { get; private set; }
public DateTime Date { get; set; }
public string[] RawFlags { get; set; }
public Flags Flags { get; set; }

public int Size { get; internal set; }
public string Subject { get; private set; }
public string Subject { get; set; }
public ICollection<MailAddress> To { get; private set; }
public ICollection<MailAddress> Cc { get; private set; }
public ICollection<MailAddress> Bcc { get; private set; }
public ICollection<MailAddress> ReplyTo { get; private set; }
private ICollection<Attachment> Attachments { get; set; }
private ICollection<Attachment> AlternateViews { get; set; }
public MailAddress From { get; private set; }
public ICollection<Attachment> Attachments { get; set; }
public ICollection<Attachment> AlternateViews { get; set; }
public MailAddress From { get; set; }
public MailAddress Sender { get; set; }
public string MessageID { get; set; }
public string Uid { get; internal set; }
Expand Down

0 comments on commit 50e33cd

Please sign in to comment.