/// <summary>
        /// Returns the current Json object casted as an IOfflineEntity element
        /// </summary>
        /// <returns>Typed entry element</returns>
        public override IOfflineEntity GetItem()
        {
            CheckItemType(ReaderItemType.Entry);

            // Get the type name and the list of properties.
            _currentEntryWrapper = new JsonEntryInfoWrapper((XElement)XElement.ReadFrom(_reader));

            _liveEntity = ReflectionUtility.GetObjectForType(_currentEntryWrapper, this._knownTypes);
            return(_liveEntity);
        }
Exemple #2
0
        /// <summary>
        /// Returns the current Json object casted as an IOfflineEntity element
        /// </summary>
        /// <returns>Typed entry element</returns>
        public override IOfflineEntity GetItem()
        {
            CheckItemType(ReaderItemType.Entry);

            // Get the type name and the list of properties.
            XElement elem = (XElement) XNode.ReadFrom(reader);

            currentEntryWrapper = new JsonEntryInfoWrapper(elem);

            liveEntity = ReflectionUtility.GetObjectForType(currentEntryWrapper, this.knownTypes);
            return liveEntity;
        }
Exemple #3
0
        /// <summary>
        /// Returns the current Json object casted as an IOfflineEntity element
        /// </summary>
        /// <returns>Typed entry element</returns>
        public override IOfflineEntity GetItem()
        {
            CheckItemType(ReaderItemType.Entry);

            // Get the type name and the list of properties.
            XElement elem = (XElement)XNode.ReadFrom(reader);

            currentEntryWrapper = new JsonEntryInfoWrapper(elem);

            liveEntity = ReflectionUtility.GetObjectForType(currentEntryWrapper, this.knownTypes);
            return(liveEntity);
        }
        /// <summary>
        /// Returns the current Json object casted as an IOfflineEntity element
        /// </summary>
        /// <returns>Typed entry element</returns>
        public override IOfflineEntity GetItem()
        {
            CheckItemType(ReaderItemType.Entry);
            
            // Get the type name and the list of properties.
            _currentEntryWrapper = new JsonEntryInfoWrapper((XElement)XElement.ReadFrom(_reader));

            _liveEntity = ReflectionUtility.GetObjectForType(_currentEntryWrapper, this._knownTypes);
            return _liveEntity;
        }