MethodAccessorInvokeInstanceFunctionTInstance, TResult(TInstance) Method
Invokes a parameterless instance function method in a value 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>(
in TInstance instance
)
where TInstance : struct, new()
Public Function InvokeInstanceFunction(Of TInstance As {Structure, New}, TResult) (
ByRef instance As TInstance
) As TResult
public:
generic<typename TInstance, typename TResult>
where TInstance : value class, gcnew()
TResult InvokeInstanceFunction(
[InAttribute] TInstance% instance
)
member InvokeInstanceFunction :
instance : 'TInstance byref -> 'TResult when 'TInstance : struct, new()
- 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.