Class TypedValueDictionary
Namespace: Sisk.Core.Entity
Assembly: Sisk.Core.dll
Represents the base class for storing and retriving data by their type.
public class TypedValueDictionary : IDictionary<string, object?>, ICollection<KeyValuePair<string, object?>>, IEnumerable<KeyValuePair<string, object?>>, IEnumerable
Inheritance
Implements
IDictionary<string, object?>, ICollection<KeyValuePair<string, object?>>, IEnumerable<KeyValuePair<string, object?>>, IEnumerable
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
Creates an new TypedValueDictionary instance with default parameters.
TypedValueDictionary(StringComparer)
Creates an new TypedValueDictionary instance with default parameters with the specified StringComparer.
Methods
Gets a singleton previously defined in this context bag via it's type T.
Gets a singleton previously defined in this context bag via its type T.
If it does not exist, it adds the object to the context bag using the provided getter function.
Gets a singleton previously defined in this context bag via its type T.
If it does not exist, it adds the object to the context bag by creating a new instance of T.
GetOrAddAsync<T>(Func<Task<T>>)
Asynchronously gets a singleton previously defined in this context bag via its type T.
If it does not exist, it adds the object to the context bag using the provided asynchronous getter function.
Gets a singleton previously defined in this context bag via its type T.
Returns the default value if the object is not defined.
Gets the Type full qualified key name.
Gets the value associated with the specified key.
Gets the value associated with the specified key, and converts it to the specified type.
Determines whether the specified T singleton is defined in this context.
Determines whether the specified T singleton is defined in this context and tries to
output it.
Creates and adds an singleton of T in this context bag.
Adds an singleton of T in this context bag.
Sets the value associated with the specified key.
TryGetValue<TResult>(string, out TResult?)
Gets the value associated with the specified key and casts it into TResult.
Removes an singleton object from it's type T.
                                    English
                                
                                    Русский
                                
                                    Português
                                
                                    Español
                                
                                    Deutsch
                                
                                    中文 (简体)
                                
                                    日本語