mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-09-22 12:09:50 +08:00
change the project name to something silly
This commit is contained in:
29
src/UglyToad.PdfPig/Tokenization/Tokens/ArrayToken.cs
Normal file
29
src/UglyToad.PdfPig/Tokenization/Tokens/ArrayToken.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
namespace UglyToad.PdfPig.Tokenization.Tokens
|
||||
{
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
internal class ArrayToken : IDataToken<IReadOnlyList<IToken>>
|
||||
{
|
||||
public IReadOnlyList<IToken> Data { get; }
|
||||
|
||||
public ArrayToken(IReadOnlyList<IToken> data)
|
||||
{
|
||||
Data = data;
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
var builder = new StringBuilder("[ ");
|
||||
|
||||
foreach (var token in Data)
|
||||
{
|
||||
builder.Append(token).Append(' ');
|
||||
}
|
||||
|
||||
builder.Append(']');
|
||||
|
||||
return builder.ToString();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user