Encog.Util.CSV.ReadCSV.Get C# (CSharp) Method

Get() public method

Get the column by its string name, as a string. This will only work if column headers were defined that have string names.
public Get ( String column ) : String
column String The column name.
return String
        public String Get(String column)
        {
            if (!_columns.ContainsKey(column.ToLower()))
                return null;
            int i = _columns[column.ToLower()];

            return _data[i];
        }

Same methods

ReadCSV::Get ( int i ) : String

Usage Example

 /// <summary>
 /// Construct a loaded row.
 /// </summary>
 ///
 /// <param name="csv">The CSV file to use.</param>
 /// <param name="extra">The number of extra columns to add.</param>
 public LoadedRow(ReadCSV csv, int extra)
 {
     int count = csv.GetCount();
     _data = new String[count + extra];
     for (int i = 0; i < count; i++)
     {
         _data[i] = csv.Get(i);
     }
 }
All Usage Examples Of Encog.Util.CSV.ReadCSV::Get