title: Converting List<List<Parts>> Grid to char C#
body: <p>i am creating a Sokoban game (google if needed) in C# and am trying to get my IsFinishedLevel function working.</p>
  
  <p>these are my idea behind it</p>
  
  <p>background is: Parts.Goal and PlayerOnGoal are parts of the game</p>
  
  <p>my level for this game is stored in this</p>
  
  <pre><code>public List&lt;List&lt;Parts&gt;&gt; Grid { get { return grid; } }
  </code></pre>
  
  <p>this is my try for creating the isFinished method</p>
  
  <pre><code>public bool IsFinished()
      {
          bool Result = true;
           for (int i = 0; i &lt; Grid.ToString().Length; i++)
           {
               if (charLevel == (char)Parts.Goal || charLevel == (char)Parts.PlayerOnGoal)
               {
                   Result = false;
               }
           }           
          return Result;
      }
  </code></pre>
  
  <p>and this is what i have trying to convert it to a char</p>
  
  <pre><code>    public string stringLevel;
      public char charLevel;
  
      public void StringGrid()
      {
          stringLevel = String.Concat(string.Empty, Grid.ToArray());
      }      
      public void CharLevel()
      {
          charLevel = Convert.ToChar(stringLevel);
      }  
  </code></pre>
  
  <p>stringLevel is coming back as null. </p>
  
  <p>HELP!!!!!</p>