I have this code on load:
I'm trying to read it into a static array defined in this class called session:
Can't get it to work, i'm thinking i may need to loop it somewhere but unsure as where!?
Code:
Reader = command.ExecuteReader(); Reader.Read(); while (Reader.NextResult) { session.gameList = Reader.GetValue(0).ToString(); }
Code:
class session { private static string[] gamelist; public static string[] gameList { get { return gamelist; } set { gamelist = value; } } }
Comment