Ghost1372

everything can be handy

CollectionExtensions

Available Extensions
AddRange
Clone
AddIfNotExists
UpdateValue
DeleteIfExists
AreValuesNull

Example

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

collection.AddRange(items);

//

var dupcollection = collection.Clone();

//

collection.AddIfNotExists(item);

//

collection.UpdateValue(item, newItem);

//

collection.DeleteIfExists(item);

//

bool areNull = collection.AreValuesNull();

Demo

you can run demo and see this feature.

0%