ObservableObjectBaseCanSetProperty Method

Gets whether the specified property can be set.
The base implementation allows to set the actual instance properties in this instance if the specified value is compatible with the property type.

Definition

Namespace: KGySoft.ComponentModel
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0-preview.1
C#
protected virtual bool CanSetProperty(
	string propertyName,
	Object? value
)

Parameters

propertyName  String
Name of the property to set.
value  Object
The property value to set.

Return Value

Boolean
, if the specified property can be set; otherwise, .

See Also