c# - Sort student array according to average marks -


i have created student class array in c#

var student = new student[5]; 

having variables sid,name, avgmrks; want sort array according average marks of students.

i assuming when having variables, mean student object has properties: sid, name, avgmrks. can do:

student.orderby (x=>x.avgmrks); 

Comments

Popular posts from this blog

How to check data type in C++? -

javascript - Is getTimezoneOffset() stable during daylight saving transition? -

sql server - SQL Query returns one result, does not return 0 or NULL result -