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 teenAgerStudents As IList(Of Student) = (From s In studentList _
Where s.Age > 12 And s.Age < 20 _
Console.WriteLine("Teen age Students:")
For Each stud As Student In teenAgerStudents
Console.WriteLine(stud.StudentName)
Private _studentID As integer
Private _studentName As string
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)