C# Класс DevMentor.Context.Store.XmlHelper

Показать файл Открыть проект

Открытые методы

Метод Описание
DeserializeObject ( String pstring, Type objectType ) : Object

Method to reconstruct an Object from XML string

SerializeObject ( Object pobject, Type objectType ) : String

Method to convert a custom Object to XML string

Приватные методы

Метод Описание
StringToUTF8ByteArray ( String pstring ) : Byte[]

Converts the String to UTF8 Byte array and is used in De serialization

UTF8ByteArrayToString ( Byte characters ) : String

To convert a Byte Array of Unicode values (UTF-8 encoded) to a complete String.

Описание методов

DeserializeObject() публичный статический Метод

Method to reconstruct an Object from XML string
public static DeserializeObject ( String pstring, Type objectType ) : Object
pstring String
objectType System.Type
Результат Object

SerializeObject() публичный статический Метод

Method to convert a custom Object to XML string
public static SerializeObject ( Object pobject, Type objectType ) : String
pobject Object
objectType System.Type
Результат String