去除引用common.props
This commit is contained in:
@@ -1,9 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Linq.Expressions;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Linq.Expressions;
|
||||
|
||||
namespace JNPF.Common.Extension
|
||||
{
|
||||
@@ -55,7 +50,7 @@ namespace JNPF.Common.Extension
|
||||
var castPropertyValue = Expression.Convert(propertyValue, property!.PropertyType);
|
||||
var assignExp = Expression.Assign(propExp, castPropertyValue);
|
||||
|
||||
return Expression.Lambda<Action<T, object>>(assignExp, new[] { target,propertyValue }).Compile();
|
||||
return Expression.Lambda<Action<T, object>>(assignExp, new[] { target, propertyValue }).Compile();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user