LiteProxy 1.0.1
dotnet add package LiteProxy --version 1.0.1
NuGet\Install-Package LiteProxy -Version 1.0.1
<PackageReference Include="LiteProxy" Version="1.0.1" />
paket add LiteProxy --version 1.0.1
#r "nuget: LiteProxy, 1.0.1"
// Install LiteProxy as a Cake Addin #addin nuget:?package=LiteProxy&version=1.0.1 // Install LiteProxy as a Cake Tool #tool nuget:?package=LiteProxy&version=1.0.1
LiteProxy
Tiny object proxying tools for C#
Features:
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.
Example:
var subject = LazyDelegate.ForKeyed("CustomerId", 123, ()=>
new Customer{
Email = "test@example.com",
})
);
Assert.AreEqual("test@example.com", subject.Email);
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net45 is compatible. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
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.
Skipping ctor tree