Method Set
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
TThe 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 : notnull
Parameters
valueTThe instance of
Twhich will be defined in this context bag.
Returns
- T
Type Parameters
TThe object that will be defined in this context bag.
English
Русский
Português
Español
Deutsch
中文 (简体)
日本語