AutoMapper/AutoMapper — pull request #290 by billrob (2013-01-25 00:02:18+00:00)
Title: Improvements to ReadOnlyCollection support.

The issue is when the object is mapped a second time. The ReadOnlyCollection mapper is using the existing IEnumerable and as such is throwing an exception and not modifying anything.

This code modifies the ReadOnlyCollectionMapper to create a new ReadOnlyCollection<> each time the property is mapped.