Link to home
Start Free TrialLog in
Avatar of Michael Lam
Michael Lam

asked on

c# custom serialization

is there a way to use a custom serializer to serialize an object into a comma delimited file, e.g. firstname, middilename, ...
Avatar of Kyle Abrahams, PMP
Kyle Abrahams, PMP
Flag of United States of America image

yes

http://msdn.microsoft.com/en-us/library/ty01x675(v=vs.80).aspx

Just create a class that implements I serializable.  

Then create a function Read() that returns your object using the sample above.
Avatar of Michael Lam
Michael Lam

ASKER

the example you mentioned doesn't go into specifics about how to serialize the object into a flat delimited string.  most of the example i saw always serialize to a binary format, i.e. data.dat.  thanks.
ASKER CERTIFIED SOLUTION
Avatar of Kyle Abrahams, PMP
Kyle Abrahams, PMP
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial