Serialization exception occurs when I try to serialize a class in C#, cause it holds a reference to a non serializable class. The problem is that the class I want to serialize is very complicated, and contains a lot of references to other complicated classes, and I can't find the reference to the problematic class in this huge amount of code. Is there a way to find out where is the property or filed with the non serializable class is? Perhaps somewhere in the exception details? I didn't find something like it.
Thanks :)