CsvSerializer<TTargetType>.DeserializeArray method (1 of 2)
Creates a collection of TargetType objects from a stream of text containing CSV.
public ICollection<TTargetType> DeserializeArray(TextReader reader, bool readHeader)
| parameter | description |
|---|---|
| reader | TextReader to read in from. |
| readHeader | True if a header row is expected, false otherwise. |
Return Value
An array of objects containing the records in the file.
See Also
- class CsvSerializer<TTargetType>
- namespace TheCodingMonkey.Serialization
CsvSerializer<TTargetType>.DeserializeArray method (2 of 2)
Creates a collection of TargetType objects from a stream of text containing CSV.
public ICollection<TTargetType> DeserializeArray(TextReader reader, int count, bool readHeader)
| parameter | description |
|---|---|
| reader | TextReader to read in from. |
| count | Number of records to read. |
| readHeader | True if a header row is expected, false otherwise. |
Return Value
An array of objects containing the records in the file.
Exceptions
| exception | condition |
|---|---|
| TextSerializationException | Thrown if the header record does not match the names of the parameters in the TargetType class. |
See Also
- class CsvSerializer<TTargetType>
- namespace TheCodingMonkey.Serialization