I have a source type which have simple properties and collection type properties. I have a destination type which have exactly the same simple properties and exactly the same collection type properties.
Edit: I forget to mention that the collection type properties not only the same names but actually the exact same types, regarding both the collection types, both the item types
After I configure one simple mapping for AutoMapper like:
Mapper.CreateMap<MySourceType, MyDestinationType>();
and map an instance:
var destination = Mapper.Map<MyDestinationType>(source);
it seems I got a deep copy. I would not to have a deep copy I would like the destination and source collection type properties just reference copied:
Assert.IsTrue(ReferenceEquals(destination.MyCollection, source.MyCollection));