MethodAccessorInvokeInstanceFunctionTInstance, T, TResult(TInstance, T) Method
Invokes an instance function method with one parameter in a reference type. If the type of the parameter, the return value
or the declaring instance are not known at compile time the non-generic
Invoke methods can be used.
Namespace: KGySoft.ReflectionAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
public TResult InvokeInstanceFunction<TInstance, T, TResult>(
TInstance instance,
T param
)
where TInstance : class
Public Function InvokeInstanceFunction(Of TInstance As Class, T, TResult) (
instance As TInstance,
param As T
) As TResult
public:
generic<typename TInstance, typename T, typename TResult>
where TInstance : ref class
TResult InvokeInstanceFunction(
TInstance instance,
T param
)
member InvokeInstanceFunction :
instance : 'TInstance *
param : 'T -> 'TResult when 'TInstance : not struct
- instance TInstance
- The instance that the method belongs to.
- param T
- The value of the parameter.
- TInstance
- The type of the instance that declares the method.
- T
- The type of the parameter.
- TResult
- The return type of the method.
TResultThe return value of the method.