SetValue(object, object)
Sets the value of the field or property represented by the current object to a given value.
Declaration
public void SetValue(object instance, object value)
Parameters
Type | Name | Description |
---|---|---|
object | instance | The object whose field or property value will be changed ( |
object | value | New value. |
SetValue(object, object, object[])
Sets the value of the field or property represented by the current object to a given value with optional index values for indexed properties.
Declaration
public void SetValue(object instance, object value, object[] index)
Parameters
Type | Name | Description |
---|---|---|
object | instance | The object whose field or property value will be changed ( |
object | value | New value. |
object[] | index | Optional index values for indexed properties. |