?
Solved

Serialization of Collections - Generic and NonGeneric

Posted on 2013-06-11
4
Medium Priority
?
130 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 27

Expert Comment

by:Sammy Ageil
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 Ageil earned 2000 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

Fill in the form and get your FREE NFR key NOW!

Veeam® is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

Question has a verified solution.

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

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
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…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…

719 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