Home > DeveloperSection > Forums > How to Convert list to IEnumerable type
Chintoo Semi

Total Post:135

Posted on    November-03-2014 10:56 PM

 ASP.Net C# 

 1 Reply(s)
 601  View(s)
Rate this:
I have a list of files like this:

List<ProjectFile> projectFilelist = null;

            projectFilelist = projectFileBM.GetAllProjectFileByProjectIdAndPartNum(projectID, string.Empty);

The return type in which this code has written is IEnumerable Now I wanted to retunr this list of projectFileList.

How can I convert this and return?

jayprakash sharma
jayprakash sharma

Total Post:117

Posted on    November-04-2014 1:24 AM

projectFileBM.GetAllProjectFileByProjectIdAndPartNum(projectID, string.Empty).ToList()

Try the above

Don't want to miss updates? Please click the below button!

Follow MindStick