MethodAccessorInvokeInstanceFunctionTInstance, TResult(TInstance) Method
Invokes a parameterless instance function method in a reference type. If the type of 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, TResult>(
TInstance instance
)
where TInstance : class
Public Function InvokeInstanceFunction(Of TInstance As Class, TResult) (
instance As TInstance
) As TResult
public:
generic<typename TInstance, typename TResult>
where TInstance : ref class
TResult InvokeInstanceFunction(
TInstance instance
)
member InvokeInstanceFunction :
instance : 'TInstance -> 'TResult when 'TInstance : not struct
- instance TInstance
- The instance that the method belongs to.
- TInstance
- The type of the instance that declares the method.
- TResult
- The return type of the method.
TResultThe return value of the method.