Пример #1
0
 /// <exception cref="System.IO.IOException"/>
 public override bool Next(X val)
 {
     if (iter.HasNext())
     {
         ReflectionUtils.Copy(conf, iter.Next(), val);
         if (null == hold)
         {
             hold = WritableUtils.Clone(val, null);
         }
         else
         {
             ReflectionUtils.Copy(conf, val, hold);
         }
         return(true);
     }
     return(false);
 }
Пример #2
0
 /// <exception cref="System.IO.IOException"/>
 public override void Add(X item)
 {
     data.AddItem(WritableUtils.Clone(item, null));
 }