No definition for GetLength() in int[][] How do I fix this? : <p>I'm trying to solve the diagonal difference <a href="https://www.hackerrank.com/challenges/diagonal-difference/problem" rel="nofollow noreferrer">problem</a> but it keeps on giving me this problem:</p>

<blockquote>
  <p>Type <code>int[][]' does not contain a definition for</code>GetLenght' and no extension method <code>GetLenght' of type</code>int[][]' could be found.</p>
</blockquote>

<pre><code>static int diagonalDifference(int[][] arr) {
    int result = 0;
    int result2 = 0;
    for (int i = 0; i &lt; arr.GetLenght(0); i++)
    {
        result =+ arr[i][i];
    }
    for (int i = arr.GetLength(0); i &gt; 0; i--) {
        result2 =+ arr[i][i];
    }
    return Math.Abs(result+result2);
}
</code></pre>

<p>This are my references: </p>

<pre><code>using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.Collections;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.Serialization;
using System.Text.RegularExpressions;
using System.Text;
using static System.Array;
using System;
</code></pre>
