using System.Collections.Generic;
public string Id { get; set; }
public string Email { get; set; }
public User(string id, string email)
public static void Main()
var user1 = new User("1111", "bob@example.com");
var user2 = new User("2222", "jane@example.com");
var user3 = new User("1111", "bob@example.com");
Console.WriteLine("Are the two users with the same ID and email equal?");
Console.WriteLine(user1 == user3);
var users = new Dictionary<User, string>();
users.Add(user1, "bobby2010");
users.Add(user2, "jane2023");
Console.WriteLine(users[user1]);
Console.WriteLine(users[user3]);