-1
我有這樣的文件列表:轉換列表的IEnumerable類型
List<ProjectFile> projectFilelist =null;
projectFilelist = projectFileBM.GetAllProjectFileByProjectIdAndPartNum(projectID, string.Empty);
在這個代碼寫的返回類型爲IEnumerable的 現在我想retunr projectFileList的這個名單。
我該如何轉換並返回?
看看這個SO以前發佈在[轉換ListType到IEnumerable](http://stackoverflow.com/questions/15071828/convert-list-type-to-ienumerable-interface-type) – MethodMan 2014-11-04 06:23:34
你只會讀這個數據,或者你會添加/刪除/更新其元素? – 2014-11-04 07:43:43