title: AutoMapper creates objects of Internal classes, how is that?
body: <p>This might be very trivial, I was just wondering that how is AutoMapper able to create instances of classes with internal constructors.</p>
  
  <p>So I have a 4 Projects <code>UI BLL ENTITY DAL</code></p>
  
  <p>BLL Has all mapping information, DAL fetches data from DB and creates a new instance on Entity Class which has internal constructor.</p>
  
  <p>in DAL I do </p>
  
  <pre><code>Mapper.Map&lt;dalObjct, EntityObject&gt; (_db.GetItem())
  </code></pre>
  
  <p>and it returns object of type <code>EntityObject</code>. This all works but I am wondering how AutoMapper creates instance of EntityObject when it's constructor is marked as internal.</p>