public QuestionnairePageArray(List <QuestionnairePage> mdo) { if (mdo == null || mdo.Count == 0) { count = 0; return; } pages = new QuestionnairePageTO[mdo.Count]; for (int i = 0; i < mdo.Count; i++) { pages[i] = new QuestionnairePageTO(mdo[i]); } count = mdo.Count; }
public QuestionnairePageArray(List<QuestionnairePage> mdo) { if (mdo == null || mdo.Count == 0) { count = 0; return; } pages = new QuestionnairePageTO[mdo.Count]; for (int i = 0; i < mdo.Count; i++) { pages[i] = new QuestionnairePageTO(mdo[i]); } count = mdo.Count; }