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

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

python - pip wont install .WHL files -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -