public NameAddressEntry(string name, string zip, string streetName, SexValues sex, int streetNumber, int age, string email, string phone) { this.Age = age; this.Sex = sex; this.Name = name; this.StreetName = streetName; this.StreetNumber = streetNumber; this.ZipCode = zip; this.EMail = email; this.PhoneNumber = phone; }
private string SexString(SexValues sex) { switch (sex) { case SexValues.Female: return("Female"); case SexValues.Male: return("Male"); default: return("Not quite sure..."); } }
public People(string name, SexValues sex) { Name = name; Sex = sex; }