title: questions on overload of int and double
body: <p>i have 2 methods, intMethod and doubleMethod, they are exactly the same, except intMethod takes an int array parameter and doubleMethod takes a double array parameter. </p>
  
  <p>i know i can use overload to use the same method name, however, i still end up with 2 nearly identical methods which only differs by their parameters. is there anyway i can combine intMethod and doubleMethod into 1 method? </p>
  
  <p>if so, can you provide some sample code please? i can follow much better with some sample code. thanks </p>
  
  <p>EDIT: people request me to post my method, and there you go: </p>
  
  <p>i have an identical method, readDataDouble, which the data array is double[][]</p>
  
  <p>basically this method read a CSV file and convert the data to int format. the first row is time and the first column is date. </p>
  
  <pre><code>    public static void readDataInt(string value, ref int[][] data, ref DateTime[] timeframe, ref DateTime[] date)
      {
          string inputFile = "D:\\temp.csv";
          string[][] temp = null;
  
          if (File.Exists(inputFile))
          {
              string[] proRataVolumeFile = File.ReadAllLines(inputFile);
              temp = new string[proRataVolumeFile.Length][];
  
              for (int i = 0; i &lt; proRataVolumeFile.Length; i++)
              {
                  temp[i] = proRataVolumeFile[i].Split(',');
              }
          }
  
                //convert the string to int
  
          date = new DateTime[temp.Length - 1];
          timeframe = new DateTime[temp[0].Length - 1];
          data = new int[temp.Length - 1][];
  
          for (int i = 1; i &lt; temp.Length; i++)
          {
              data[i - 1] = new int[temp[i].Length - 1];
  
              for (int j = 1; j &lt; temp[i].Length; j++)
              {
                  if (temp[i][j].Length &gt; 0)
                      data[i - 1][j - 1] = Convert.ToInt32(temp[i][j]);
              }
          }
  
          for (int i = 1; i &lt; temp.Length; i++)
          {
              date[i - 1] = Convert.ToDateTime(temp[i][0]);
          }
  
          for (int j = 1; j &lt; temp[0].Length; j++)
          {
              timeframe[j - 1] = DateTime.Parse(temp[0][j]);
          }
      }
  </code></pre>