title: Access 2d array with point in wpf C#
body: <p>I have a 2d array of a class. The size of array is very large (around 3000*3000) and accessing the array with ordinary row and column method is taking very much time. For this purpose, I want to use pointers to access the array.</p>
  
  <p>Following is my array code:</p>
  
  <p>Class definition: </p>
  
  <pre><code>Class BoxData     
  {
    Size _bound;
    bool _isFilled=false;
    Color _color=Colors.White;
  
    public Size Bounds
    {
      get
      {
        return _bound;
      }
      set
      {
        _bound=value;
      }
    }
  
    public bool IsFilled
    {
      get
      {
        return _isFilled;
      }
      set
      {
        _isFilled=value;
      }
    }
  
    public Color FillColor
    {
      get
      {
        return _color;
      }
      set
      {
        _color=value;
      }
    }
  }
  </code></pre>
  
  <p>Class used as array in application:</p>
  
  <pre><code>BoxData[,] boxData=new BoxData[3000,3000];
  </code></pre>
  
  <p>I want to access boxData with pointers. </p>
  
  <p>Thanks</p>