MapsterMapper / Mapster

A fast, fun and stimulating object to object Mapper
MIT License
4.37k stars 332 forks source link

Add a non generic overload to ForDestinationType #465

Closed Dewera closed 2 years ago

Dewera commented 2 years ago

There's been a few scenarios where I've only had access to a Type at runtime and have needed to setup destination mapping rules for these, which isn't possible when there is only a function that takes generic parameters. This PR adds an overload that does the same thing but takes a Type function parameter instead of a generic one.

andrerav commented 2 years ago

@Dewera Thank you very much! :)