MethodAccessorInvokeInstanceActionTInstance(TInstance) Method
Invokes a parameterless instance action method in a value type. If the type of the declaring instance
is 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 void InvokeInstanceAction<TInstance>(
in TInstance instance
)
where TInstance : struct, new()
Public Sub InvokeInstanceAction(Of TInstance As {Structure, New}) (
ByRef instance As TInstance
)
public:
generic<typename TInstance>
where TInstance : value class, gcnew()
void InvokeInstanceAction(
[InAttribute] TInstance% instance
)
member InvokeInstanceAction :
instance : 'TInstance byref -> unit when 'TInstance : struct, new()
- instance TInstance
- The instance that the method belongs to.
- TInstance
- The type of the instance that declares the method.