我的清单是
public List<BaseHomePage.QueueListItem> QueueDataSource
{
get { return this._queueDataSource; }
set { this._queueDataSource = value; }
}
我想从列表中删除对象,我的代码是
for (int i = 0; i < _queueDataSource.Count; i++)
{
object queue = _queueDataSource[i];
if (objQuery.BranchOutQueue)
{
this._queueDataSource.Remove(queue); //Here I want to getting error
}
}
错误:与 system.collections.Generic.List.Remove(BaseHome.QueueList) 匹配的最佳重载方法有一些无效参数