Hi folks,
I have a simple POCO class that contains the student's scores.
eg.
Math - 83%
Engrish - 82%
Chemistry - 81%
Drama - 100%
etc..
Is there a way (using linq?) that i could figure out the top 3 properties ordered by score? I'm assuming the final object will be an IList of an anonymous type, which will have two fields.
- Name (the name of the property)
- Score (the decimal value).
The number of proprties in the object ARE finite though :)
Any suggestions?
As an alternative answer, could this be done in a database instead?
cheers :)