• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

DomCR / ACadSharp.Pdf / 14305897173

07 Apr 2025 09:38AM UTC coverage: 2.035% (-73.9%) from 75.959%
14305897173

push

github

DomCR
version 0.1.0-beta

125 of 8279 branches covered (1.51%)

Branch coverage included in aggregate %.

648 of 29704 relevant lines covered (2.18%)

4.64 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/ACadSharp.Pdf/Core/PdfArray.cs
1
using System.Collections.Generic;
2
using System.Linq;
3
using System.Text;
4

5
#if NETFRAMEWORK
6
using CSUtilities.Extensions;
7
#endif
8

9
namespace ACadSharp.Pdf.Core
10
{
11
        public class PdfArray<T> : PdfItem
12
                where T : PdfItem
13
        {
14
                public PdfReference<int> CountReference { get; }
×
15

16
                public List<T> Items { get; } = new();
×
17

18
                public PdfArray()
×
19
                {
×
20
                        this.CountReference = new(() => this.Items.Count);
×
21
                }
×
22

23
                public void Add(T item)
24
                {
×
25
                        this.Items.Add(item);
×
26
                }
×
27

28
                public override string GetPdfForm(PdfConfiguration configuration)
29
                {
×
30
                        StringBuilder sb = new StringBuilder();
×
31

32
                        sb.Append("[");
×
33

34
                        sb.AppendJoin(" ", this.Items.Select(i => i.GetPdfForm(configuration)));
×
35

36
                        sb.Append("]");
×
37

38
                        return sb.ToString();
×
39
                }
×
40
        }
41
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc