コード例 #1
0
ファイル: JSonReader.cs プロジェクト: coderhx/codetitans-libs
 /// <summary>
 /// Converts a JSON string from given input into a tree of JSON-specific objects.
 /// It then allows easier deserialization for objects implementing <see cref="IJSonObject"/> interface as those objects expose
 /// more functionality then the standard .NET ones.
 /// </summary>
 public IJSonObject ReadAsJSonObject(JSonReaderNumberFormat format)
 {
     Reset(JSonObjectFactory.Create(format));
     return(ReadInput() as IJSonObject);
 }
コード例 #2
0
ファイル: JSonReader.cs プロジェクト: coderhx/codetitans-libs
 /// <summary>
 /// Converts a JSON string from given input into a tree of JSON-specific objects.
 /// It then allows easier deserialization for objects implementing <see cref="IJSonObject"/> interface as those objects expose
 /// more functionality then the standard .NET ones.
 /// </summary>
 public IJSonObject ReadAsJSonObject(TextReader input, JSonReaderNumberFormat format)
 {
     SetSource(input);
     Reset(JSonObjectFactory.Create(format));
     return(ReadInput() as IJSonObject);
 }
コード例 #3
0
ファイル: BSonReader.cs プロジェクト: coderhx/codetitans-libs
 /// <summary>
 /// Converts a JSON string from given input into a tree of JSON-specific objects.
 /// It then allows easier deserialization for objects implementing <see cref="IJSonObject"/> interface as those objects expose
 /// more functionality then the standard .NET ones.
 /// </summary>
 public IJSonObject ReadAsJSonObject()
 {
     _factory = JSonObjectFactory.Create(JSonReaderNumberFormat.Default);
     return(ReadInput() as IJSonObject);
 }