KGy SOFT

IStringKeyedDictionaryTValue Interface

KGy SOFT Core Libraries Help

Namespace:  KGySoft.Collections
Assembly:  KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 5.3.0
Syntax

public interface IStringKeyedDictionary<TValue> : IDictionary<string, TValue>, 
	ICollection<KeyValuePair<string, TValue>>, IEnumerable<KeyValuePair<string, TValue>>, 
	IEnumerable

Type Parameters

TValue
The type of the value.

The IStringKeyedDictionaryTValue type exposes the following members.

Properties

  NameDescription
Public propertyItemReadOnlySpanChar
Gets the value associated with the specified key.
Public propertyItemStringSegment
Gets the value associated with the specified key.
Top
Methods

  NameDescription
Public methodContainsKey(ReadOnlySpanChar)
Determines whether this instance contains an element with the specified key.
Public methodContainsKey(StringSegment)
Determines whether this instance contains an element with the specified key.
Public methodGetValueOrDefault(ReadOnlySpanChar)
Tries to get the value from the dictionary for the given key.
Public methodGetValueOrDefault(String)
Tries to get the value from the dictionary for the given key.
Public methodGetValueOrDefault(StringSegment)
Tries to get the value from the dictionary for the given key.
Public methodGetValueOrDefaultTActualValue(ReadOnlySpanChar, FuncTActualValue)
Tries to get the typed value from the dictionary for the given key. The defaultValueFactory can return an instance of a more specific type than TValue.
Public methodGetValueOrDefaultTActualValue(ReadOnlySpanChar, TActualValue)
Tries to get the typed value from the dictionary for the given key. The defaultValue parameter can have a more specific type than TValue.
Public methodGetValueOrDefaultTActualValue(String, FuncTActualValue)
Tries to get the typed value from the dictionary for the given key. The defaultValueFactory can return an instance of a more specific type than TValue.
Public methodGetValueOrDefaultTActualValue(String, TActualValue)
Tries to get the typed value from the dictionary for the given key. The defaultValue parameter can have a more specific type than TValue.
Public methodGetValueOrDefaultTActualValue(StringSegment, FuncTActualValue)
Tries to get the typed value from the dictionary for the given key. The defaultValueFactory can return an instance of a more specific type than TValue.
Public methodGetValueOrDefaultTActualValue(StringSegment, TActualValue)
Tries to get the typed value from the dictionary for the given key. The defaultValue parameter can have a more specific type than TValue.
Public methodTryGetValue(ReadOnlySpanChar, TValue)
Tries to get the value associated with the specified key.
Public methodTryGetValue(StringSegment, TValue)
Tries to get the value associated with the specified key.
Top
Extension Methods

  NameDescription
