Imports System.Collections.Generic
Dim studentList = New List(Of Student) From {
New Student() With {.StudentID = 1, .StudentName = "John", .Age = 13 },
New Student() With {.StudentID = 2, .StudentName = "Moin", .Age = 21 },
New Student() With {.StudentID = 3, .StudentName = "Bill", .Age = 18 },
New Student() With {.StudentID = 4, .StudentName = "Ram", .Age = 20 },
New Student() With {.StudentID = 5, .StudentName = "Ron", .Age = 15 }
Dim avgAge = Aggregate st In studentList Into Average(st.Age)
Console.WriteLine("Average Age of Student: {0}", avgAge)
Private _studentID As integer
Private _studentName As string
Private _standardID As integer
Property StudentID() As integer
Set(ByVal Value As integer)
Property StudentName() As string
Set(ByVal Value As string)
Property Age() As integer
Set(ByVal Value As integer)