Do you still need to dispose attachments in .net v4 System.Net.Mail?
문제
With .net v3.5 or less it was required to manually dispose attachments after sending an email using SMTP client, is this still required in .net v4?
해결책
According to MSDN, the Dispose() method still exists in .net 4, and the notes still say you should call it, so I would assume nothing has changed.
다른 팁
Yes. The class is IDisposable and the MSDN example still calls Dispose on it.
제휴하지 않습니다 StackOverflow