From:
<car...@te...> - 2004-03-08 19:23:30
|
Hello: > ArrayList _list = new ArrayList(); > > while (_reader.Read()) > { > _list.Add(_reader.GetInt32(1)); > } > > _list.ToArray(typeof(float[])); > > that will add 1000 values to an arraylist and after cast it to an float > array. There is nothing more eficient? In first i think that no, but why are you reading data as an integer and casting them to float at the end ?? ( i mean why you are not reading it directly as float ?? ) -- Best regards Carlos Guzmán Álvarez Vigo-Spain |