Solved

Serialization of Collections - Generic and NonGeneric

Posted on 2013-06-11
4
122 Views
Last Modified: 2014-03-15
Can you tell me whether Generic and/or Non Collections work with each of the following serializers:
SoapFormatter, BinaryFornmatter and XmlSerializer ?
0
Comment
Question by:metro156
  • 2
  • 2
4 Comments
 
LVL 27

Expert Comment

by:Sammy
ID: 39238993
Don't use SoapFormatter for anything, its been deprecated since 2.0
You can use both BinaryFormatter and XmlSerializer with anything. Having said that, you will have to do more than just out of t he box serialization
Also BinaryFormatter is always faster than XmlSerializer

google/bing and you will find lots of tutorials on how to do these tasks
0
 

Author Comment

by:metro156
ID: 39239018
Why I ask the question is that I am trying to pass an exam that discusses collections with the serializers. So I do need a matrix of the 3 serializers stating whether they are compatible to generic or nongeneric collections. I know it is deprecated but I need to pass a MCTS Exam.
But your help is still appreciated.
0
 
LVL 27

Accepted Solution

by:
Sammy earned 500 total points
ID: 39239043
Never answer with SoapFormatter for an exam, regardless of the other options are (As long as they can serialize and d-serialize)

Also you should consider the DataContractSerializer
0
 

Author Comment

by:metro156
ID: 39250498
I still didn't get an answer.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question