Method IsSet
IsSet<T>()
Determines whether the specified T
singleton is defined in this context.
public bool IsSet<T>() where T : notnull
Returns
Type Parameters
T
The singleton type.
IsSet<T>(out T)
Determines whether the specified T
singleton is defined in this context and tries to
output it.
public bool IsSet<T>(out T value) where T : notnull
Parameters
value
TWhen this method returns, the value associated with the specified key, if the key is found; otherwise, the default value for the type of the value parameter. This parameter is passed uninitialized.
Returns
- bool
True if the object is find with the specified key; otherwise, false.
Type Parameters
T
The singleton type.