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);


Is it a bug?

1 comment
Comment actions Permalink


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
"Develop with pleasure!"


Please sign in to leave a comment.