title: Adding an value to multidimensional array in c# asp.net
body: <p>I need to add values in an multidimensional array whitin an while loop. But I don't know how.</p>
  
  <pre><code>public Array getDailyAvgRatingByCompanyId(int companyId, int periodStart = 0, int periodEnd = 0)
          {
              int[,] arr = { { }, { } };
  
              string queryString = "SELECT num_ratings_day, rating_gem, daymonthyear FROM company_rating_daily_avg WHERE company_id = " + companyId + " ORDER BY daymonthyear ASC";
              SqlDataReader myDataReader = Database.sqlDataReader(queryString);
  
              if (myDataReader.HasRows)
              {
                  while (myDataReader.Read())
                  {
                      //Something like arr[0].Push(myDataReader['num_ratings_day']
                  }
              }
  
              return arr;
          }
  </code></pre>