Delegate PluginInitInjector.InjectedValueProvider
A provider for parameter injectors to request injected values themselves.
Namespace: IPA.Loader
Assembly: IPA.Loader.dll
Syntax
public delegate object? InjectedValueProvider(ParameterInfo forParam, Type? typeOverride = null);
Parameters
Type | Name | Description |
---|---|---|
ParameterInfo | forParam | the parameter that this is providing for. |
Nullable<Type> | typeOverride | an optional override for the parameter type. |
Returns
Type | Description |
---|---|
Nullable<Object> | the value that would otherwise be injected. |
Remarks
Some injectors may look at attributes on the parameter to gain additional information about what it should provide. If an injector wants to allow end users to affect the things it requests, it may pass the parameter it is currently injecting for to this delegate along with a type override to select some other type.