Show / Hide Table of Contents

    Class MethodProvider

    Provides an instance using the _funcProvider method injected in the constructor.

    Inheritance
    Object
    MethodProvider
    Implements
    IProvider
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Namespace: IdleKit.Core
    Assembly: cs.temp.dll.dll
    Syntax
    public class MethodProvider : IProvider

    Constructors

    MethodProvider(Type, Func<Object>)

    Declaration
    public MethodProvider(Type contractType, Func<object> funcProvider)
    Parameters
    Type Name Description
    Type contractType
    Func<Object> funcProvider

    Fields

    _contractType

    Declaration
    protected readonly Type _contractType
    Field Value
    Type Description
    Type

    _funcProvider

    Declaration
    protected readonly Func<object> _funcProvider
    Field Value
    Type Description
    Func<Object>

    Properties

    ContractType

    Declaration
    public virtual Type ContractType { get; }
    Property Value
    Type Description
    Type

    WasCached

    Declaration
    public virtual bool WasCached { get; }
    Property Value
    Type Description
    Boolean

    Methods

    GetInstance()

    Declaration
    public virtual object GetInstance()
    Returns
    Type Description
    Object

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    String
    Overrides
    Object.ToString()

    Implements

    IProvider
    Back to top Copyright © 2020 East Side Games Inc.