Package Description
License
—
Deps
5
Install Size
—
Vulns
✓ 0
Published
Dec 12, 2024
$ dotnet add package DuckType.CoreThe DuckType Library is designed to enable "duck typing" in .NET, allowing objects to be dynamically cast to interfaces with compatible methods and properties. It also introduces a "smart" object mechanism, which enhances objects with additional behaviors, validation, and default implementations.
This library is primarily intended for scenarios where interfaces must be dynamically applied to objects that do not explicitly implement them, enabling more flexible coding practices without needing concrete implementations. It also supports validation and behavior customization through "smart" objects, making it suitable for more advanced scenarios requiring enhanced property management.
Add the library to your project.
dotnet add package DuckType
See https://github.com/StijnVA/DuckType/wiki for the getting started
The heavy lifting was already been done by Castle.Core.
We welcome contributions!
This library is released under the MIT License. See LICENSE for details.