public class User{ public string UserName { get; set; } public string Password { get; set; }}
User[] user = new User[2];for (int i = 0; i < user.Length; i++){ Console.WriteLine("Pick a username: "); user[i].UserName = Console.ReadLine(); Console.WriteLine("Pick a password: "); user[i].Password = Console.ReadLine();}