This commit is contained in:
CortexCore
2024-11-03 16:38:17 +08:00
parent 056e2cada5
commit 4ba741408d
4693 changed files with 2445 additions and 5443 deletions

View File

@@ -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;
}
}
}