Show / Hide Table of Contents

    Class InstanceProvider

    Provides an instance using the _object injected in the constructor.

    Inheritance
    Object
    InstanceProvider
    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 InstanceProvider : IProvider

    Constructors

    InstanceProvider(Type, Object)

    Declaration
    public InstanceProvider(Type contractType, object provideObject)
    Parameters
    Type Name Description
    Type contractType
    Object provideObject

    Fields

    _contractType

    Declaration
    protected readonly Type _contractType
    Field Value
    Type Description
    Type

    _object

    Declaration
    protected readonly object _object
    Field Value
    Type Description
    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.