本帖最后由 南方 于 2014-2-20 15:25 编辑
[C#] 纯文本查看 复制代码 public class CollectionBase<T> : IList<T>, IList, ICollection<T>, ICollection, IEnumerable<T>, IEnumerable
{
private List<T> _innerList;
public virtual void Remove(object value)
{
int index = this._innerList.IndexOf((T)value);
if (((index >= 0) && this.OnValidate((T)value)) && this.OnRemove(index, (T)value))
{
this._innerList.Remove(value); //这行出错
this.OnRemoveComplete(index, (T)value);
}
}
}
错误 18 与“System.Collections.Generic.List<T>.Remove(T)”最匹配的重载方法具有一些无效参数
|