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

◆ Clear< TFirstArgument, TSecondArgument >()

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

Clears dependencies previously injected for client of type clientType using the Set<TClient, TFirstArgument, TSecondArgument> function.

Template Parameters
TFirstArgumentThe type of the first dependency.
TSecondArgumentThe type of the second dependency.
Parameters
clientTypeThe type of the object whose dependencies are cleared.
Returns
true if arguments for clientType client type were provided using Set<TClient, TFirstArgument, TSecondArgument> but never retrieved using TryGet<TClient, TFirstArgument, TSecondArgument>; otherwise, false.