C# Class Build2014.Csharp6.PointJson

Show file Open project: ufcpp/UfcppSample

Public Methods

Method Description
ArrayToString ( this points ) : string
FromJson ( Newtonsoft.Json.Linq.JArray array ) : IEnumerable
ParseArray ( string json ) : IEnumerable
ToJson ( IEnumerable points ) : Newtonsoft.Json.Linq.JArray

Private Methods

Method Description
Point ( x y ) : Newtonsoft.Json.Linq
TryGetInt ( json json ) : Newtonsoft.Json.Linq
TryGetInt ( JToken json, int &value ) : bool

Method Details

ArrayToString() public static method

public static ArrayToString ( this points ) : string
points this
return string

FromJson() public static method

public static FromJson ( Newtonsoft.Json.Linq.JArray array ) : IEnumerable
array Newtonsoft.Json.Linq.JArray
return IEnumerable

ParseArray() public static method

public static ParseArray ( string json ) : IEnumerable
json string
return IEnumerable

ToJson() public static method

public static ToJson ( IEnumerable points ) : Newtonsoft.Json.Linq.JArray
points IEnumerable
return Newtonsoft.Json.Linq.JArray