Пример #1
0
 private static void VerifyValueType(object value)
 {
     if (!ObjectArray <T> .IsCompatibleObject(value))
     {
         throw new Exception("ThrowHelper.ThrowWrongValueTypeArgumentException(value, typeof(T)");
     }
 }
Пример #2
0
 void IList.Remove(object item)
 {
     if (ObjectArray <T> .IsCompatibleObject(item))
     {
         this.Remove((T)item);
     }
 }
Пример #3
0
 int IList.IndexOf(object item)
 {
     if (ObjectArray <T> .IsCompatibleObject(item))
     {
         return(this.IndexOf((T)item));
     }
     return(-1);
 }
Пример #4
0
 bool IList.Contains(object item)
 {
     return(ObjectArray <T> .IsCompatibleObject(item) && this.Contains((T)item));
 }