progress
This commit is contained in:
parent
16e76d6b31
commit
484dbfc9d9
529 changed files with 113694 additions and 0 deletions
16
AspClassic.Scripting/Utils/ExpressionUtils.cs
Normal file
16
AspClassic.Scripting/Utils/ExpressionUtils.cs
Normal file
|
@ -0,0 +1,16 @@
|
|||
using System;
|
||||
using System.Linq.Expressions;
|
||||
|
||||
namespace AspClassic.Scripting.Utils;
|
||||
|
||||
internal sealed class ExpressionUtils
|
||||
{
|
||||
internal static Expression Convert(Expression expression, Type type)
|
||||
{
|
||||
if (!(expression.Type != type))
|
||||
{
|
||||
return expression;
|
||||
}
|
||||
return Expression.Convert(expression, type);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue