Interface IPropertyAccessor
Defines an accessor to a property on an object returned by a IPropertyAccessorPlugin
public interface IPropertyAccessor : IDisposable
- Inherited Members
Properties
PropertyType
Gets the type of the property.
Type? PropertyType { get; }
Property Value
Exceptions
- InvalidOperationException
The accessor has not been subscribed to yet.
Value
Gets the current value of the property.
object? Value { get; }
Property Value
Methods
SetValue(object?, BindingPriority)
Sets the property value.
bool SetValue(object? value, BindingPriority priority)
Parameters
value
objectThe value to set. Guaranteed to be of a valid type for the property.
priority
BindingPriorityThe priority with which to set the value.
Returns
- bool
True if the property was set; false if the property could not be set.
Subscribe(Action<object?>)
Subscribes to the value of the member.
void Subscribe(Action<object?> listener)
Parameters
Unsubscribe()
Unsubscribes to the value of the member.
void Unsubscribe()