• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

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 Source

DeserializeProperty<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 DotNetNuke.Entities.Modules.Settings.ISettingsSerializer{T} to use in deserializing the property.

Type Parameters
Name Description
T

The object the string should be deserialized into.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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 DotNetNuke.Entities.Modules.Settings.ISettingsSerializer{T} to use in deserializing the property.

Returns
Type Description
T

The value deserialized into the given type.

Type Parameters
Name Description
T

The type the string should be deserialized into.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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 DotNetNuke.Entities.Modules.Settings.ISettingsSerializer{T} to use in serializing the property.

Returns
Type Description
System.String

A serialized string.

Type Parameters
Name Description
T

The type to serialize.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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 DotNetNuke.Entities.Modules.Settings.ISettingsSerializer{T} to use in serializing the value.

Returns
Type Description
System.String

The value serialized to a .

Type Parameters
Name Description
T

The type of value to serialize.

| Improve this Doc View Source

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 value serialized to a .

Type Parameters
Name Description
T

The type of value to serialize.

Extension Methods

JsonExtensionsWeb.ToJson(Object)
  • View Source
Back to top by the community, for the community... #DNNCMS