单项选择题
You have recently completely creating a new application for Certkiller .com.
This new application has to load an instance of the Inventory class from a large file named Inventory.dat.
You need to ensure that the application executes the loading process in as little time as possible.
What should you do?()
A.
B.
C.
D.
点击查看答案
相关考题
-
单项选择题
you have recently written the code shown below: Hashtable emailAddresses = new Hashtable (); emailAddresses.Add ("Mia", "mia@ Certkiller .com"); emailAddresses.Add ("Andy", "andy@ Certkiller .com"); emailAddresses.Add ("Kara", "kara@ Certkiller .com"); You need to ensure that these e-mail addresses are stored in the Email.dat file so that you can load them again when the user restarts the application. What should you do?()
A.
B.
C.
D. -
单项选择题
You have recently written the code shown below: Hashtable emailAddresses = new Hashtable (); emailAddresses.Add ("Mia", "mia@ Certkiller .com"); emailAddresses.Add ("Andy", "andy@ Certkiller .com"); emailAddresses.Add ("Kara", "kara@ Certkiller .com"); FileStream stream = new FileStream ("Email.dat", FileMode.Create); BinaryFormatter formatter = new BinaryFormatter (); formatter.Serialize (stream, emailAddresses); You need to ensure that you are able to load the emailAddresses object from the Email.dat file into your application. What should you do?()
A.
B.
C.
D. -
单项选择题
您最近创建了一个名为车辆的可序列化的类。 类如下所示: [Serializable] public class Vehicle { public string VIN; public string Make; private string Model; private int Year; private string Owner; } Certkiller.com 不想要序列化一个车辆对象,出于安全原因时永久保存的所有者字段。 您需要确保实现这一目标。 你应该做什么?()
A.适用于所有者字段的 OptionalField 属性。
B.应用,所以所有者字段的属性。
C.已实现 IFormatter 接口的自定义序列化的车辆类别。
D.做什么,因为在使用二进制序列化时,私营领域是永远不会保留。
