Table of Contents

Class LazyDependencyLoader<T>

Namespace
Axolotl2D.Helpers
Assembly
Axolotl2D.dll

A lazy dependency loader that can be used to check if a dependency is loaded and load it if it is not.

public class LazyDependencyLoader<T> : ILazyDependencyLoader<T>

Type Parameters

T

Type of the dependency to load.

Inheritance
LazyDependencyLoader<T>
Implements
Inherited Members

Constructors

LazyDependencyLoader(IServiceProvider)

Creates a new instance of the LazyDependencyLoader.

public LazyDependencyLoader(IServiceProvider serviceProvider)

Parameters

serviceProvider IServiceProvider

Properties

IsLoaded

Gets whether the dependency is loaded.

public bool IsLoaded { get; }

Property Value

bool

Value

Gets the value of the dependency.

public T Value { get; }

Property Value

T