PropertyAccessorSet Method

The Set(Object, Object, Object) overload can be used for any number of index parameters. The other non-generic overloads can be used for simple properties or indexers with one parameter.

  Tip

If you know the property type at compile time, then you can use the generic SetStaticValue overloads for static properties. If you know also the instance type (and the index parameter for indexers), then the SetInstanceValue methods can be used to access instance properties with better performance.

Overload List

Set(Object, Object) Sets the property with no index parameters. For static properties the instance parameter is omitted (can be ).
See the Remarks section of the Set(Object, Object, Object) overload for details.
Set(Object, Object, Object) Sets the property with one index parameter. For static properties the instance parameter is omitted (can be ).
See the Remarks section of the Set(Object, Object, Object) overload for details.
Set(Object, Object, Object) Sets the property. For static properties the instance parameter is omitted (can be ). If the property is not an indexer, then indexParameters parameter is omitted.

See Also