public AnimationVO[] Collection(DataTable table) { int length = table.Rows.Count; AnimationVO[] result = new AnimationVO[length]; for (int i = 0; i < length; i++) { result [i] = new AnimationVO (); } return result; }
AnimationVO Init(DataRow dr) { if (dr == null) return null; AnimationVO VO = new AnimationVO (); VO.animationId = dr["animation_id"] as string; VO.title = dr["title"] as string; VO.url = dr["url"] as string; VO.index = Convert.ToInt32(dr["index"]); return VO; }