Question 221
You are creating an application that manages information about your company's products. The application includes a class named Product and a method named Save.
The Save() method must be strongly typed. It must allow only types inherited from the Product class that use a constructor that accepts no parameters.
You need to implement the Save() method. Which code segment should you use?
Question 222
You are developing an application that will include a method named GetData The GetData() method will retrieve a line of data from a web service by using a System.lO.StreamReader object.
You have the following requirements:
* The GetData() method must populate the urIText text box with a string value that contains the first line of the response from the web service.
* The application must remain responsive while the GetData() method runs.
You need to implement the GetData() method.
You have the following code.
Question 223
You have the following code.
You need to return all of the products and their associated categories.
How should you complete the code? To answer, drag the appropriate code elements to the correct targets in the answer area. Each code element may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
Question 224
You are developing an application that will process orders. The debug and release versions of the
application will display different logo images.
You need to ensure that the correct image path is set based on the build configuration.
Which code segment should you use?
Question 225
You create an assembly named Assembly1.dll.
You need to ensure that Assembly1.dll can be deployed to the global assembly cache (GAC).
Which commands should you run? (To answer, drag the appropriate programs to the correct locations. Each program may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.)




