Filter by Tags

C# - How to calculate the average of a given property in the collection of objects.

Votes

0

0 0
This Question is relate to a Discussion :
Problem

Using C# how can we find the average of a given property. For example, if we have a collection with objects of the following class


class Student


{


    public string Name{get;set;}


    public int Marks {get;set;}


}


How can we find the average marks of all the students in the list.

Ravinder Singh
Posted on : Wed, Aug 16, 2017
Views : 170
Comments

Ask Question

If you want to ask question you must LogIn or SignUp
Login SignUp
To Add your Answer Please
LogIn | SignUp

Quick Links

E-Magazines

@

Total Followers
Study Group Created
Study Group Joined
Following Teacher
Following Organization
Blog Articles Added
Questions Asked
Questions Answered
Jobs Posted
Total Members in Group
Questions asked by members
Tasks added in this Group

Please wait..

Ok

Login to Open ESchool OR Create your account    Login   SignUp