CSV Reports
CsvReader Class Members
Properties  Methods 


KellermanSoftware.CsvReports Namespace : CsvReader Class

The following tables list the members exposed by CsvReader.

Public Constructors
 NameDescription
Public ConstructorOverloaded.   
Top
Public Properties
 NameDescription
Public Property If true, blanks (string.empty) will be converted to null. The default is false.  
Public Property Override the default encoding. The default is Encoding.Default  
Public Property Value used to escape the quote character. Defaults to \  
Public Property If true, the source has a header. Defaults to true  
Public Property The quote character. Defaults to double quote  
Public Property Any spaces in header column names are removed. The default is true.  
Public Property The seperator for the columns. Default is a comma. It can be changed to a pipe, tab, etc.  
Public Property Any spaces will be trimmed. The default is true.  
Top
Public Methods
 NameDescription
Public Method Create a forward only reader for a CSV file  
Public Method Read a CSV file into a DataTable. There must be a header row and the column names must be alpha numeric.  
Public Method Read a CSV File and return a dictionary with the keys as the header names. By default header column name spaces are removed. See RemoveColumnNameSpaces.  
Public Method Read a CSV file into a list of objects. Public properties are mapped by name, they are case sensitive. It will automatically map all primitive types such as int, long, string and complex types of GUID, Enum, DateTime. Properties that do not exist are ignored.  
Public Method Read a CSV File and return a list of rows and columns  
Public Method Create a forward only reader for a CSV stream  
Public Method Read a CSV stream into a DataTable  
Public Method Read a CSV Stream and return a dictionary with the keys as the header names. By default header column name spaces are removed. See RemoveColumnNameSpaces.  
Public Method Read a CSV stream into a list of objects. Public properties are mapped by name, they are case sensitive. By default header column name spaces are removed. See RemoveColumnNameSpaces. It will automatically map all primitive types such as int, long, string and complex types of GUID, Enum, DateTime Properties that do not exist are ignored.  
Public Method Read a CSV Stream and return a list of rows and columns  
Public Method Read a CSV string into a DataTable. There must be a header row and the column names must be alpha numeric.  
Public Method Read a CSV String and return a dictionary with the keys as the header names. By default header column name spaces are removed. See RemoveColumnNameSpaces.  
Public Method Read a CSV string into a list of objects. Public properties are mapped by name, they are case sensitive. It will automatically map all primitive types such as int, long, string and complex types of GUID, Enum, DateTime. Properties that do not exist are ignored.  
Public Method Read a CSV String and return a list of rows and columns  
Public Method This will replace CR with CRLF if the line does not already end with CRLF  
Top
See Also

Reference

CsvReader Class
KellermanSoftware.CsvReports Namespace