Class LinqUtils
- Namespace
- NCalc.Reflection
- Assembly
- NCalc.Core.dll
public static class LinqUtils
- Inheritance
-
LinqUtils
- Inherited Members
Methods
PrepareMethodArgumentsIfValid(ParameterInfo[], Expression[])
Returns a tuple where the first item is a score, and the second is a list of prepared arguments. Score is a simplified indicator of how close the arguments' types are to the parameters'. A score of 0 indicates a perfect match between arguments and parameters. Prepared arguments refers to having the arguments implicitly converted where necessary, and "params" arguments collated into one array.
public static Tuple<int, Expression[]>? PrepareMethodArgumentsIfValid(ParameterInfo[] parameters, Expression[] arguments)
Parameters
parameters
ParameterInfo[]arguments
Expression[]
Returns
- Tuple<int, Expression[]>
UnwrapNullable(Expression)
public static Expression UnwrapNullable(Expression expression)
Parameters
expression
Expression