MailMessage.Attachments.Add is red Permanently deleted user Created December 28, 2005 20:03 This code shows that Add is not valid but it compiles and works fineAttachment a=new Attachment(attachmentRow.FullPath);message.Attachments.Add(a);Is it a bug?
Shimon,
Yes, it looks like a bug, caused by the problem in caches. Please, try to
type an empty line somewhere at the top of the file, it will lead to reparse
and rehighlight. If the problem persists, try to close and reopen the
solution. It might help.
--
Sergey V. Coox
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"