7 packages tagged with “Duck-Typing”
A package to facilitate duck-typing through an object extension DuckAs<>. There is also a FuzzyDuckAs<> facility for more case-insensitive ducking. At no point is there use of DynamicObjects, which hurt performance. Property read/write as well as methods are ducked, with the current caveat that ref and out parameters may not behave as expected.
.NET proxy generator powered by Roslyn
Shadow Quack enables immutable interface contracts to be used, by using a dynamic implementation. Shadow Quack allows for powerful duck typing, interface facade merging and functional immutable update/merge-operations. Providing similar functionality to C# 9/10 record, with the advantage of also being able to use inheritance.
Converts a data type to another data type, smarter than the standard Convert class, including collections and their items as well as object properties (duck typing). With special support for DateTime conversions.
A library that dispatches member access of a type to its mapped types when there are no common interfaces or inheritances between them.
IProxy implementation to allow a Command Line Arguments Array as the input to Duck.Implement<T>(T Source)
A duck typing library for C# that allows you treat any object as if it implements any interface, so long as it has all the members of that interface.