using System.Collections;
using System.Collections.Generic;
public static void Main()
Console.WriteLine("Hello World");
IList<Student> studentList = new List<Student>() {
new Student() { StudentID = 1, StudentName = "John", StandardID =1 },
new Student() { StudentID = 2, StudentName = "Moin", StandardID =1 },
new Student() { StudentID = 3, StudentName = "Bill", StandardID =2 },
new Student() { StudentID = 4, StudentName = "Ram" , StandardID =2 },
new Student() { StudentID = 5, StudentName = "Ron" }
IList<Standard> standardList = new List<Standard>() {
new Standard(){ StandardID = 1, StandardName="Standard 1"},
new Standard(){ StandardID = 2, StandardName="Standard 2"},
new Standard(){ StandardID = 3, StandardName="Standard 3"}
var innerJoin = (from s in studentList
on s.StandardID equals st.StandardID
{StudentName = s.StudentName,
StandardName = st.StandardName}).ToList();
public static void Display(List<display> lst)
Console.WriteLine("--------------------------------------------------------");
foreach (display std in lst)
Console.WriteLine(" -- "+std.StandardName+" -- "+std.StudentName.ToString());
public int StudentID { get; set; }
public string StudentName { get; set; }
public int StandardID { get; set; }
public int StandardID { get; set; }
public string StandardName { get; set; }
public string StudentName { get; set; }
public string StandardName { get; set; }