C# Class Tup.Utilities.JsonHelper

讲一个对象序列化为一个Json字符串,或者将一个Json字符串序列化为一个对象
Exibir arquivo Open project: tupunco/Tup.Utilities

Public Methods

Method Description
DeserializeObject ( string s, Type targetType ) : object

Deserialize Object

SerializeObject ( object obj ) : string

Serialize Object

Method Details

DeserializeObject() public static method

Deserialize Object
public static DeserializeObject ( string s, Type targetType ) : object
s string
targetType System.Type
return object

SerializeObject() public static method

Serialize Object
public static SerializeObject ( object obj ) : string
obj object
return string