Share via


IFunctionProvider.ResolveToConstant(String, MethodInfo, Object[]) Method

Definition

If the function's value can be determined by the given subset of its arguments, this should return the resulting value. Note that this should only be called if values is non-empty and contains at least one null. If all the arguments are non-null, then the MethodInfo will be invoked to produce the value.

public object ResolveToConstant (string name, System.Reflection.MethodInfo meth, object[] values);
abstract member ResolveToConstant : string * System.Reflection.MethodInfo * obj[] -> obj
Public Function ResolveToConstant (name As String, meth As MethodInfo, values As Object()) As Object

Parameters

name
String

The name of the function.

meth
MethodInfo

The MethodInfo provided by Lookup. When there are multiple overloads of a function with a given name, this can be used to determine which overload is being used.

values
Object[]

The values of the input arguments, with null for the non-constant arguments. This should only be called if there is at least one null.

Returns

The constant value, when it can be determined; null otherwise.

Applies to