コード例 #1
0
        internal static SeriesOPMTitleCollection GetCollection(DataTable dataItems)
        {
            SeriesOPMTitleCollection listCollection = new SeriesOPMTitleCollection();

            SeriesOPMTitle current = null;

            if (dataItems != null)
            {
                for (int i = 0; i < dataItems.Rows.Count; i++)
                {
                    current = new SeriesOPMTitle(dataItems.Rows[i]);
                    listCollection.Add(current);
                }
            }
            else
            {
                throw new Exception("You cannot create a SeriesOPMTitle collection from a null data table.");
            }

            return(listCollection);
        }