完成添加变量功能
This commit is contained in:
@@ -71,7 +71,7 @@ public static class ObjectExtensions
|
||||
targetProperty.PropertyType.GetGenericTypeDefinition() == typeof(List<>);
|
||||
|
||||
// 场景 1: 属性类型完全相同
|
||||
if (targetProperty.PropertyType == sourceProperty.PropertyType)
|
||||
if (targetProperty.PropertyType.FullName == sourceProperty.PropertyType.FullName)
|
||||
{
|
||||
targetProperty.SetValue(ttarget, sourceValue);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user