【发布时间】:2013-03-13 07:45:34
【问题描述】:
我有以下课程:
public class MailData : IDisposable
{
public IDictionary<String, Tuple<Byte[], String>> Attachments { get; set; }
public String From { get; set; }
public IList<String> To { get; set; }
public MailType Type { get; set; }
} // MailData
处置课程的正确方法是什么?
我的意思是,我想我应该从Dictionary 中删除所有Byte[] ...
其他属性呢?
【问题讨论】:
-
你在使用哪些非托管资源?
标签: c#