mapperly
mapperly copied to clipboard
Support for dynamic object mapping
Similarly to Automapper, Mapperly should support mapping objects and Dictionary<string, object> to and from dynamic types.
Supporting DeepClone may be tricky, plus should we assume that all dynamic types are ExpandoObject
public static partial Dog ToDog(dynamic src) // construct dog and access relevant types from dynamic in a try catch block
public static partial dynamic ToDynamic(Dog src)
return (dyanmic)src // should an ExpandoObject be created and properties copied over?
See #1039