Table of Contents

Class LazyFactory<TInstance>

Namespace
Apizr
Assembly
Apizr.dll

A lazy instance

public class LazyFactory<TInstance> : Lazy<TInstance>, ILazyFactory<TInstance>

Type Parameters

TInstance

Type of your instance

Inheritance
Lazy<TInstance>
LazyFactory<TInstance>
Implements
ILazyFactory<TInstance>
Inherited Members

Constructors

LazyFactory(Func<object>)

Lazy factory constructor

public LazyFactory(Func<object> instanceFactory)

Parameters

instanceFactory Func<object>

The factory to be lazy

LazyFactory(Func<TInstance>)

Lazy factory constructor

public LazyFactory(Func<TInstance> instanceFactory)

Parameters

instanceFactory Func<TInstance>

The factory to be lazy