TinyMapper v2.0.5 Release Notes

Release Date: 2015-09-15 // over 8 years ago
  • TinyMapper allows to set concrete type if required, i.e.

    public class Source
    {
        public IList<int> Ints { get; set; }
        public List<string> Strings { get; set; }
    }
    
    public class Target
    {
        public List<int> Ints { get; set; }
        public IEnumerable<string> Strings { get; set; }
    }
    
    TinyMapper.Bind<Source, Target>(config =>
    {
        config.Bind(target => target.Strings, typeof(List<string>));
    });
    

    Thanks to : Teknogecko, oryol