Using an array or IEnumerable for a detail class
<p>I have this class:</p>

<pre><code>public class TextFiller
{
    public HtmlText Text { get; set; }
    public string Details { get; set; }
}
</code></pre>

<p>What I need is to create a parent class that will consist of many TextFillers. I am wondering the best way to do this. Would it be best to do it using what I have on line a, line b or is there some better solution?</p>

<pre><code>public class TextFillerParent
{
  public TextFiller[] TextFiller { get; set; }    &lt;&lt;&lt; a
  public IEnumerable&lt;TextFiller&gt; TextFiller { get; set; }  &lt;&lt;&lt; b
}
</code></pre>

<p>What I will be doing is storing the data in Azure so I will want to be able to serialize TextFillerParent into a JSON string. Will there be any difference if the contents of TextFillerParent are an array of TextFiller or if I use the IEnumberable?  Are there advantages in using IEnumerable? </p>

<p>I MUST be able to set the value of individual TextFiller. I know I can do this with an array but can I also do that if I use IEnumerable or is IEnumerable only good for sequential access?</p>

<p>Thank you.</p>
