Пример #1
0
 public void CopyTo(T[] array, int arrayIndex)
 {
     if (ProxyCopyTo != null)
     {
         ProxyCopyTo(array, arrayIndex);
     }
     else if (GenericList != null)
     {
         GenericList.CopyTo(array, arrayIndex);
     }
     else if (NonGenericList != null)
     {
         NonGenericList.CopyTo(array, arrayIndex);
     }
     else
     {
         throw new NotImplementedException();
     }
 }
Пример #2
0
 void ICollection.CopyTo(Array array, int index) => NonGenericList.CopyTo(array, index);