title: Get particular cell value of CSV file
body: <p>I have a sample csv file as below:</p>
  
  <pre><code>Index,Name,Age,Occupation
  1,John,23,Driver
  2,Jack,28,Painter
  3,Alice,26,Accountant
  4,Don,19,Student
  </code></pre>
  
  <p>And, here is the class for my csv file:</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  using System.Threading.Tasks;
  using FileHelpers;
  
  namespace FileHelpersTester
  {
      [DelimitedRecord(",")]
      [IgnoreFirst(1)]
      public class SpecDataOrder
      {
          public String Index;
  
          public String Name;
  
          public String Age;
  
          public String Occupation;
      }
  }
  </code></pre>
  
  <p>My main method is as below:</p>
  
  <pre><code>namespace FileHelpersTester
  {
      public class Program
      {
          static void Main(string[] args)
          {
              String specDataPath = @"C:\sample c# programs\FileHelpersTester\FileHelpersTester\bin\Debug\Sample.csv";
              String tester = GetValue(specDataPath, "2", SpecDataOrder.Name); //I expect the value of tester = "Jack"
  
          }
  
          public T GetValue&lt;T&gt;(String csvFilePath, String row, SpecDataOrder col)
          {
              var engine = new FileHelperEngine&lt;SpecDataOrder&gt;();
              var records = engine.ReadFile(csvFilePath);
              var dict = new Dictionary&lt;String, SpecDataOrder&gt;();
  
              foreach (var record in records)
              {
                  dict[record.Index] = record;
              }
              return (T)Convert.ChangeType(dict[row].Index, typeof(T));
          }
      }    
  }
  </code></pre>
  
  <p>I am not sure where I had gone wrong. This is just a test program that I had written before going into a much more complex code that handles a large number of data in csv format. Any help is highly appreciated.</p>