I'm using a public API. One of the types has a property that is an array of a base class that needs to be populated with its derived classes (uniquely and one of each derived class).
How would I go about that?
addresses = new AddressInfo[]
{
new PhoneInfo{Number= "111-111-1111", Type = "Home"},
new EmailAddressInfo {MailTo = "home@email.com", Type = "Home"},
new MailingAddressInfo {Street = "101 Champagne Ave", City = "Los Angeles", State= "CA", Country = "US", Type = "Home"}
}