public AppointmentTypeArray(IList <AppointmentType> mdos) { if (mdos == null || mdos.Count == 0) { this.count = 0; return; } this.count = mdos.Count; appointmentTypes = new AppointmentTypeTO[mdos.Count]; for (int i = 0; i < mdos.Count; i++) { appointmentTypes[i] = new AppointmentTypeTO(mdos[i]); } }
public AppointmentTypeArray(IList<AppointmentType> mdos) { if (mdos == null || mdos.Count == 0) { this.count = 0; return; } this.count = mdos.Count; appointmentTypes = new AppointmentTypeTO[mdos.Count]; for (int i = 0; i < mdos.Count; i++) { appointmentTypes[i] = new AppointmentTypeTO(mdos[i]); } }