Click or drag to resize

CSVReader Class

Reader for CSV-data
Inheritance Hierarchy

Namespace:  Karamba.Utilities
Assembly:  KarambaCommon (in KarambaCommon.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public class CSVReader

The CSVReader type exposes the following members.

Constructors
  NameDescription
Public methodCSVReader
create new CSV Reader
Top
Properties
  NameDescription
Public propertyitemsTable
get raw table of items which was ranked by the user
Top
Methods
  NameDescription
Public methodcolourValue
retrieve color data from line of csv-data. selection_ids contains indices of items to be converted to colors. Values non-existent in the table cause the default color to be returned.
Public methoddoubleValue(ListString, Int32)
retrieve numerical data from line of csv-data. selection_ids contains indices of items to be converted to numbers. Values non-existent in the table cause an exception. Decimal separators may be '.' or ','.
Public methoddoubleValue(ListString, Int32, Double)
try to retrieve value with index id1; if not successful return val
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methoditems
get items of line in table that is identified by a zero based index
Public methodlineNumber
return line number in CSV-file of row with given index. Index and line number may deviate in case of remark rows
Public methodlongValue(ListString, Int32)
retrieve integer data from line of CSV-data
Public methodlongValue(ListString, Int32, Int64)
try to retrieve value with index id1; if not successful return val
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodread
read table, convert contents to upper case, remove blanks and sort by field FieldID if required. Sort table according to column given by FieldID if its value is > 0
Public methodStatic memberToDouble
convert string to double value. if not successful return null
Public methodStatic memberToLong
convert string to a long integer. if not successful return null
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also