public void AddSpouse(string memberName, string SpouseName, string gender) { var member = SearchMember(familyHead, memberName); if (member != null && member.Spouse == null) { Gender g = (FEMALE.Equals(gender)) ? Gender.Female : Gender.Male; Member sp = new Member(SpouseName, g, null, null); sp.AddSpouse(member); member.AddSpouse(sp); } }