public static object MoveNext(IEnumerator enumerator)
{
if (enumerator == null)
throw new ApplicationException(StringResources.CantUnpackNull);
if (!enumerator.MoveNext())
throw new ApplicationException(StringResources.UnpackListOfWrongSize);
return enumerator.Current;
}