91
Note that Dictionary is not a 100% drop in replacement for HashTable.
There is a slight difference in the way they handle NULLs. The dictionary will throw an exception if you try to reference a key that doesn't exist. The HashTable will just return null. The reason is that the value might be a value type, which cannot be null. In a Hashtable the value was always Object, so returning null was at least possible.
'Knowledge' 카테고리의 다른 글
[스크랩] 비틀즈로 알아보는 모노와 스테레오의 차이 (0) | 2018.06.04 |
---|---|
SnapLock (0) | 2018.06.04 |
[스크랩] [C#] 람다식 작성 (0) | 2018.05.30 |
[.NET] ListView와 ListBox의 차이점 (0) | 2018.05.30 |
[UWP] StorageFolder.GetFoldersAsync Method (0) | 2018.05.26 |