Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in .NET only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Member List
Calendar
Today's Posts
Home
Forum
Topic
.NET
Serialize a collection containing more than one type
Serialize a collection containing more than one type
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
Russ1984
New Member
Join Date:
Mar 2008
Posts:
1
#1
Serialize a collection containing more than one type
Mar 6 '08, 11:59 AM
Hi,
Does anyone know how to serialize a collection containing more than one type to xml?
nateraaaa
Recognized Expert
Contributor
Join Date:
May 2007
Posts:
664
#2
Mar 6 '08, 02:50 PM
Originally posted by
Russ1984
Hi,
Does anyone know how to serialize a collection containing more than one type to xml?
Have you tried adding the Serializable attribute above your class definition?
Code:
[Serializable] public class Class1 { }
Nathan
Comment
Post
Cancel
Previous
template
Next
Working...
OK
OK
Cancel
👍
👎
☕
Comment