Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Method

GetValue

func GetValue(receiver: object?) -> Result<object?, ReflectionError>

Declaring type: PropertyReflectionExtensions
Module: System.Runtime.Reflection
Assembly: System.Runtime.dll

Extension from PropertyReflectionExtensions.GetValue

Invokes a public nonindexed instance getter.

Parameters

Name Type Description
self PropertyInfo A runtime-backed property descriptor.
receiver Object? The non-null compatible object whose property is read.

Return value

Result<Object?, ReflectionError>

The reference value (possibly null), a boxed built-in scalar, or a reflection validation error.

Remarks

Preserves virtual dispatch. Custom value types, static properties and indexers are unsupported. Accessor Faults remain terminal.