HOW TO CONVERT LIST TO IENUMERABLE TYPE

Chintoo Semi

Total Post:135

Points:947
Posted by  Chintoo Semi
C# 
 865  View(s)
Ratings:
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?

  1. jayprakash sharma

    Post:117

    Points:821
    Re: How to Convert list to IEnumerable type

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

    Try the above

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!