public ArrayEnumerator(Type type, JsonArray array) { Element = type.GetElementType(); // ReSharper disable once AssignNullToNotNullAttribute DstObject = Array.CreateInstance(Element, array.Count); _enumerator = array.GetEnumerator(); }
public ListEnumerator(Type type, JsonArray array) { var creator = ReflectiveOperation.GetObjectCreator(type); DstObject = creator.Creator(); _enumerator = array.GetEnumerator(); Element = creator.Element; }