.NET Serialization Issue -


i keep getting 'type xxx not marked serializable' exception when try serialize object of mine. might sound silly, problem can't seem find references object of type xxx anywhere on object graph (using debugger hover windows). know way scan object graph of type?

it's complex object graph (100s of levels deep), i'm sure there must field of tye xxx somewhere, can't find one.

if exceptions don't give enough information, [xmlignore] attribute useful tracking down culprit.

throw on @ object trying serialize. remove 1 @ time. when object no longer serializes, know problem lies in property not being serializable. drill class, mark [xmlignore], , repeat.

eventually you'll find it.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -