void IList.Remove(object value)
        {
            if (value == null)
            {
                throw new ArgumentNullException("value");
            }

            NonGenericList.Remove(value);
        }
示例#2
0
 public bool Remove(T item)
 {
     if (ProxyRemove != null)
     {
         return(ProxyRemove(item));
     }
     else if (GenericList != null)
     {
         return(GenericList.Remove(item));
     }
     else if (NonGenericList != null)
     {
         NonGenericList.Remove(item);
         return(true);
     }
     else
     {
         throw new NotImplementedException();
     }
 }