I'm trying to use Automapper's Open Generics as described in https://github.com/AutoMapper/AutoMapper/wiki/Open-Generics to perform a mapping between Translated<T> and T.
public class Translated<T>I've create a TypeConvertor for it
public class TranslatedConverter<T> : ITypeConverter<Translated<T>, T>Can somebody help me out how to create a profile for it without specifying the type like in:
CreateMap<Translated<string>, string>().ConvertUsing(new TranslatedConverter<string>());
I'm trying the folowing, but I don't know what to put instead of Type to make in work for all Types
CreateMap(typeof(Translated<>), Type).ConvertUsing(typeof(TranslatedConverter<>));