Public Extension MethodAddRangeKeyValuePairString, TValue (Defined by CollectionExtensions.)
Public Extension MethodAsThreadSafeKeyValuePairString, TValue (Defined by CollectionExtensions.)
Public Extension MethodForEachKeyValuePairString, TValue
Similarly to the List<T>.ForEach method, processes an action on each element of an enumerable collection.
(Defined by EnumerableExtensions.)
Public Extension MethodGetRandomElementKeyValuePairString, TValue(Boolean)Overloaded.
Gets a random element from the enumerable source using a new Random instance.
(Defined by EnumerableExtensions.)
Public Extension MethodGetRandomElementKeyValuePairString, TValue(Random, Boolean)Overloaded.
Gets a random element from the enumerable source using a specified Random instance.
(Defined by EnumerableExtensions.)
Public Extension MethodIndexOf(FuncObject, Boolean)Overloaded.
Searches for an element in the source enumeration where the specified predicate returns .
(Defined by EnumerableExtensions.)
Public Extension MethodIndexOf(Object)Overloaded.
Searches for an element in the source enumeration.
(Defined by EnumerableExtensions.)
Public Extension MethodIndexOfKeyValuePairString, TValue(FuncKeyValuePairString, TValue, Boolean)Overloaded.
Searches for an element in the source enumeration where the specified predicate returns .
(Defined by EnumerableExtensions.)
Public Extension MethodIndexOfKeyValuePairString, TValue(KeyValuePairString, TValue)Overloaded.
Searches for an element in the source enumeration.
(Defined by EnumerableExtensions.)
Public Extension MethodIsNullOrEmptyOverloaded.
Determines whether the specified source is  or empty (has no elements).
(Defined by EnumerableExtensions.)
Public Extension MethodIsNullOrEmptyKeyValuePairString, TValueOverloaded.
Determines whether the specified source is  or empty (has no elements).
(Defined by EnumerableExtensions.)
Public Extension MethodJoinKeyValuePairString, TValue(String)Overloaded.
Concatenates the items of the source collection into a new string instance using the specified separator between the items.
(Defined by EnumerableExtensions.)
Public Extension MethodJoinKeyValuePairString, TValue(Char)Overloaded.
Concatenates the items of the source collection into a new string instance using the specified separator between the items.
(Defined by EnumerableExtensions.)
Public Extension MethodShuffleKeyValuePairString, TValueOverloaded.
Shuffles an enumerable source (randomizes its elements) using a new Random instance.
(Defined by EnumerableExtensions.)
Public Extension MethodShuffleKeyValuePairString, TValue(Int32)Overloaded.
Shuffles an enumerable source (randomizes its elements) using the provided seed with a new Random instance.
(Defined by EnumerableExtensions.)
Public Extension MethodShuffleKeyValuePairString, TValue(Random)Overloaded.
Shuffles an enumerable source (randomizes its elements) using a specified Random instance.
(Defined by EnumerableExtensions.)
Public Extension MethodToCircularListKeyValuePairString, TValue (Defined by EnumerableExtensions.)
Public Extension MethodTryAdd(Object, Boolean, Boolean)Overloaded.
Tries to add the specified item to the collection.
(Defined by EnumerableExtensions.)
Public Extension MethodTryAddKeyValuePairString, TValue(KeyValuePairString, TValue, Boolean, Boolean)Overloaded.
Tries to add the specified item to the collection.
(Defined by EnumerableExtensions.)
Public Extension MethodTryAddRange(IEnumerable, Boolean, Boolean)Overloaded.
Tries to add the specified collection to the target collection.
(Defined by EnumerableExtensions.)
Public Extension MethodTryAddRangeKeyValuePairString, TValue(IEnumerableKeyValuePairString, TValue, Boolean, Boolean)Overloaded.
Tries to add the specified collection to the target collection.
(Defined by EnumerableExtensions.)
Public Extension MethodTryClear(Boolean, Boolean)Overloaded.
Tries to remove all elements from the collection.
(Defined by EnumerableExtensions.)
Public Extension MethodTryClearKeyValuePairString, TValue(Boolean, Boolean)Overloaded.
Tries to remove all elements from the collection.
(Defined by EnumerableExtensions.)
Public Extension MethodTryGetElementAt(Int32, Object, Boolean, Boolean)Overloaded.
Tries to get an item at the specified index in the collection.
(Defined by EnumerableExtensions.)
Public Extension MethodTryGetElementAtKeyValuePairString, TValue(Int32, KeyValuePairString, TValue, Boolean, Boolean)Overloaded.
Tries to get an item at the specified index in the collection.
(Defined by EnumerableExtensions.)
Public Extension MethodTryInsert(Int32, Object, Boolean, Boolean)Overloaded.
Tries to insert the specified item at the specified index to the collection.
(Defined by EnumerableExtensions.)
Public Extension MethodTryInsertKeyValuePairString, TValue(Int32, KeyValuePairString, TValue, Boolean, Boolean)Overloaded.
Tries to insert the specified item at the specified index to the collection.
(Defined by EnumerableExtensions.)
Public Extension MethodTryInsertRange(Int32, IEnumerable, Boolean, Boolean)Overloaded.
Tries to insert the specified collection into the target collection.
(Defined by EnumerableExtensions.)
Public Extension MethodTryInsertRangeKeyValuePairString, TValue(Int32, IEnumerableKeyValuePairString, TValue, Boolean, Boolean)Overloaded.
Tries to insert the specified collection into the target collection.
(Defined by EnumerableExtensions.)
Public Extension MethodTryRemove(Object, Boolean, Boolean)Overloaded.
Tries to remove the specified item from to the collection.
(Defined by EnumerableExtensions.)
Public Extension MethodTryRemoveKeyValuePairString, TValue(KeyValuePairString, TValue, Boolean, Boolean)Overloaded.
Tries to remove the specified item from to the collection.
(Defined by EnumerableExtensions.)
Public Extension MethodTryRemoveAt(Int32, Boolean, Boolean)Overloaded.
Tries to remove an item at the specified index from the collection.
(Defined by EnumerableExtensions.)
Public Extension MethodTryRemoveAtKeyValuePairString, TValue(Int32, Boolean, Boolean)Overloaded.
Tries to remove an item at the specified index from the collection.
(Defined by EnumerableExtensions.)
Public Extension MethodTryRemoveRange(Int32, Int32, Boolean, Boolean)Overloaded.
Tries to remove count amount of items from the specified collection at the specified index.
(Defined by EnumerableExtensions.)
Public Extension MethodTryRemoveRangeKeyValuePairString, TValue(Int32, Int32, Boolean, Boolean)Overloaded.
Tries to remove count amount of items from the specified collection at the specified index.
(Defined by EnumerableExtensions.)
Public Extension MethodTryReplaceRange(Int32, Int32, IEnumerable, Boolean, Boolean)Overloaded.
Tries to remove count amount of items from the target at the specified index, and to insert the specified collection at the same position. The number of elements in collection can be different from the amount of removed items.
(Defined by EnumerableExtensions.)
Public Extension MethodTryReplaceRangeKeyValuePairString, TValue(Int32, Int32, IEnumerableKeyValuePairString, TValue, Boolean, Boolean)Overloaded.
Tries to remove count amount of items from the target at the specified index, and to insert the specified collection at the same position. The number of elements in collection can be different from the amount of removed items.
(Defined by EnumerableExtensions.)
Public Extension MethodTrySetElementAt(Int32, Object, Boolean, Boolean)Overloaded.
Tries to set the specified item at the specified index in the collection.
(Defined by EnumerableExtensions.)
Public Extension MethodTrySetElementAtKeyValuePairString, TValue(Int32, KeyValuePairString, TValue, Boolean, Boolean)Overloaded.
Tries to set the specified item at the specified index in the collection.
(Defined by EnumerableExtensions.)
Top
See Also

Reference