Interface IPropertyDescriptor<T>
Definition
Namespace: StardewUI.Framework.Descriptors
Assembly: StardewUI.dll
Describes a single property on a bindable object (i.e. a view) and provides methods to read or write the value.
public interface IPropertyDescriptor<T> :
StardewUI.Framework.Descriptors.IPropertyDescriptor,
StardewUI.Framework.Descriptors.IMemberDescriptor
Type Parameters
T
The property type.
Implements
IPropertyDescriptor, IMemberDescriptor
Remarks
The read and write methods take Object as a receiver because they are intended to be invoked from a non-generic context.
Members
Methods
Name | Description |
---|---|
GetValue(Object) | Reads the current property value. |
SetValue(Object, T) | Writes a new property value. |
Details
Methods
GetValue(Object)
Reads the current property value.
Parameters
source
Object
An instance of the property's DeclaringType.
Returns
T
The current property value.
SetValue(Object, T)
Writes a new property value.
Parameters
target
Object
An instance of the property's DeclaringType.
value
T
The new property value.