title: Generic two-dimensional matrix Length(0) C#
body: <p>I am trying to construct a two-dimensional Matrix where T is number( int, float decimal), but when I try to create a constructor from a two dimensional array T[,] it does not allow me to get Length(0) and Length(1), only Length. I will need then to subtract, multiply and add instances of Matrix, but I can't go through them without the two dimensions.
  Compiler error: Method, delegate or event expected. Thanks.</p>
  
  <pre><code>using System;
  public class Matrix&lt;T&gt;
      where T : struct,
       IComparable&lt;T&gt;, 
       IConvertible, 
       IEquatable&lt;T&gt;, 
       IFormattable
  {
      readonly T[,] matr;
      public int rows;
  
      public int Rows
      {
          get { return rows; }
      }
  
      public int Cols
      {
          get { return cols; }
      }
  
      public int cols;
  
      public Matrix(T[,] table)
      {
          matr = table;
          rows = matr.Length(0);//problem here
          cols = matr.Length(1);//problem here
      }
  </code></pre>