|
@@ -30,7 +30,7 @@ namespace Luticate2.Auth.Utils.Business.ObjectConverterDescriptor
|
30
|
30
|
|
31
|
31
|
private IDictionary<MethodInfo, DynamicMethodConverter> DynamicMethodConverters { get; } = new Dictionary<MethodInfo, DynamicMethodConverter>();
|
32
|
32
|
|
33
|
|
- protected void AddMemberConverter(LambdaExpression memberFrom, LambdaExpression valueExpression)
|
|
33
|
+ protected void AddStaticMemberConverter(LambdaExpression memberFrom, LambdaExpression valueExpression)
|
34
|
34
|
{
|
35
|
35
|
// TODO: check memberInfo != null
|
36
|
36
|
var memberInfo = LuExpressionUtils.GetSingleMemberFromExpression(memberFrom);
|
|
@@ -117,10 +117,10 @@ namespace Luticate2.Auth.Utils.Business.ObjectConverterDescriptor
|
117
|
117
|
|
118
|
118
|
public class LuObjectConverterDescriptor<TTypeFrom, TTypeTo> : LuObjectConverterDescriptor, ILuObjectConverterDescriptor<TTypeFrom, TTypeTo>
|
119
|
119
|
{
|
120
|
|
- protected void AddMemberConverter(Expression<Func<TTypeFrom, object>> memberFrom,
|
|
120
|
+ protected void AddStaticMemberConverter(Expression<Func<TTypeFrom, object>> memberFrom,
|
121
|
121
|
Expression<Func<TTypeTo, object>> valueExpression)
|
122
|
122
|
{
|
123
|
|
- AddMemberConverter((LambdaExpression) memberFrom, valueExpression);
|
|
123
|
+ AddStaticMemberConverter((LambdaExpression) memberFrom, valueExpression);
|
124
|
124
|
}
|
125
|
125
|
|
126
|
126
|
protected void AddNullMemberConverter<TType>(Expression<Func<TTypeFrom, object>> memberFrom)
|
|
@@ -128,7 +128,7 @@ namespace Luticate2.Auth.Utils.Business.ObjectConverterDescriptor
|
128
|
128
|
var nullExp = Expression.Constant(null, typeof(TType));
|
129
|
129
|
var param = Expression.Parameter(typeof(TTypeTo));
|
130
|
130
|
var lambda = Expression.Lambda(nullExp, param);
|
131
|
|
- AddMemberConverter(memberFrom, lambda);
|
|
131
|
+ AddStaticMemberConverter(memberFrom, lambda);
|
132
|
132
|
}
|
133
|
133
|
}
|
134
|
134
|
}
|