C# Class HelloWorld.JsonDataObject

Inheritance: Newtonsoft.Json.Linq.JObject, IDataHost
Exibir arquivo Open project: Ivony/HelloWorld Class Usage Examples

Private Properties

Property Type Description
ConvertProperty Newtonsoft.Json.Linq.JProperty
ConvertValue JToken
JsonDataObject System
JsonDataObject System

Public Methods

Method Description
Add ( object content ) : void
Save ( JToken data ) : void

Protected Methods

Method Description
OnPropertyChanged ( string propertyName ) : void
OnPropertyChanging ( string propertyName ) : void

Private Methods

Method Description
ConvertProperty ( JProperty property ) : JProperty
ConvertValue ( JToken data, IDataHost host ) : JToken

将 Json 数据包装成相应的数据对象

JsonDataObject ( IDataHost host ) : System
JsonDataObject ( Newtonsoft.Json.Linq.JObject data, IDataHost host ) : System

Method Details

Add() public method

public Add ( object content ) : void
content object
return void

OnPropertyChanged() protected method

protected OnPropertyChanged ( string propertyName ) : void
propertyName string
return void

OnPropertyChanging() protected method

protected OnPropertyChanging ( string propertyName ) : void
propertyName string
return void

Save() public method

public Save ( JToken data ) : void
data JToken
return void