PropertyAccessorSetInstanceValueTInstance, TProperty, TIndex(TInstance, TProperty, TIndex) Method
Sets the strongly typed value of a single-parameter indexed property in a value type. If the type of the property,
the declaring instance or the index parameter is not known at compile time, or the indexer has more than one parameter, then the
non-generic
Set methods can be used.
Namespace: KGySoft.ReflectionAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0
public void SetInstanceValue<TInstance, TProperty, TIndex>(
in TInstance instance,
TProperty value,
TIndex index
)
where TInstance : struct, new()
Public Sub SetInstanceValue(Of TInstance As {Structure, New}, TProperty, TIndex) (
ByRef instance As TInstance,
value As TProperty,
index As TIndex
)
public:
generic<typename TInstance, typename TProperty, typename TIndex>
where TInstance : value class, gcnew()
void SetInstanceValue(
[InAttribute] TInstance% instance,
TProperty value,
TIndex index
)
member SetInstanceValue :
instance : 'TInstance byref *
value : 'TProperty *
index : 'TIndex -> unit when 'TInstance : struct, new()
- instance TInstance
- The instance that the property belongs to.
- value TProperty
- The value to set.
- index TIndex
- The value of the index parameter.
- TInstance
- The type of the instance that declares the property.
- TProperty
- The type of the property.
- TIndex
- The type of the index parameter.