Question: C#. Querying an Array of Invoice Objects. Create an Invoice class which includes four properties a PartNumber ( type int), a PartDescription ( type string),
C#.
Querying an Array of Invoice Objects. Create an Invoice class which includes four properties a PartNumber ( type int), a PartDescription ( type string), a Quantity of item being purchased ( type int) and a Price( type decimal). Perform the following queries on the array of Invoice objects and display the results: a) Use LINQ to sort the Invoice objects by PartDescription b) Use LINQ to sort the Invoice objects by Price c) Use LINQ to select the PartDecription and Quantity and sort the results by Quantity. Use the following sample data for Invoice class objects: 
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
