title: Setting an object in C# from a comma delimited string
body: <p>I am looping through a list of Umbraco nodes and setting the properties of my class using the property values on each node</p>
  
  <pre><code>foreach (var node in listOfNodeWithProperty)
  {
      var faqProperties = new Faq
      {
          Question = node.GetPropertyValue&lt;string&gt;("question"),
          Answer = node.GetPropertyValue&lt;string&gt;("answer"),
          Schemes = node.GetPropertyValue&lt;string&gt;("schemes")
      };
  
      faqCollection.faqs.Add(faqProperties);
  
  }
  </code></pre>
  
  <p>My Faq class is as follows</p>
  
  <pre><code>internal class Faq
  {
      public string Question { get; set; }
      public string Answer { get; set; }
      public string Schemes { get; set; }
      public IEnumerable&lt;SchemeTypes&gt; SchemeTypes { get; set; } 
  }
  
  internal class SchemeTypes
  {
      public string SchemeType { get; set; }
  }
  </code></pre>
  
  <p>All straight forward for strings but the values that I want to populate the SchemeTypes object is a comma delimited string. How do I take this string and create an array to populate SchemeTypes?</p>
  
  <p>I want SchemeTypes as an object because my final output will be JSON</p>