I have an exception thrown by a WPF application. The message is:
Type 'MyNamespacesPath.AType+<>c__DisplayClass5' in Assembly... is not marked as serializable
The problem is that the type cannot be serialized. But that type is autogenerated, maybe an anonymous method or expression tree. Anyone knows the exact origin of these kinds of types to know where to find the bug?