C# Class LightFramework.Core.XmlSerializeHelper

XmlSerializeHelper 的摘要说明。
Exibir arquivo Open project: xianrendzw/LightFramework.Net

Public Methods

Method Description
DeSerialize ( Type type, string s ) : object
GetSerializer ( Type t ) : XmlSerializer
Load ( Type type, string filename ) : object

反序列化

Save ( object obj, string filename ) : bool

序列化

Serialize ( object obj ) : string

xml序列化成字符串

Private Methods

Method Description
XmlSerializeHelper ( ) : System

Method Details

DeSerialize() public static method

public static DeSerialize ( Type type, string s ) : object
type System.Type
s string
return object

GetSerializer() public static method

public static GetSerializer ( Type t ) : XmlSerializer
t System.Type
return XmlSerializer

Load() public static method

反序列化
public static Load ( Type type, string filename ) : object
type System.Type 对象类型
filename string 文件路径
return object

Save() public static method

序列化
public static Save ( object obj, string filename ) : bool
obj object 对象
filename string 文件路径
return bool

Serialize() public static method

xml序列化成字符串
public static Serialize ( object obj ) : string
obj object 对象
return string