C# 클래스 DevMentor.Context.XmlHelper

파일 보기 프로젝트 열기: pmizel/DevMentor.Context.FileContext

공개 메소드들

메소드 설명
DeserializeObject ( String pXmlizedString, 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 pXmlString ) : 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 pXmlizedString, Type objectType ) : Object
pXmlizedString 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 Object that is to be serialized to XML
objectType System.Type
리턴 String