Interface IPropertyReference<T>
Represents a strongly-typed reference to a property, providing methods for getting, setting, and clearing the property value for a specific type.
public interface IPropertyReference<T> : IPropertyReference
Type Parameters
TThe type of the property value.
- Inherited Members
- Extension Methods
Methods
ClearValue(object)
Clears the value of the referenced property on the specified target object.
void ClearValue(object target)
Parameters
targetobjectThe object from which to clear the property value.
Remarks
This method removes the value of the property for the given instance of the owner type, effectively resetting it to its default state.
GetValue(object)
Gets the value of the referenced property from the specified target object.
T GetValue(object target)
Parameters
targetobjectThe object from which to retrieve the property value.
Returns
- T
The value of the referenced property.
Remarks
This method retrieves the current value of the property for the given instance of the owner type.
SetValue(object, T)
Sets the value of the referenced property on the specified target object.
void SetValue(object target, T value)
Parameters
targetobjectThe object on which to set the property value.
valueTThe new value to assign to the property.
Remarks
This method updates the property value for the given instance of the owner type with the specified value.