考虑我是否有Dictionary<Key,List<item>> TestDictionary
如果我做:
List<item> someCollection;
TestDictionary.TryGetValue(someKey,out someCollection); //assuming that someCollection will not return null;
someCollection.add(someItem);
对象someItem会被添加到集合中的DictionaryvalueTestDictionary[someKey]吗?