I'm trying to serialize and object with this line:
string jsonData = JsonConvert.SerializeObject(myObj, Formatting.Indented,
new JsonSerializerSettings
{
ReferenceLoopHandling = ReferenceLoopHandling.Ignore
});
myObj is rather a large object with many lists and properties.
My understanding is this error occurs when you are trying to iterate though an obj that has since been modified.
My question - is how can I figure out which collection is being modified? Any special command I can run in immediate window to tell me which I should focus on?
Thank you, B