You are developing an application by using C#. The application includes the following code segment. (Line numbers are included for reference only.) The DoWork() method must not throw any exceptions when converting the obj object to the IDataContainer interface or…

You are creating an application that manages information about zoo animals. The application includes a class named Animal and a method named Save. The Save() method must be strongly typed. It must allow only types inherited from the Animal class…

DRAG DROP You are developing an application by using C#. The application includes an array of decimal values named loanAmounts. You are developing a LINQ query to return the values from the array. The query must return decimal values that…

You are developing an application. The application includes a method named ReadFile that reads data from a file. The ReadFile() method must meet the following requirements: • It must not make changes to the data file. • It must allow…

DRAG DROP You are developing a custom collection named LoanCollection for a class named Loan class. You need to ensure that you can process each Loan object in the LoanCollection collection by using a foreach loop. How should you complete…

You are developing an application that uses the Microsoft ADO.NET Entity Framework to retrieve order information from a Microsoft SQL Server database. The application includes the following code. (Line numbers are included for reference only.) The application must meet the…

You are developing an application that includes a class named Order. The application will store a collection of Order objects. The collection must meet the following requirements: • Use strongly typed members. • Process Order objects in first-in-first-out order. •…

You are developing an application. The application calls a method that returns an array of integers named employeeIds. You define an integer variable named employeeIdToRemove and assign a value to it. You declare an array named filteredEmployeeIds. You have the…

You are developing an application that includes the following code segment. (Line numbers are included for reference only.) The GetAnimals() method must meet the following requirements: • Connect to a Microsoft SQL Server database. • Create Animal objects and populate…