单项选择题
You are creating a class that performs complex financial calculations. The class contains a method named GetCurrentRate that retrieves the current interest rate and a variable named currRate that stores the current interest rate.You write serialized representations of the class.You need to write a code segment that updates the currRate variable with the current interest rate when an instance of the class is deserialized.
Which code segment should you use?()
A.A
B.B
C.C
D.D
相关考题
-
单项选择题
为应用程序开发人员上班 Certkiller.com,Certkiller.com 使用 Visual Studio.NET 2005 作为其应用程序开发平台。 您正在开发.NET Framework 2.0 图形分析中的应用。 您将要保存图形对象从应用程序就是集合的 x 和 y 点,每个由使用单精度浮点数。 您需要保留的磁盘空间使用量减至最少保存对象。 你应该做什么?()
A.使用TextWriter类。
B.使用StreamWriter类。
C.使用StringWriter类。
D.使用BinaryWriter类。 -
单项选择题
为应用程序开发人员上班 Certkiller.com,Certkiller.com 使用 Visual Studio.NET 2005 作为其应用程序开发平台。 您正在开发.NET Framework 2.0 银行业函数检索的注销的支票图像,并将它们显示在 Windows 窗体应用程序,繁忙的工作中。目前,您可以从 Microsoft SQL server 作为一系列字节读入图像的一种方法来访问。 您需要选择一个类,使您得以到 Windows 窗体应用程序从 SQL 服务器传输图像,虽然您的解决方案可以减少需要的临时缓冲区和文件 。 你应该做什么?()
A.使用MemoryStream类。
B.使用NetworkStream类。
C.使用FileStream类。
D.使用BufferedStream类。 -
单项选择题
为应用程序开发人员上班 Certkiller.com,Certkiller.com 使用 Visual Studio.NET 2005 作为其应用程序开发平台。 您正在开发。NET Framework 2.0 文字处理应用程序。您可以访问一个名为 ckArray,其中包含您的数据的字节数组。 你忙编写代码,用于数组的内容写入磁盘文件。 如果您完成写操作您还以确保写入操作已成功完成在控制台上显示流的内容。 如下所示,从流读取和写入的代码段和行号,仅供参考: 您可以添加相应的代码行 05 正确打印流的内容。 您应添加哪些部分?()
A.fStream.Seek (0,SeekOrigin.End)
B.fStream.Position = fStream.Length
C.fStream.Seek (0,SeekOrigin.Current)
D.fStream.Seek (0,SeekOrigin.Begin)
