I want to make a clone of an ObservableCollection (so recursive)
I was doing it with automapper with this simple configuration
var config = new MapperConfiguration(cfg =>
{
cfg.CreateMap<HierarchyNodeModel, HierarchyNodeModel>()
});
and my object:
MyObj = mapper.Map<ObservableCollection<HierarchyNodeModel>, ObservableCollection<HierarchyNodeModel>>(xx);
i upgraded automapper and now it goes on stackoverflow error...
what can i do in alternative to clone my collection?