Display list value using LINQ

Sourav.Kayal
Posted by Sourav.Kayal under C# category on | Points: 40 | Views : 719
using System;
using System.Linq;
using System.Text;
using System.Collections;
using System.Data;
using System.Xml;
using System.IO;
using System.Diagnostics;
using System.Collections.Generic;
namespace BlogProject
{
class Program
{
static void Main(string[] args)
{
List<String> Name = new List<string>();
Name.Add("Sourav");
Name.Add("scott");
Name.Add("tiger");
Name.Add("sa");
var Value = from name in Name select name;
foreach (var v in Value)
{
Console.WriteLine(v);
}
Console.ReadLine();
}
}
}

Comments or Responses

Login to post response