예제 #1
0
        private void Add( Religion item )
        {
            Religion[] oldlist = list;

            list = new Religion[list.Length+1];
            oldlist.CopyTo( list, 0 );
            list[oldlist.Length] = item;
        }
예제 #2
0
        public bool ReadFromCSV( CSVReader reader )
        {
            ArrayList items = new ArrayList();

            // Skip first row
            reader.SkipRow();
            for ( ; ; ) {
                Religion item = new Religion();
                if ( !item.ReadFromCSV( reader ) ) break;

                items.Add( item );
            }

            list = new Religion[items.Count];
            items.CopyTo( list );

            return true;
        }