Ghost1372

everything can be handy

DictionaryExtensions

Available Extensions
Clone
AddIfNotExists
Update
DeleteIfExistsKey
DeleteIfExistsValue
AreValuesNull
AreKeysNull

Example

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

var dupdictionary = dictionary.Clone();

//

dictionary.AddIfNotExists(key, value);

//

dictionary.Update(key, value);

//

dictionary.DeleteIfExistsKey(key);

//

bool areNull = dictionary.AreValuesNull();

Demo

you can run demo and see this feature.

0%