Ejemplo n.º 1
0
        private void Add( Religion item )
        {
            Religion[] oldlist = list;

            list = new Religion[list.Length+1];
            oldlist.CopyTo( list, 0 );
            list[oldlist.Length] = item;
        }
Ejemplo n.º 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;
        }