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