Init(args)
Scripting Reference
Loading...
Searching...
No Matches

◆ Clear< TArgument >()

static bool Sisus.Init.InitArgs.Clear< TArgument > ( [DisallowNull] Type clientType)
static

Clears dependency previously injected for client of type clientType using the Set<TClient, TArgument> function.

Template Parameters
TArgumentThe type of the dependency.
Parameters
clientTypeThe type of the object whose dependency is cleared.
Returns
true if dependencies were cleared, which means that they had been stored for the TClient using the Set<TClient, TArgument> function but never retrieved using TryGet<TClient, TArgument>; otherwise, false.
Returns
true if argument for clientType client type was provided using Set<TClient, TArgument> but never retrieved using TryGet<TClient, TArgument>; otherwise, false.
Exceptions
ArgumentNullExceptionThrown if the clientType argument is null.