Métodos usados con frecuencia
Métodos usados con frecuencia
Métodos usados con frecuencia
Métodos usados con frecuencia
/// <summary> /// Parses the current JSON token value from the source as a comment, transcoded as a <see cref="string"/>. /// </summary> /// <exception cref="InvalidOperationException"> /// Thrown if trying to get the value of the JSON token that is not a comment. /// <seealso cref="TokenType" /> /// </exception> public string GetComment() { if (TokenType != JsonTokenType.Comment) { throw ThrowHelper.GetInvalidOperationException_ExpectedComment(TokenType); } ReadOnlySpan <byte> span = HasValueSequence ? ValueSequence.ToArray() : ValueSpan; return(JsonReaderHelper.TranscodeHelper(span)); }