WALTER | Workable Algorithms for Location-aware Transmission, Encryption Response

JsonStreamReader<(Of <(<'T>)>)>..::..Read Method

Reads this file instance by instance without throwing an error on bad json.

Namespace:  Walter
Assembly:  Walter (in Walter.dll)

Syntax


public IEnumerable<T> Read()

Return Value

IEnumerable<T>.

Remarks


The errors object will contain information on all entries that failed o load

Examples


Read a file from a stream and process the items inividually and return all valid json entries
Read all items from file
using var stream = File.OpenRead("TestData\\LinkedIn.json");
   var sr = new Walter.JsonStreamReader<List<TCPIPNetwork>>(stream,TCPIPNetworkListJsonContext.Default.ListTCPIPNetwork);
   var list = sr.Read();

   foreach (var item in list)
   {
    ...
   }