You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Docs/index.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,16 +10,17 @@ The following collections are included in the package:
10
10
-`HashSetDictionary`: Collection of keys mapped to a hash set of unique values per key.
11
11
-`ListDictionary`: Collection of keys mapped to a list of values per key.
12
12
-`Map`: Collection of two types of values that map between each other in a bidirectional one-to-one relationship.
13
-
-`ReadOnlyHashSet`: Fast read-only wrapper around a HashSet (instead of going through `ISet<>`).
14
-
-`ReadOnlyList`: Fast read-only wrapper around a List (instead of going through `IList<>`).
13
+
-`AlternateLookup` nested types for each of the above collections that allow looking up values by alternate keys.
14
+
-`ReadOnlyHashSet`: Fast direct read-only wrapper for HashSets (instead of going through `ISet<>` like `ReadOnlySet` does).
15
+
-`ReadOnlyList`: Fast direct read-only wrapper for Lists (instead of going through `IList<>` like `ReadOnlyCollection` does).
15
16
- A full set of interfaces for the new collections as well as an `IReadOnlySet<>` polyfill for .NET Standard.
16
17
17
18
**Singulink.Collections.Weak** provides a set of collection classes that store weak references to values so that the garbage collector is free to reclaim the memory they use when they aren't being referenced anymore. The values returned by the collections will never be `null` - if the value was garbage collected then the collection behaves as if the value was removed from the collection.
18
19
19
20
The following collections are included in the package:
20
21
-`WeakCollection`: Collection of weakly referenced values that keeps items in an undefined order.
21
22
-`WeakList`: Collection of weakly referenced values that maintains relative insertion order.
22
-
-`WeakValueDictionary`: Collection of keys and weakly referenced values.
23
+
-`WeakValueDictionary`: Collection of keys and weakly referenced values with `AlternateLookup` support.
Copy file name to clipboardExpand all lines: README.md
+6-7Lines changed: 6 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,16 +14,17 @@ The following collections are included in the package:
14
14
-`HashSetDictionary`: Collection of keys mapped to a hash set of unique values per key.
15
15
-`ListDictionary`: Collection of keys mapped to a list of values per key.
16
16
-`Map`: Collection of two types of values that map between each other in a bidirectional one-to-one relationship.
17
-
-`ReadOnlyHashSet`: Fast read-only wrapper around a HashSet (instead of going through `ISet<>`).
18
-
-`ReadOnlyList`: Fast read-only wrapper around a List (instead of going through `IList<>`).
19
-
- A full set of interfaces and read-only wrappers for the new collections as well as an `IReadOnlySet<>` polyfill for .NET Standard.
17
+
-`AlternateLookup` nested wrapper types for each of the above collections that allow looking up values by alternate keys.
18
+
-`ReadOnlyHashSet`: Fast direct read-only wrapper for HashSets (instead of going through `ISet<>` like `ReadOnlySet` does).
19
+
-`ReadOnlyList`: Fast direct read-only wrapper for Lists (instead of going through `IList<>` like `ReadOnlyCollection` does).
20
+
- A full set of interfaces for the new collections as well as an `IReadOnlySet<>` polyfill for .NET Standard.
20
21
21
22
**Singulink.Collections.Weak** provides a set of collection classes that store weak references to values so that the garbage collector is free to reclaim the memory they use when they aren't being referenced anymore. The values returned by the collections will never be `null` - if the value was garbage collected then the collection behaves as if the value was removed from the collection.
22
23
23
24
The following collections are included in the package:
24
25
-`WeakCollection`: Collection of weakly referenced values that keeps items in an undefined order.
25
26
-`WeakList`: Collection of weakly referenced values that maintains relative insertion order.
26
-
-`WeakValueDictionary`: Collection of keys and weakly referenced values.
27
+
-`WeakValueDictionary`: Collection of keys and weakly referenced values with `AlternateLookup` support.
27
28
28
29
### About Singulink
29
30
@@ -68,8 +69,6 @@ int one = nameToNumberMap["ONE"]; // 1
68
69
69
70
### ListDictionary
70
71
71
-
Very similar API to `HashSetDictionary`, and both can be exposed as `ICollectionDictionary`:
// This file is used by Code Analysis to maintain SuppressMessage
2
+
// attributes that are applied to this project.
3
+
// Project-level suppressions either have no target or are given
4
+
// a specific target and scoped to a namespace, type, member, etc.
5
+
6
+
usingSystem.Diagnostics.CodeAnalysis;
7
+
8
+
[assembly:SuppressMessage("Naming","CA1711:Identifiers should not have incorrect suffix",Justification="Collection type naming recommendations not applicable")]
<Description>Collection classes that store weak references to values so that they can be garbage collected when they are no longer needed.</Description>
0 commit comments