Skip to content

Commit 0b2ab62

Browse files
committed
Must return the generic type
1 parent a6f0c4e commit 0b2ab62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CodingSeb.ExpressionEvaluator/ExpressionEvaluator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2745,7 +2745,7 @@ public object EvaluateArg(int index)
27452745
/// <typeparam name="T">The type of the result to get. (Do a cast)</typeparam>
27462746
/// <param name="index">The index of the function's arg to evaluate</param>
27472747
/// <returns>The evaluated arg casted in the specified type</returns>
2748-
public object EvaluateArg<T>(int index)
2748+
public T EvaluateArg<T>(int index)
27492749
{
27502750
return (T)evaluateFunc(Args[index]);
27512751
}

0 commit comments

Comments
 (0)