internal static BlobFlatListSegment DeserializeBlobFlatListSegment(XElement element)
        {
            IReadOnlyList <BlobItemInternal> blobItems = default;
            var array = new List <BlobItemInternal>();

            foreach (var e in element.Elements("Blob"))
            {
                array.Add(BlobItemInternal.DeserializeBlobItemInternal(e));
            }
            blobItems = array;
            return(new BlobFlatListSegment(blobItems));
        }
Beispiel #2
0
        internal static BlobHierarchyListSegment DeserializeBlobHierarchyListSegment(XElement element)
        {
            IReadOnlyList <BlobPrefix>       blobPrefixes = default;
            IReadOnlyList <BlobItemInternal> blobItems    = default;
            var array = new List <BlobPrefix>();

            foreach (var e in element.Elements("BlobPrefix"))
            {
                array.Add(BlobPrefix.DeserializeBlobPrefix(e));
            }
            blobPrefixes = array;
            var array0 = new List <BlobItemInternal>();

            foreach (var e in element.Elements("Blob"))
            {
                array0.Add(BlobItemInternal.DeserializeBlobItemInternal(e));
            }
            blobItems = array0;
            return(new BlobHierarchyListSegment(blobPrefixes, blobItems));
        }