private bool ReadNumberCharIntoBuffer()

in src/Elastic.Apm/Libraries/Newtonsoft.Json/JsonTextReader.cs [1279:1320]


		private bool ReadNumberCharIntoBuffer(char currentChar, int charPos)
		{
			switch (currentChar)
			{
				case '-':
				case '+':
				case 'a':
				case 'A':
				case 'b':
				case 'B':
				case 'c':
				case 'C':
				case 'd':
				case 'D':
				case 'e':
				case 'E':
				case 'f':
				case 'F':
				case 'x':
				case 'X':
				case '.':
				case '0':
				case '1':
				case '2':
				case '3':
				case '4':
				case '5':
				case '6':
				case '7':
				case '8':
				case '9':
					return false;
				default:
					CharPos = charPos;

					if (char.IsWhiteSpace(currentChar) || currentChar == ',' || currentChar == '}' || currentChar == ']' || currentChar == ')'
						|| currentChar == '/') return true;

					throw JsonReaderException.Create(this,
						"Unexpected character encountered while parsing number: {0}.".FormatWith(CultureInfo.InvariantCulture, currentChar));
			}
		}