Click or drag to resize

SerializableEntityLoadAll(JsonReader) Method

This is preliminary documentation and is subject to change.

Enumerates all the entities from JSON array of serialized contained in the JSON reader.

Namespace: WikiClientLibrary.Wikibase
Assembly: WikiClientLibrary.Wikibase (in WikiClientLibrary.Wikibase.dll) Version: 0.8.0+bba8b7a48c3412988f4331f41f4164c670d73663
Syntax
public static IEnumerable<SerializableEntity?> LoadAll(
	JsonReader reader
)

Parameters

reader  JsonReader
The reader from which to read serialized entity JSON.

Return Value

IEnumerableSerializableEntity
A sequence that, when enumerated, will read a JSON array from reader, and parses it into a sequence of SerializableEntitys. If there is null in the JSON array, null will be enumerated in the sequence.
Exceptions
ExceptionCondition
JsonExceptionThe JSON is invalid.
Remarks

This method is recommended when you are working with a large JSON dump of Wikibase entities, because it only put the current enumerated entity in the memory. Still, you can use ToListTSource(IEnumerableTSource) to get all the entities at one time.

If you stopped enumerating the returned sequence, the reader will stop in the middle of array, at the end of current enumerated entity.

See Also