NullServiceType class¶
Defined in
Namespace: Splat
Assembly: Splat.Core.dll
Full name: Splat.NullServiceType
Modifiers: public
Summary¶
Represents a service type that always returns null when resolved. Used as a placeholder or marker in dependency
injection scenarios where a service is intentionally absent.
Applies to
net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net462, net481
Constructors¶
| Name | Summary |
|---|---|
| .ctor | Represents a service type that always returns null when resolved. Used as a placeholder or marker in dependency injection scenarios where a service is intentionally absent. |
Properties¶
| Name | Summary |
|---|---|
| Factory | Gets the function used to create an instance of the associated object. |
Fields¶
| Name | Summary |
|---|---|
| static CachedType | Gets the cached Type instance representing the [NullServiceType](# type. |