We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e8d25b commit e68c1f8Copy full SHA for e68c1f8
AgileMapper/Members/MappingInstanceData.cs
@@ -35,7 +35,7 @@ protected MappingInstanceData(
35
36
T IMappingData.GetSource<T>()
37
{
38
- if (typeof(T).IsAssignableTo(typeof(TSource)))
+ if (typeof(TSource).IsAssignableTo(typeof(T)))
39
40
return (T)((object)Source);
41
}
@@ -45,7 +45,7 @@ T IMappingData.GetSource<T>()
45
46
T IMappingData.GetTarget<T>()
47
48
- if (typeof(T).IsAssignableTo(typeof(TTarget)))
+ if (typeof(TTarget).IsAssignableTo(typeof(T)))
49
50
return (T)((object)Target);
51
0 commit comments