.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
Post a Comment