개발 중
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
@@ -18,9 +18,9 @@ namespace UVC.Extention
|
||||
/// var cityPopulation = new OrderedDictionary<string, int>();
|
||||
///
|
||||
/// // 데이터 추가 (순서대로 추가됨)
|
||||
/// cityPopulation.Add("서울", 9700000);
|
||||
/// cityPopulation.Add("부산", 3400000);
|
||||
/// cityPopulation.Add("인천", 3000000);
|
||||
/// cityPopulation.AddChild("서울", 9700000);
|
||||
/// cityPopulation.AddChild("부산", 3400000);
|
||||
/// cityPopulation.AddChild("인천", 3000000);
|
||||
///
|
||||
/// // 키를 이용한 값 접근
|
||||
/// Console.WriteLine($"서울 인구: {cityPopulation["서울"]}"); // 출력: 서울 인구: 9700000
|
||||
@@ -44,7 +44,7 @@ namespace UVC.Extention
|
||||
/// // - 인천: 3000000
|
||||
///
|
||||
/// // 항목 삭제
|
||||
/// cityPopulation.Remove("부산");
|
||||
/// cityPopulation.RemoveChild("부산");
|
||||
///
|
||||
/// Console.WriteLine("\n'부산' 삭제 후 도시 목록:");
|
||||
/// foreach(var city in cityPopulation)
|
||||
|
||||
Reference in New Issue
Block a user