1
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
{
|
||||
public static class BITMapper
|
||||
{
|
||||
public static void Map<T>(T source, T target) where T : class
|
||||
public static T Map<T>(object source, T target) where T : class
|
||||
{
|
||||
foreach (var info in source.GetType().GetProperties(ReflectionHelper.Flags))
|
||||
{
|
||||
@@ -23,6 +23,7 @@
|
||||
targetInfo?.SetValue(target, value);
|
||||
}
|
||||
}
|
||||
return target;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user