MailMessage.Attachments.Add is red

This code shows that Add is not valid but it compiles and works fine
Attachment a=new Attachment(attachmentRow.FullPath);

message.Attachments.Add(a);

Is it a bug?


1 comment
Comment actions Permalink

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!"


0

Please sign in to leave a comment.