title: C# How to convert a struct type list into a string?
body: <p>I am doing a game in Unity and need help with converting my struct list into a string. My codes below are put inside a class called, MonsterHandler.</p>
  
  <pre><code>public enum S_STATE
  {
      S_IDLE,
      S_PATROL,
      S_ATTACK,
      NONE
  }
  
  public struct MONSTERS
  {
      public string Name;
      public int Health;
      public int Damage;
      public S_STATE State;
  };
  
  public List&lt;MONSTERS&gt; monsterList= new List&lt;MONSTERS&gt;();
  
  void Start()
  {
     // add data into the monsterList
     // Debug.Log(monsterList.Count); // print out 5
  
     Debug.Log(monsterList.ToArray()); //printed out "MonsterHandler + MONSTERS"
     // i want to do something like this
     // "Monster_Zombie, 100, 20, S_IDLE, Monster_Donkey, 80, 30, S_IDLE,  Monster_Chicken, 120 , 10, IDLE,.."
  }
  }
  </code></pre>
  
  <p>Is there a way to cast my struct list into a string[], then convert into a string? Or there any other ways</p>