I want to inherit from MailAddress class to make a COM visible class, but MailAddress does not have a parameterless constructor, and COM doesn't have a mechanism to pass arguments to a constructor.
https://msdn.microsoft.com/en-us/library/system.net.mail.mailaddress%28v=vs.110%29.aspx
so, i have to create a class like this, thinking about in just create it and later modify its properties:
public class Recipient : MailAddress
{
public Recipient()
: base("")//this is the contructor that takes less parameters, but can also add the other contructor parameters here
{
}
}
but then i realize that i can't modify its properties, because they are all read-only
anyone knows why they are readonly? and the class Attachment is made alike.