NullServiceType class¶
Attributes: [DebuggerDisplay("NullServiceType: {Factory}")]
Defined in
Namespace: Splat Assembly: Splat.Core.dll Full name: Splat.NullServiceType Modifiers: public
Summary¶
View source (opens in a new tab)
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
net11.0, net10.0, net47, net471, net472, net48, 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 (opens in a new tab) instance representing the [NullServiceType](#Splat.NullServiceType) type. |
Inherited members
System.Object.Equals(System.Object)(opens in a new tab)System.Object.Equals(System.Object,System.Object)(opens in a new tab)System.Object.GetHashCode(opens in a new tab)System.Object.GetType(opens in a new tab)System.Object.MemberwiseClone(opens in a new tab)System.Object.ReferenceEquals(System.Object,System.Object)(opens in a new tab)System.Object.ToString(opens in a new tab)