Skip to content

Commit

Permalink
todo on performance improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
anisimovyuriy committed Jun 26, 2015
1 parent 19a08c4 commit 5898e42
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ExpressMapper NET40/TypeMapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,7 @@ private static Expression CreateConvertibleAssignExpression(Expression setMethod
Expression.Call(typeof(Enum).GetMethod("Parse", new Type[] { typeof(Type), typeof(string), typeof(bool) }), Expression.Constant(setNullableType ?? setType), right, Expression.Constant(true)),
setType)));
}
// todo: Yuriy Anisimov - after refactoring make it - for each primitive type to eliminate boxing and unboxing - performance improvement
else if (!getType.IsClass)
{
return Expression.Assign(left,
Expand Down

0 comments on commit 5898e42

Please sign in to comment.