PropertyAccessorSetInstanceValueTInstance, TProperty, TIndex(TInstance, TProperty, TIndex) Method
Sets the strongly typed value of a single-parameter indexed property in a reference 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>(
TInstance instance,
TProperty value,
TIndex index
)
where TInstance : class
Public Sub SetInstanceValue(Of TInstance As Class, TProperty, TIndex) (
instance As TInstance,
value As TProperty,
index As TIndex
)
public:
generic<typename TInstance, typename TProperty, typename TIndex>
where TInstance : ref class
void SetInstanceValue(
TInstance instance,
TProperty value,
TIndex index
)
member SetInstanceValue :
instance : 'TInstance *
value : 'TProperty *
index : 'TIndex -> unit when 'TInstance : not struct
- 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.