Method
TypedValueDictionary.Set<T>
Set<T>() #
Creates and adds an singleton of T in this context bag.
public T Set<T>() where T : notnull, new()Returns #
T
Type Parameters #
T
The object that will be defined in this context bag.
Set<T>(T) #
Adds an singleton of T in this context bag.
public T Set<T>(T value) where T : notnullParameters #
value T
The instance of T which will be defined in this context bag.
Returns #
T
Type Parameters #
T
The object that will be defined in this context bag.