C# Class DevMentor.Context.Store.XmlHelper

ファイルを表示 Open project: pmizel/DevMentor.Context.FileContext

Public Methods

Method Description
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

Private Methods

Method Description
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.

Method Details

DeserializeObject() public static method

Method to reconstruct an Object from XML string
public static DeserializeObject ( String pstring, Type objectType ) : Object
pstring String
objectType System.Type
return Object

SerializeObject() public static method

Method to convert a custom Object to XML string
public static SerializeObject ( Object pobject, Type objectType ) : String
pobject Object
objectType System.Type
return String