Exemplo n.º 1
0
        public override DateTimeOffset?ReadAsDateTimeOffset()
        {
            if (currentSlice == null)
            {
                SetCurrentFromArray();
            }

            if (currentSlice == null)
            {
                return(null);
            }

            var value = currentSlice.ToDateTimeOffset();

            SetToken(JsonToken.Date, value);
            currentSlice = null;
            return(value);
        }