string[] botusers = new string[0];
MySqlDataReader reader = findCommand.ExecuteReader();
while (reader.Read())
{
for (var i = 0; i < reader.FieldCount; i++)
{
Array.Resize(ref botusers, botusers.Length + 1);
botusers[i] = /*Как добавить строку под номером i*/;
}
}
var botusers = new List<string>();
using(var reader = findCommand.ExecuteReader())
{
while(reader.Read())
{
botusers.Add(reader.GetString(1));
}
}
var botusers = new List<string>();
using(var reader = await findCommand.ExecuteReaderAsync())
{
while(await reader.ReadAsync())
{
botusers.Add(reader.GetString(1));
}
}