public ulong?DeserializeFromPropertyName(ref JsonReader reader, IJsonFormatterResolver formatterResolver)
        {
            if (reader.ReadIsNull())
            {
                return(null);
            }

            var key = reader.ReadStringSegmentRaw();

            return(NumberConverter.ReadUInt64(key.Array, key.Offset, out _));
        }
예제 #2
0
        public ulong ReadUInt64()
        {
            SkipWhiteSpace();

            var v = NumberConverter.ReadUInt64(_bytes, _offset, out var readCount);

            if (readCount == 0)
            {
                throw CreateParsingException("Number Token");
            }

            _offset += readCount;
            return(v);
        }