Class InstanceProvider
Provides an instance using the _object injected in the constructor.
Inheritance
InstanceProvider
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
_object
Declaration
protected readonly object _object
Field Value
Properties
ContractType
Declaration
public virtual Type ContractType { get; }
Property Value
WasCached
Declaration
public virtual bool WasCached { get; }
Property Value
Methods
GetInstance()
Declaration
public virtual object GetInstance()
Returns
ToString()
Declaration
public override string ToString()
Returns
Overrides
Implements