Question:Certkiller.com has given you the task of serializing an object and writing it to a data file using
binary
serialization.
You need to ensure that you meet these requirements.
What should you do? - (VB.Net) 

A Use the following code:
Dim obj As New Object()
Dim objSream As Stream = File.Open("DataFile.dat", FileMode.Create)
Dim objFormatter As New BinaryFormatter()
objFormatter.Serialize(objStream, obj) 

B Use the following code:
Dim obj As New Object()
Dim objFormatter As New BinaryFormatter()
objFormatter.Serialize(obj) 

C Use the following code:
Dim objSream As Stream = File.Open("DataFile.dat", FileMode.Create)
Dim objFormatter As New BinaryFormatter()
objFormatter.Serialize(objStream) 

D Use the following code:
Dim obj As New Object()
Dim objSream As Stream = File.Open("DataFile.dat", FileMode.Create)
Dim objFormatter As New BinaryFormatter()
objFormatter.Serialize(obj, objStream) 

+ Answer
+ Report
Total Preview: 801

Copyright © 2024. Powered by Intellect Software Ltd