Skip to content

Commit

Permalink
fix adapter & update version
Browse files Browse the repository at this point in the history
  • Loading branch information
chaowlert committed Jan 19, 2016
1 parent 7cc4bc0 commit 1f713f4
Show file tree
Hide file tree
Showing 3 changed files with 765 additions and 98 deletions.
2 changes: 1 addition & 1 deletion src/Mapster/Adapter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public TDestination Adapt<TDestination>(object source)
dynamic fn = _config.GetMapFunction(source.GetType(), typeof(TDestination));
try
{
return fn((dynamic)source);
return (TDestination)fn((dynamic)source);
}
finally
{
Expand Down
2 changes: 1 addition & 1 deletion src/Mapster/project.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "2.0.0-*",
"version": "2.0.1-*",
"description": "A fast, fun and stimulating object to object mapper. Kind of like AutoMapper, just simpler and way, way faster.",
"summary": "A fast, fun and stimulating object to object mapper. Kind of like AutoMapper, but simpler and way faster.",
"iconUrl": "http://www.fancyicons.com/free-icons/103/pretty-office-5/png/128/order_128.png",
Expand Down
Loading

0 comments on commit 1f713f4

Please sign in to comment.