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

◆ IsServiceDefiningType()

static bool Sisus.Init.ServiceUtility.IsServiceDefiningType ( [DisallowNull] Type type)
static

Gets a value indicating whether the provided type is the defining type of a service.

By default, the defining type of a class that has the ServiceAttribute is the type of the class itself, however it is possible provide a different defining type, which can be any type as long as it is assignable from the type of the class with the attribute.

Parameters
typeType to test.
Returns
true if type is the defining type of a service; otherwise, false.