namespace UglyToad.PdfPig.Tokens { /// /// A comment from a PDF document. Any occurrence of the percent sign character (%) outside a string or stream /// introduces a comment. The comment consists of all characters between the percent sign and the end of the line. /// public class CommentToken : IDataToken { /// /// The text of the comment (excluding the initial percent '%' sign). /// public string Data { get; } /// /// Create a new . /// /// The text of the comment. public CommentToken(string data) { Data = data ?? string.Empty; } /// public override string ToString() { return Data; } /// public bool Equals(IToken obj) { if (!(obj is CommentToken other)) { return false; } return other.Data == Data; } } }