Method
SetValue
func SetValue(receiver: object?, value: object?) -> Result<void, ReflectionError>
Declaring type: PropertyReflectionExtensions
Module: System.Runtime.Reflection
Assembly: System.Runtime.dll
Extension from PropertyReflectionExtensions.SetValue
Invokes a public nonindexed instance setter.
Parameters
| Name | Type | Description |
|---|---|---|
self |
PropertyInfo | A runtime-backed property descriptor. |
receiver |
Object? | The non-null compatible object whose property is assigned. |
value |
Object? | A compatible reference or null for reference properties; an exact boxed built-in scalar otherwise. |
Return value
Result<void, ReflectionError>
Unit completion or a reflection validation error.
Remarks
No binder coercion or null-to-default scalar conversion. Virtual dispatch and user setter code execute normally; faults remain terminal and effects are not transactional. Init-only application setters are not exposed for assignment.