public class User
{
public int id;
public string login;
}
public User[] users;
int index = 0;
while (reader.Read())
{
try
{
users[index] = new User();
users[index].id = reader.GetInt16(0);
users[index].login = reader.GetString(1);
}
catch { }
index++;
}
users