单项选择题
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?()
A.
B.
C.
D.
点击查看答案
相关考题
-
单项选择题
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?()
A.
B.
C.
D. -
单项选择题
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?()
A.
B.
C.
D.
