Hi,
I need a dynamic array of objects, but don´t work.
its work :
DadosDoTime[] tt = new DadosDoTime[100];
int i = 0;
while (rd.Read())
{
tt[i] = new DadosDoTime();
tt[i].pos = 0;
tt[i].classificacao = 0;
i++;
}
its don´t work :
DadosDoTime[] tt;
int i = 0;
while (rd.Read())
{
tt[i] = new DadosDoTime();
tt[i].pos = 0;
tt[i].classificacao = 0;
i++;
}
why ?
--
Cleber Schönhofen
Infobola
I need a dynamic array of objects, but don´t work.
its work :
DadosDoTime[] tt = new DadosDoTime[100];
int i = 0;
while (rd.Read())
{
tt[i] = new DadosDoTime();
tt[i].pos = 0;
tt[i].classificacao = 0;
i++;
}
its don´t work :
DadosDoTime[] tt;
int i = 0;
while (rd.Read())
{
tt[i] = new DadosDoTime();
tt[i].pos = 0;
tt[i].classificacao = 0;
i++;
}
why ?
--
Cleber Schönhofen
Infobola
Comment