title: Converting C++ pointer struct to C#
body: <p>I have 2 structs in C language:</p>
  
  <pre class="lang-c prettyprint-override"><code>struct CSquare
  {
      char Side;
      int  Row;
      int  Col;    
  };
  
  struct CSide
  {
     char     m_Side;           
     char     m_Blocks[3][3];     
     CSquare  *m_Moves;
  };
  </code></pre>
  
  <p>and C++ code:</p>
  
  <pre class="lang-c prettyprint-override"><code>int Count = 0;
  int Flag = 0;
  if (m_Down-&gt;m_Blocks[0][1] == *m_Down)
  {
      Count++;
      Flag |= 2;
      // type of m_Down is CSide
  }
  </code></pre>
  
  <p>I'm trying to convert they to C#:</p>
  
  <pre class="lang-cs prettyprint-override"><code>public class Square
  {
      public char Side { get; set; }
      public int Row { get; set; }   
      public int Col { get; set; }
  }
  
  public class CubeSide
  {
      private char Side { get; set; }
      private char[,] _block = new char[3, 3];
      private Square[] moves;
  
      public char[,] Block
      {
          get { return _block; }
          set { _block = value; }
      }
  
      internal Square[] Moves
      {
          get { return moves; }
          set { moves = value; }
      }
  }
  </code></pre>
  
  <p>But I don't know how to convert line:</p>
  
  <pre class="lang-c prettyprint-override"><code>if (m_Down-&gt;m_Blocks[0][1] == *m_Down)
  </code></pre>
  
  <p>to C#?</p>
  
  <p>How can I convert this line to C#?</p>