Solved

Serialization of Collections - Generic and NonGeneric

Posted on 2013-06-11
4
113 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
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…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

705 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now