oclockvn
1/20/2017 - 8:38 AM

snippet-8986966324.cs

public class Foo
{
    public string Id = "5";
}

public class Bar
{
    public int Id;
}

// setup map..

// convert
var foo = new Foo();
var bar = Mapper.Map<Foo, Bar>(); // => bar = 5;