Re: Conditionally render during serialization -
04-09-2004
, 03:28 AM
Hello, Noah!
You wrote on Wed, 7 Apr 2004 15:25:16 -0500:
NS> I have a class like the following
NS> public class person
NS> public FirstName as string
NS> public LastName as string
NS> end class
NS> I am serializing the class. I want to conditionally not render a
NS> property if it is blank. For example if LastName = "", I don't want to
NS> display it.
It may be done by implementing IXmlSerializable interface.
[Sorry, skipped]
With best regards, Alex Shirshov. |