title: Preventing Autofixture from filling child collections
body: <p>I'm using the latest version of Autofixture, and I'd like to prevent it from filling automatically child collections.</p>
  
  <p>For example, I have a class Person that has a List property. I want all properties filled, except the list.</p>
  
  <p>I tried using this customization : </p>
  
  <pre><code>public class RemoveMultiples : ICustomization
  {
      public void Customize(IFixture fixture)
      {
          fixture.Customizations
              .OfType&lt;FilteringSpecimenBuilder&gt;()
              .Where(x =&gt; x.Specification is DictionarySpecification)
              .ToList().ForEach(c =&gt; fixture.Customizations.Remove(c));
          fixture.Customizations
              .OfType&lt;FilteringSpecimenBuilder&gt;()
              .Where(x =&gt; x.Specification is CollectionSpecification)
              .ToList().ForEach(c =&gt; fixture.Customizations.Remove(c));
          fixture.Customizations
              .OfType&lt;FilteringSpecimenBuilder&gt;()
              .Where(x =&gt; x.Specification is HashSetSpecification)
              .ToList().ForEach(c =&gt; fixture.Customizations.Remove(c));
          fixture.Customizations
              .OfType&lt;FilteringSpecimenBuilder&gt;()
              .Where(x =&gt; x.Specification is ListSpecification)
              .ToList().ForEach(c =&gt; fixture.Customizations.Remove(c));
      }
  }
  </code></pre>
  
  <p>But it also prevents me from using <code>.CreateMany()</code>.</p>
  
  <p>edit: I can use <code>.CreateMany(3)</code> and it works.</p>
  
  <p>Is there a setting somewhere that could let me autofill collections only when I need to?</p>
  
  <p>edit2: Class person should look like this:</p>
  
  <pre><code>[Serializable]
  public class Person
  {
      private ICollection&lt;OtherClass&gt; _otherClasses; 
      private string _something;
      public virtual ICollection&lt;OtherClass&gt; OtherClasses
      {
          get { return _otherClasses; }
          set { _otherClasses = value; }
      }
  }
  </code></pre>
  
  <p>Note that it's not always a <code>Collection</code>, but sometimes <code>IList</code></p>
  
  <p>Note2: I just realized that someone also removed the Customization for <code>IEnumerable</code> hence why the <code>CreateMany()</code> doesn't create anything.</p>