// Reads a collection element from the PQDIF file. private CollectionElement ReadCollection(BinaryReader recordBodyReader) { int size = recordBodyReader.ReadInt32(); CollectionElement collection = new CollectionElement(); for (int i = 0; i < size; i++) { collection.AddElement(ReadElement(recordBodyReader)); } return(collection); }
// Reads a collection element from the PQDIF file. private CollectionElement ReadCollection(BinaryReader recordBodyReader) { int size = recordBodyReader.ReadInt32(); CollectionElement collection = new CollectionElement(); collection.ReadSize = size; for (int i = 0; i < size; i++) { collection.AddElement(ReadElement(recordBodyReader)); if (recordBodyReader.BaseStream.Position >= recordBodyReader.BaseStream.Length || MaximumExceptionsReached) { break; } } return(collection); }
// Reads a collection element from the PQDIF file. private CollectionElement ReadCollection(BinaryReader recordBodyReader) { int size = recordBodyReader.ReadInt32(); CollectionElement collection = new CollectionElement(); for (int i = 0; i < size; i++) collection.AddElement(ReadElement(recordBodyReader)); return collection; }
// Reads a collection element from the PQDIF file. private CollectionElement ReadCollection(BinaryReader recordBodyReader) { int size = recordBodyReader.ReadInt32(); CollectionElement collection = new CollectionElement(); collection.ReadSize = size; for (int i = 0; i < size; i++) { collection.AddElement(ReadElement(recordBodyReader)); if (recordBodyReader.BaseStream.Position >= recordBodyReader.BaseStream.Length || MaximumExceptionsReached) break; } return collection; }