Joe,
No, without custom serialization (implementation of the ISerializable
interface, as well as the custom serialization constructor), you can't do
it.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Joe" <jb*******@noemail.noemailwrote in message
news:OO**************@TK2MSFTNGP04.phx.gbl...
>I have a member of my class which I only want to serialize in a flag is
true. So in a way it would be ideal if I could do something like this:
if (flag == true)
NonSerializableAttrbiute(mymember);
Is there a simple way to do this?
Thanks,
Joe