IPropertySerializable

Name Value
Assembly Catel.Core
Namespace Catel.Runtime.Serialization
Available on .NET Framework 4.5, .NET Framework 4.6, Portable Class Libraries, Xamarin - Android, Xamarin - iOS
public interface IPropertySerializable

Fast serialization interaction. By default the serialization engine uses reflection to get and set values. To improve performance, once can implement this interface.

Methods

GetPropertyValue(string propertyName, object value)

Gets the property value.

Parameters

Name Description
propertyName Name of the property.
value The value.

Returns

true if the value is retrieved successfully; otherwise,false.

SetPropertyValue(string propertyName, object value)

Sets the property value.

Parameters

Name Description
propertyName Name of the property.
value The value.

Returns

true if the value is set successfully; otherwise,false.


Have a question about Catel? Use StackOverflow with the Catel tag!


Discussion