Interface ISerializationManager
The Serialization Manager provides APIs for serializing and deserializing objects to and from strings.
Namespace: DotNetNuke.Abstractions
Assembly: DotNetNuke.Abstractions.dll
Syntax
public interface ISerializationManager
Methods
| Improve this Doc View SourceDeserializeProperty<T>(T, PropertyInfo, String, String)
Deserializes the string property.
Declaration
void DeserializeProperty<T>(T myObject, PropertyInfo property, string propertyValue, string serializer)
where T : class, new()
Parameters
Type | Name | Description |
---|---|---|
T | myObject | The object.. |
PropertyInfo | property | The property info.. |
System.String | propertyValue | The serialized string. |
System.String | serializer | The name of a type implementing |
Type Parameters
Name | Description |
---|---|
T | The object the string should be deserialized into. |
DeserializeProperty<T>(T, PropertyInfo, String)
Deserializes the string property.
Declaration
void DeserializeProperty<T>(T myObject, PropertyInfo property, string propertyValue)
where T : class, new()
Parameters
Type | Name | Description |
---|---|---|
T | myObject | The object. |
PropertyInfo | property | The property info.. |
System.String | propertyValue | The serialized string. |
Type Parameters
Name | Description |
---|---|
T | The object the string should be deserialized into. |
DeserializeValue<T>(String, String)
Deserializes the string value.
Declaration
T DeserializeValue<T>(string value, string serializer)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | The serialized string. |
System.String | serializer | The name of a type implementing |
Returns
Type | Description |
---|---|
T | The value deserialized into the given type. |
Type Parameters
Name | Description |
---|---|
T | The type the string should be deserialized into. |
DeserializeValue<T>(String)
Deserializes the string value.
Declaration
T DeserializeValue<T>(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | The serialized string. |
Returns
Type | Description |
---|---|
T | The value deserialized into the given type. |
Type Parameters
Name | Description |
---|---|
T | The type the string should be deserialized into. |
SerializeProperty<T>(T, PropertyInfo, String)
Serialize the property.
Declaration
string SerializeProperty<T>(T myObject, PropertyInfo property, string serializer)
Parameters
Type | Name | Description |
---|---|---|
T | myObject | The object to serialize.. |
PropertyInfo | property | The property info. |
System.String | serializer | The name of a type implementing |
Returns
Type | Description |
---|---|
System.String | A serialized string. |
Type Parameters
Name | Description |
---|---|
T | The type to serialize. |
SerializeProperty<T>(T, PropertyInfo)
Serialize the property.
Declaration
string SerializeProperty<T>(T myObject, PropertyInfo property)
Parameters
Type | Name | Description |
---|---|---|
T | myObject | The object to serialize. |
PropertyInfo | property | The property info. |
Returns
Type | Description |
---|---|
System.String | A serialized string. |
Type Parameters
Name | Description |
---|---|
T | The type to serialize. |
SerializeValue<T>(T, String)
Serialize the value.
Declaration
string SerializeValue<T>(T value, string serializer)
Parameters
Type | Name | Description |
---|---|---|
T | value | The value to serialize. |
System.String | serializer | The name of a type implementing |
Returns
Type | Description |
---|---|
System.String | The |
Type Parameters
Name | Description |
---|---|
T | The type of value to serialize. |
SerializeValue<T>(T)
Serialize the value.
Declaration
string SerializeValue<T>(T value)
Parameters
Type | Name | Description |
---|---|---|
T | value | The value to serialize. |
Returns
Type | Description |
---|---|
System.String | The |
Type Parameters
Name | Description |
---|---|
T | The type of value to serialize. |