Search Results for

    Show / Hide Table of Contents

    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
    System.Reflection.ParameterInfo forParam

    the parameter that this is providing for.

    System.Type typeOverride

    an optional override for the parameter type.

    Returns
    Type Description
    System.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.

    Extension Methods

    PluginInitInjector.Inject<T>(PluginInitInjector.InjectedValueProvider, ParameterInfo)
    ReflectionUtil.SetField<T, U>(T, String, U)
    ReflectionUtil.GetField<U, T>(T, String)
    ReflectionUtil.SetProperty<T, U>(T, String, U)
    ReflectionUtil.GetProperty<U, T>(T, String)
    ReflectionUtil.InvokeMethod<U, T>(T, String, Object[])
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX