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
VulpesPosted Feb 28, 2012, 7:37 AM
string desktopPath = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
List
VulpesPosted Feb 28, 2012, 9:02 AM
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.
Sumit KumawatPosted Feb 28, 2012, 8:22 AM
VulpesPosted Feb 28, 2012, 7:52 AM
Sumit KumawatPosted Feb 28, 2012, 7:47 AM
}
Sumit KumawatPosted Feb 28, 2012, 7:20 AM
VulpesPosted Feb 28, 2012, 7:14 AM