-1

当我尝试循环进入集合时出现异常。

//代码

fieldFormatDropDown.DataSource = From FieldFormatLinq In fieldFormatsCollection Where FieldFormatLinq.DataTypeId = dataTypeId And FieldFormatLinq.IsActive = True

//例外:

The method or operation is not implemented

为什么我得到这个?

4

1 回答 1

1

尝试转换为Tolist().

//代码

fieldFormatDropDown.DataSource = (From FieldFormatLinq In fieldFormatsCollection Where FieldFormatLinq.DataTypeId = dataTypeId And FieldFormatLinq.IsActive = True).ToList()
于 2013-06-20T12:24:38.173 回答