A dynamic lazy proxy is a class built in real time, that implemenets some interface T, takes to the constructor an argument Lazy of T and routes all invocations to the corresponding method or property of this argument.
The real instance wrapped by Lazy of T is created only after the first invocation of method or property. It allows to distribute the loading from the class creation to the method or property invocation.
Install-Package LazyProxy -Version 0.1.5
dotnet add package LazyProxy --version 0.1.5
<PackageReference Include="LazyProxy" Version="0.1.5" />
paket add LazyProxy --version 0.1.5
- System.Reflection.Emit (>= 4.3.0)
This package is not used by any popular GitHub repositories.