/// <summary> /// Define conversion for a generic. It is able to convert not one particular class but all generic family /// providing a generic converter. /// </summary> /// <param name="from">Type of source. Can be also generic class or abstract array.</param> /// <param name="to">Type of destination. Can be also generic class or abstract array.</param> /// <param name="converterProvider"> /// Provider for getting detailed information about generic conversion. /// </param> /// <returns></returns> public TDerived ConvertGeneric(Type from, Type to, ICustomConverterProvider converterProvider) { return((TDerived)base.ConvertGeneric(from, to, converterProvider)); }
/// <summary> /// Define conversion for a generic. It is able to convert not one particular class but all generic family /// providing a generic converter. /// </summary> /// <param name="from">Type of source. Can be also generic class or abstract array.</param> /// <param name="to">Type of destination. Can be also generic class or abstract array.</param> /// <param name="converterProvider">Provider for getting detailed information about generic conversion</param> /// <returns></returns> public IMappingConfigurator ConvertGeneric(Type from, Type to, ICustomConverterProvider converterProvider) { _customConvertersGeneric.Add(new[] { from, to }, converterProvider); return(this); }