[C#] Dictionary Value 로 Class 사용하기
class 선언 public class Person { public int personNumber; public string name; public int age; public Person(int personNumber, string name, int age) { this.personNumber = personNumber; this.name = name; this.age = age; } } Dictionary dicPerson = new Dictionary(); dicPerson.Add(1001, new Person(1001, "홍길동", 36)); dicPerson.Add(1002, new Person(1002, "임꺽정", 26)); dicPerson.Add(1003, new Person(1003, ..
2021. 8. 24.