@@ -2558,7 +2558,7 @@ Expression LocalFuncGetExpression(bool ignoreArray = false)
25582558 Expression . Return ( returnTarget , Expression . Convert ( tryparseVarExp , typeof ( object ) ) ) ,
25592559 Expression . IfThenElse (
25602560 Expression . IsTrue ( Expression . Call ( MethodDecimalTryParse , Expression . Convert ( valueExp , typeof ( string ) ) , Expression . Constant ( System . Globalization . NumberStyles . Any ) , Expression . Constant ( null , typeof ( IFormatProvider ) ) , tryparseVarExpDecimal ) ) ,
2561- Expression . Return ( returnTarget , Expression . Convert ( Expression . Convert ( tryparseVarExpDecimal , tryparseVarExp . Type ) , typeof ( object ) ) ) ,
2561+ Expression . Return ( returnTarget , Expression . Call ( MethodConvertChangeType , Expression . Convert ( tryparseVarExpDecimal , typeof ( object ) ) , Expression . Constant ( type , typeof ( Type ) ) ) ) ,
25622562 Expression . Return ( returnTarget , Expression . Convert ( Expression . Default ( typeOrg ) , typeof ( object ) ) )
25632563 )
25642564 )
@@ -2574,7 +2574,7 @@ Expression LocalFuncGetExpression(bool ignoreArray = false)
25742574 Expression . Return ( returnTarget , Expression . Convert ( tryparseVarExp , typeof ( object ) ) ) ,
25752575 Expression . IfThenElse (
25762576 Expression . IsTrue ( Expression . Call ( MethodDecimalTryParse , Expression . Convert ( valueExp , typeof ( string ) ) , Expression . Constant ( System . Globalization . NumberStyles . Any ) , Expression . Constant ( null , typeof ( IFormatProvider ) ) , tryparseVarExpDecimal ) ) ,
2577- Expression . Return ( returnTarget , Expression . Convert ( Expression . Convert ( tryparseVarExpDecimal , tryparseVarExp . Type ) , typeof ( object ) ) ) ,
2577+ Expression . Return ( returnTarget , Expression . Call ( MethodConvertChangeType , Expression . Convert ( tryparseVarExpDecimal , typeof ( object ) ) , Expression . Constant ( type , typeof ( Type ) ) ) ) ,
25782578 Expression . Return ( returnTarget , Expression . Convert ( Expression . Default ( typeOrg ) , typeof ( object ) ) )
25792579 )
25802580 )
@@ -2590,7 +2590,7 @@ Expression LocalFuncGetExpression(bool ignoreArray = false)
25902590 Expression . Return ( returnTarget , Expression . Convert ( tryparseVarExp , typeof ( object ) ) ) ,
25912591 Expression . IfThenElse (
25922592 Expression . IsTrue ( Expression . Call ( MethodDecimalTryParse , Expression . Convert ( valueExp , typeof ( string ) ) , Expression . Constant ( System . Globalization . NumberStyles . Any ) , Expression . Constant ( null , typeof ( IFormatProvider ) ) , tryparseVarExpDecimal ) ) ,
2593- Expression . Return ( returnTarget , Expression . Convert ( Expression . Convert ( tryparseVarExpDecimal , tryparseVarExp . Type ) , typeof ( object ) ) ) ,
2593+ Expression . Return ( returnTarget , Expression . Call ( MethodConvertChangeType , Expression . Convert ( tryparseVarExpDecimal , typeof ( object ) ) , Expression . Constant ( type , typeof ( Type ) ) ) ) ,
25942594 Expression . Return ( returnTarget , Expression . Convert ( Expression . Default ( typeOrg ) , typeof ( object ) ) )
25952595 )
25962596 )
@@ -2618,7 +2618,7 @@ Expression LocalFuncGetExpression(bool ignoreArray = false)
26182618 Expression . Return ( returnTarget , Expression . Convert ( tryparseVarExp , typeof ( object ) ) ) ,
26192619 Expression . IfThenElse (
26202620 Expression . IsTrue ( Expression . Call ( MethodDecimalTryParse , Expression . Convert ( valueExp , typeof ( string ) ) , Expression . Constant ( System . Globalization . NumberStyles . Any ) , Expression . Constant ( null , typeof ( IFormatProvider ) ) , tryparseVarExpDecimal ) ) ,
2621- Expression . Return ( returnTarget , Expression . Convert ( Expression . Convert ( tryparseVarExpDecimal , tryparseVarExp . Type ) , typeof ( object ) ) ) ,
2621+ Expression . Return ( returnTarget , Expression . Call ( MethodConvertChangeType , Expression . Convert ( tryparseVarExpDecimal , typeof ( object ) ) , Expression . Constant ( type , typeof ( Type ) ) ) ) ,
26222622 Expression . Return ( returnTarget , Expression . Convert ( Expression . Default ( typeOrg ) , typeof ( object ) ) )
26232623 )
26242624 )
@@ -2634,7 +2634,7 @@ Expression LocalFuncGetExpression(bool ignoreArray = false)
26342634 Expression . Return ( returnTarget , Expression . Convert ( tryparseVarExp , typeof ( object ) ) ) ,
26352635 Expression . IfThenElse (
26362636 Expression . IsTrue ( Expression . Call ( MethodDecimalTryParse , Expression . Convert ( valueExp , typeof ( string ) ) , Expression . Constant ( System . Globalization . NumberStyles . Any ) , Expression . Constant ( null , typeof ( IFormatProvider ) ) , tryparseVarExpDecimal ) ) ,
2637- Expression . Return ( returnTarget , Expression . Convert ( Expression . Convert ( tryparseVarExpDecimal , tryparseVarExp . Type ) , typeof ( object ) ) ) ,
2637+ Expression . Return ( returnTarget , Expression . Call ( MethodConvertChangeType , Expression . Convert ( tryparseVarExpDecimal , typeof ( object ) ) , Expression . Constant ( type , typeof ( Type ) ) ) ) ,
26382638 Expression . Return ( returnTarget , Expression . Convert ( Expression . Default ( typeOrg ) , typeof ( object ) ) )
26392639 )
26402640 )
@@ -2650,7 +2650,7 @@ Expression LocalFuncGetExpression(bool ignoreArray = false)
26502650 Expression . Return ( returnTarget , Expression . Convert ( tryparseVarExp , typeof ( object ) ) ) ,
26512651 Expression . IfThenElse (
26522652 Expression . IsTrue ( Expression . Call ( MethodDecimalTryParse , Expression . Convert ( valueExp , typeof ( string ) ) , Expression . Constant ( System . Globalization . NumberStyles . Any ) , Expression . Constant ( null , typeof ( IFormatProvider ) ) , tryparseVarExpDecimal ) ) ,
2653- Expression . Return ( returnTarget , Expression . Convert ( Expression . Convert ( tryparseVarExpDecimal , tryparseVarExp . Type ) , typeof ( object ) ) ) ,
2653+ Expression . Return ( returnTarget , Expression . Call ( MethodConvertChangeType , Expression . Convert ( tryparseVarExpDecimal , typeof ( object ) ) , Expression . Constant ( type , typeof ( Type ) ) ) ) ,
26542654 Expression . Return ( returnTarget , Expression . Convert ( Expression . Default ( typeOrg ) , typeof ( object ) ) )
26552655 )
26562656 )
0 commit comments