Exemplo n.º 1
0
 /// <summary>
 /// read data from a json stream
 /// </summary>
 /// <param name="type">type of data to read</param>
 /// <param name="stream">stream from which to read</param>
 /// <param name="leaveopen">whether to leave <see cref="Stream"/> open after reading</param>
 /// <returns>deserialized data</returns>
 public static object Read(Type type, Stream stream, bool leaveopen = false)
 {
     return(serializer.Read(type, writer.Read(stream)));
 }