LiteProxy 1.0.0

There is a newer version of this package available.
See the version list below for details.
Install-Package LiteProxy -Version 1.0.0
dotnet add package LiteProxy --version 1.0.0
<PackageReference Include="LiteProxy" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add LiteProxy --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: LiteProxy, 1.0.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install LiteProxy as a Cake Addin
#addin nuget:?package=LiteProxy&version=1.0.0

// Install LiteProxy as a Cake Tool
#tool nuget:?package=LiteProxy&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.


Tiny object proxying tools for C#


DynamicProxy.GetInstanceFor<...>(); -- Pass the type of an interface or abstract, and you will get an object instance that implements that type and backs the properties and fields.

Extract<Interface>.From(Instance) -- Wraps an object instance in a proxy. Use this to coerce objects into interfaces they could implement.

LazyDelegate.For(...) -- Wraps a constructor function in a proxy that overrides all virtual properties. Any access to the properties will cause the function to be invoked and calls passed to the result.

LazyDelegate.ForKeyed("Id", MyValue, ConstructorFunc) -- Same as LazyDelegate.For, but this causes one named property with an initial value to skip the lazy invocation.


  1. Add the delegating behaviour of Extract<>.From() to DynamicProxy.
  2. Expose the delegating object (as dynamic?) through dynamic proxy generation
    • methods are always mapped to delegate object
    • fields are mapped to delegate if they exist, otherwise getters, setters and backing field are added as currently

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.1 5,344 5/14/2018
1.0.0 512 5/14/2018