public DBEnumerator(User[] onlineUsers) { for (int i = 0; i < onlineUsers.Length; i++) { this.onlineUsers[i] = onlineUsers[i]; Reset(); } }
public DBManager() { onlineUsers[0] = new User("Tom Archer"); onlineUsers[1] = new User("Krista Crawley"); onlineUsers[2] = new User("Emma Murdoch"); }