You need to serialize an object of type List<int> in a binary format. The object is named data. Which code segment should you use?()
A. B. C. D.
单项选择题You need to write a code segment that transfers the contents of a byte array named dataToSend by using a NetworkStream object named netStream. You need to use a cache of size 8,192 bytes. Which code segment should you use?()
单项选择题You are writing a method that accepts a string parameter named message. Your method must break the message parameter into individual lines of text and pass each line to a second method named Process. Which code segment should you use?()
单项选择题You need to write a code segment that transfers the first 80 bytes from a stream variable named stream1 into a new byte array named byteArray. You also need to ensure that the code segment assigns the number of bytes that are transferred to an integer variable named bytesTransferred. Which code segment should you use?()
A.bytesTransferred=stream1.Read(byteArray,0,80); B. C. D.
单项选择题You need to read the entire contents of a file named Message.txt into a single string variable.Which code segment should you use?()
单项选择题You are writing an application that uses isolated storage to store user preferences. The application uses multiple assemblies. Multiple users will use this application on the same computer. You need to create a directory named Preferences in the isolated storage area that is scoped to the current Microsoft Windows identity and assembly. Which code segment should you use?()