| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 |
Tags
- LogonUI
- 깃티
- Gitea 설치
- jellyfin
- Gitea GPG
- 트레이아이콘
- Capcom
- Resident
- Re
- 깃티설치
- DataGridView
- checkbox
- 시놀로지
- Header
- Resident Evil
- trayicon
- gitea
- gitea설치
- synology
- unable to boot the simulator
- 깃티gpg
- theme
- DataTable
- gfd
- toroisegit
- CmdKey
- 젤리핀
- 시놀로지깃티설치
- Column
- c#
Archives
- Today
- Total
C O D I N G
Dictionary 탐색중 삭제하기 본문
Dictionary<Key, Value> 형태로 쓰게되는데
Key값으로 Loop(반복문)를 돌리고
해당Key만 삭제하면 된다.
foreach(string sKey in Dictionary.Keys.ToList())
{
// Dictionary.Keys[sKey] == value; <- Key로 찾은 Value
Dictionary.Remove(sKey); <- Key를 이용해서 Value 삭제
}
'Programming > C#' 카테고리의 다른 글
| Virtual, Abstract, Interface (0) | 2017.11.06 |
|---|---|
| DataSource Binding 방법 (0) | 2017.10.31 |
| 캐스팅 as, is (0) | 2017.06.30 |
| DataGridView 스크롤시 열 고정, 구분자 (0) | 2016.12.22 |
| Enum에서 정한 Name을 index로 가져오기 (0) | 2016.12.22 |
