private ODataFeed ReadFeedCore(bool lazy) { this.ExpectState(ODataReaderState.FeedStart); ODataFeed item = (ODataFeed)this.reader.Item; IEnumerable <ODataEntry> entries = this.LazyReadEntries(); if (lazy) { MaterializerFeed.CreateFeed(item, entries); return(item); } MaterializerFeed.CreateFeed(item, new List <ODataEntry>(entries)); return(item); }
/// <summary> /// Reads the remainder of a feed. /// </summary> /// <param name="lazy">if set to <c>true</c> [lazy].</param> /// <returns>A feed.</returns> private ODataFeed ReadFeedCore(bool lazy) { this.ExpectState(ODataReaderState.FeedStart); ODataFeed result = (ODataFeed)this.reader.Item; IEnumerable <ODataEntry> lazyEntries = this.LazyReadEntries(); if (lazy) { MaterializerFeed.CreateFeed(result, lazyEntries); } else { MaterializerFeed.CreateFeed(result, new List <ODataEntry>(lazyEntries)); } return(result); }