We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 120e659 commit a6f0c4eCopy full SHA for a6f0c4e
CodingSeb.ExpressionEvaluator/ExpressionEvaluator.cs
@@ -2739,6 +2739,17 @@ public object EvaluateArg(int index)
2739
return evaluateFunc(Args[index]);
2740
}
2741
2742
+ /// <summary>
2743
+ /// Get the value of the function's arg at the specified index
2744
+ /// </summary>
2745
+ /// <typeparam name="T">The type of the result to get. (Do a cast)</typeparam>
2746
+ /// <param name="index">The index of the function's arg to evaluate</param>
2747
+ /// <returns>The evaluated arg casted in the specified type</returns>
2748
+ public object EvaluateArg<T>(int index)
2749
+ {
2750
+ return (T)evaluateFunc(Args[index]);
2751
+ }
2752
+
2753
/// <summary>
2754
/// The name of the variable to Evaluate
2755
/// </summary>
0 commit comments