KGy SOFT

KGySoft.Collections Namespace

KGy SOFT Core Libraries Help
Classes

  ClassDescription
Public classCode exampleCacheTKey, TValue
Represents a generic cache. If an item loader is specified, then cache expansion is transparent: the user needs only to read the indexer to retrieve items. When a non-existing key is accessed, then the item is loaded automatically by the loader function that was passed to the constructor. If the cache is full (elements Count reaches the Capacity) and a new element has to be stored, then the oldest or least recent used element (depends on the value of Behavior) is removed from the cache.
See the Remarks section for details and an example.
Public classCircularListT
Public classCircularSortedListTKey, TValue
Public classLockingCollectionT
Provides a simple wrapper for an ICollectionT where all members are thread-safe. This only means that the inner state of the wrapped collection remains always consistent and not that all of the multi-threading concerns can be ignored.
See the Remarks section for details and some examples.
Public classLockingDictionaryTKey, TValue
Provides a simple wrapper for an IDictionaryTKey, TValue where all members are thread-safe. This only means that the inner state of the wrapped dictionary remains always consistent and not that all of the multi-threading concerns can be ignored.
See the Remarks section for details and some examples.
Public classLockingListT
Provides a simple wrapper for an IListT where all members are thread-safe. This only means that the inner state of the wrapped list remains always consistent and not that all of the multi-threading concerns can be ignored.
See the Remarks section for details and some examples.
Structures

  StructureDescription
Public structureCircularListTEnumerator
Public structureCircularSortedListTKey, TValueEnumerator
Interfaces

  InterfaceDescription
Public interfaceICache
Public interfaceICacheStatistics
Public interfaceISupportsRangeCollectionT
Represents a collection that supports the AddRange method.
Public interfaceISupportsRangeListT
Represents a list that supports range operations.
Public interfaceIThreadSafeCacheAccessorTKey, TValue
Enumerations

  EnumerationDescription
Public enumerationCacheBehavior