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

                    DstObject   = creator.Creator();
                    _enumerator = array.GetEnumerator();
                    Element     = creator.Element;
                }