diff --git a/Bonsai.Core/Expressions/ExpressionBuilder.cs b/Bonsai.Core/Expressions/ExpressionBuilder.cs index c71691dc..126b9974 100644 --- a/Bonsai.Core/Expressions/ExpressionBuilder.cs +++ b/Bonsai.Core/Expressions/ExpressionBuilder.cs @@ -819,7 +819,9 @@ static CallCandidate OverloadResolution(IEnumerable methods, params return new CallCandidate { method = method, - declaringType = method.DeclaringType, + declaringType = method.IsVirtual + ? ((MethodInfo)method).GetBaseDefinition().DeclaringType + : method.DeclaringType, arguments = callArguments, generic = method.IsGenericMethod, expansion = ParamExpansionRequired(parameters, argumentTypes),