C# Class Slickflow.Engine.Utility.SerializationHelper

序列化帮助类
ファイルを表示 Open project: uname-yang/WorkFlow-Engine-OData-WebApi-with-OdataClient

Public Methods

Method Description
Deserialize ( Type type, string strObject, string rootName, string nameSpace ) : object

反序列化一个对象

Serialize ( Type type, object obj, string rootName, string nameSpace ) : string

DataContractSerializer序列化一个对象

Method Details

Deserialize() public static method

反序列化一个对象
public static Deserialize ( Type type, string strObject, string rootName, string nameSpace ) : object
type System.Type
strObject string
rootName string
nameSpace string
return object

Serialize() public static method

DataContractSerializer序列化一个对象
public static Serialize ( Type type, object obj, string rootName, string nameSpace ) : string
type System.Type 对象类型
obj object 实例对象
rootName string
nameSpace string
return string