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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started