MapsterMapper / Mapster

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

Please support arbitrary parameters on interface when generating mapper #529

Open jvmlet opened 1 year ago

jvmlet commented 1 year ago
[Mapper]
public interface IMyMapper{
    B Map(A a, string arbitraryString, int anotherParam );
}

class A{
 string Name;
}
class B{
 string Name; // maps directly from A.Name
 string  Val; //will be mapped from arbitraryString
 int  Age //will be mapped fromanotherParam  ;
}