Table of Contents

Class CompiledPropertyPath

Namespace
Icy.Data.Bindings
Assembly
IcyUI.dll

Represents the property path whose value is compiled for the faster execution.

public sealed class CompiledPropertyPath : PropertyPath, IPropertyPath, IReadOnlyPropertyPath
Inheritance
CompiledPropertyPath
Implements
Inherited Members
Extension Methods

Constructors

CompiledPropertyPath(string, Type, PropertyRegistry?)

Initializes a new instance of the CompiledPropertyPath class.

public CompiledPropertyPath(string path, Type typeContext, PropertyRegistry? registry = null)

Parameters

path string

The path to access an object.

typeContext Type

The type to get info about properties.

registry PropertyRegistry

The registry to resolve registered properties through, or null to capture Current at construction time. See the remarks on PropertyPath(string, Type, PropertyRegistry?).

Methods

GetValue(object)

Gets the value by calling the property chain for the specified source object.

public override object? GetValue(object source)

Parameters

source object

An object to retrieve value from.

Returns

object

The value by the specified property path.

Remarks

Returns null when a value along the path is null, the same as a DynamicPropertyPath. Exceptions thrown by a getter itself propagate.

SetValue(object, object?)

Sets the value by calling the property chain for the specified target object.

public override void SetValue(object target, object? value)

Parameters

target object

An object to set the value to.

value object

The value to set to the property.

Remarks

Does nothing when the object the last member is set on, or a value on the way to it, is null, the same as a DynamicPropertyPath. Exceptions thrown by a getter or the setter itself propagate.