mapperly icon indicating copy to clipboard operation
mapperly copied to clipboard

Support for dynamic object mapping

Open TimothyMakkison opened this issue 2 years ago • 0 comments

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

TimothyMakkison avatar Dec 28 '23 16:12 TimothyMakkison