private void setProps(PatientAssociate[] mdo) { if (mdo == null) { return; } pas = new PatientAssociateTO[mdo.Length]; for (int i = 0; i < mdo.Length; i++) { pas[i] = new PatientAssociateTO(mdo[i]); } count = mdo.Length; }