我有一个字符串列表.
我想在其中删除一个如下:
settings.RecentSearches.Keys.Remove(itemToAdd.Key);
settings.RecentSearches.Keys.Add(itemToAdd.Key);
Run Code Online (Sandbox Code Playgroud)
错误:
Mutating a key collection derived from a dictionary is not allowed.
Run Code Online (Sandbox Code Playgroud)
我想在其中添加和删除值.
我能做什么?
| 归档时间: |
|
| 查看次数: |
2205 次 |
| 最近记录: |