var s1 = (from folder in new DirectoryInfo(@"C:\Users\" + Environment.UserName + Environment.SpecialFolder.Desktop).GetDirectories()
select folder).ToList();
im using this code but not able to retrive data...plz help
im using this code but not able to retrive data...plz help

VulpesRank #55 · 29.2K reputationPosted Feb 28, 2012, 2:37 AM EST
string desktopPath = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
List
VulpesRank #55 · 29.2K reputationPosted Feb 28, 2012, 2:14 AM EST
Sumit KumawatRank #4,008 · 372 reputationPosted Feb 28, 2012, 2:20 AM EST
Sumit KumawatRank #4,008 · 372 reputationPosted Feb 28, 2012, 2:47 AM EST
}
VulpesRank #55 · 29.2K reputationPosted Feb 28, 2012, 2:52 AM EST
Sumit KumawatRank #4,008 · 372 reputationPosted Feb 28, 2012, 3:22 AM EST
VulpesRank #55 · 29.2K reputationPosted Feb 28, 2012, 4:02 AM EST
There would be no point using any other LINQ features because the GetFiles() method is already returning a collection of all the FileInfo objects you need.