Interface ISettingsSerializer<T>
Implement this interface to control how property values are serialized and deserialized.
Namespace: DotNetNuke.Entities.Modules.Settings
Assembly: DotNetNuke.dll
Syntax
public interface ISettingsSerializer<T>
Type Parameters
Name | Description |
---|---|
T | The type that will be serialized or deserialized. |
Remarks
The ParameterAttributeBase serialize property will identify a serialization class to be used for serializing and deserializing a property to be stored in the settings table.
Methods
| Improve this Doc View SourceDeserialize(String)
Deserialize the property value from a string into the defined type.
Declaration
T Deserialize(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | The serialized value of the associated settings property. |
Returns
Type | Description |
---|---|
T | An object of the specified type. |
Remarks
The ParameterAttributeBase serialize property will identify a serialization class to be used for serializing and deserializing a property to be stored in the settings table.
Serialize(T)
Serialize the property value into a string.
Declaration
string Serialize(T value)
Parameters
Type | Name | Description |
---|---|---|
T | value | The value of the associated settings property. |
Returns
Type | Description |
---|---|
System.String | String. |
Remarks
The ParameterAttributeBase serialize property will identify a serialization class to be used for serializing and deserializing a property to be stored in the settings table.