Пример #1
0
 public void AssignTo(SwfList <T> list)
 {
     if (list._data.Length < _size)
     {
         var new_data = new T[_size * 2];
         Array.Copy(_data, new_data, _size);
         list._data = new_data;
         list._size = _size;
     }
     else
     {
         if (_size < list._size)
         {
             Array.Clear(list._data, _size, list._size - _size);
         }
         if (_size > 0)
         {
             Array.Copy(_data, list._data, _size);
         }
         list._size = _size;
     }
 }
Пример #2
0
 public void AssignTo(SwfList <T> list)
 {
     _list.AssignTo(list);
 }
Пример #3
0
 public SwfAssocList()
 {
     _list = new SwfList <T>();
     _dict = new Dictionary <T, int>();
     _comp = EqualityComparer <T> .Default;
 }