示例#1
0
 private static void VerifyValueType(object value)
 {
     if (!GDAList <T> .IsCompatibleObject(value))
     {
         throw new ArgumentException();
     }
 }
示例#2
0
 void IList.Remove(object item)
 {
     if (GDAList <T> .IsCompatibleObject(item))
     {
         this.Remove((T)item);
     }
 }
示例#3
0
 int IList.IndexOf(object item)
 {
     if (GDAList <T> .IsCompatibleObject(item))
     {
         return(this.IndexOf((T)item));
     }
     return(-1);
 }
示例#4
0
 bool IList.Contains(object item)
 {
     if (GDAList <T> .IsCompatibleObject(item))
     {
         return(this.Contains((T)item));
     }
     return(false);
 }