title: How to get the current length of different arrays in jagged arrays using for-loops in c#
body: <pre><code>    static void Main(string[] args)
      {
          char[][] array = {new char[] {'2','A','3','E'},
                            new char[] {'F','A'},
                            new char[] {'F','F','F','F'},
                            new char[] {'5','A','0','E','9'}};
          List&lt;double&gt; arr = new List&lt;double&gt;();
          List&lt;double&gt; results = new List&lt;double&gt;();
          for (int i = 0; i &lt; array.Length; i++)
          {
              double result = 0;
              for (int index = 0; index &lt; **array.Length**; index++)
              {
                  char c = array[i][index];
                  if (c &gt; 47 &amp;&amp; c &lt; 58)
                  {
                      arr.Add(c - 48);
                  }
                  else 
                  {
                      arr.Add((c - 65)+10);
                  }
              }
              int power = arr.Count();
              for (int ind = 0; ind &lt; power; ind++)
              {
                  arr[ind] = Math.Pow(16, power - 1) * arr[ind];
                  power--;
                  result += arr[ind];
              }
              arr = new List&lt;double&gt;();
              results.Add(result);
          }
  
      }
  </code></pre>
  
  <p>My goal is to convert these HEX numeric system numbers to Decimal numeric system numbers.
  I know the easy and short way using Console.WriteLine()methods and Standard Numeric Format Strings, but the point is to do this hard way(using jagged arrays). All code work properly , but i dont know how to do change(or get current) value length of different inner arrays in jagged array. If i do it this way usign array.Length - it stay static and doesnt change like i need. I try to use array.GetLength(i) but it dosent work 2.</p>