Which attribute tag is placed about a class to tell you it can be serialized?
[Serializable()]
Which is a correct form of an XML element.
<Movie> Jaws
<Movie>Jaws<Movie>
<Movie>"Jaws"</Movie>
<Movie>Jaws</Movie>
<Movie>Jaws</Movie>
What is Serialization?
-Sorting Objects by a Serial or specific number
-A library that allows you to use data types such as lists, arrays and dictionaries
-The process of dynamically creating an instance of a type
-Translating objects so they can be represented in a web text or binary form
-Translating objects so they can be represented in a web text or binary form
Which method of BinaryFormatter is used to serialize an object?
.Serialize()
What namespace do you need for XML serialization?
System.Xml.Serialization
Which is not a type of Serialization?
a:Binary
b:XML
c: .NET
d:SOAP
c: .NET
Name a bad thing about Binary Serialization
It is not human readable.
How do you make the field "name" an XML attribute during serialization?
[XmlAttribute]
string name;
Name 2 main functions of serialization.
Storing representations of objects in a data file or database.
Transmitting objects over a network
What namespace needs to be included for a binary serialization?
System.Runtime.Serialization.Formatters.Binary;
What are the advantages of XML serialization?
Human Readable
Flexibility when serializing
What is a formatter in terms of Serialization?
Shapes the final presentation of your object, can either be an XML or binary formatter.