public class Address
{
public string streetno;
public string streetname;
public string suburb;
public string postcode;
public Country country;
}
public class Country
{
public string name;
}
public class Person<A>
where A : new()
{
public A address;
public Person()
{
address.country = new Country();
}
}
when i compile the above code i get the following error: error CS1061: 'A' does not contain a definition for 'country' and no extension method 'country' accepting a first argument of type 'A' could be found (are you missing a using directive or an assembly reference?)
any ideas on how I can over come this issue?