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

DomCR / ACadSharp / 29143042407

11 Jul 2026 06:34AM UTC coverage: 2.912% (-73.0%) from 75.918%
29143042407

push

github

web-flow
Merge pull request #1146 from ilCosmico/acds-read-payload-anchor

Read the AcDs payload area offset from the data segment header

264 of 12999 branches covered (2.03%)

Branch coverage included in aggregate %.

0 of 30 new or added lines in 1 file covered. (0.0%)

31243 existing lines in 465 files now uncovered.

1337 of 41984 relevant lines covered (3.18%)

5.38 hits per line

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

0.0
/src/ACadSharp/Objects/NonGraphicalObject.cs
1
using ACadSharp.Attributes;
2
using System;
3

4
namespace ACadSharp.Objects
5
{
6
        /// <summary>
7
        /// The standard class for a basic CAD non-graphical object.
8
        /// </summary>
9
        [DxfSubClass(null, true)]
10
        public abstract class NonGraphicalObject : CadObject, INamedCadObject
11
        {
12
                public event EventHandler<OnNameChangedArgs> OnNameChanged;
13

14
                /// <inheritdoc/>
15
                /// <remarks>
16
                /// The name of a <see cref="NonGraphicalObject"/> will be used as the name of the entry when the owner is a <see cref="CadDictionary"/>
17
                /// otherwise the name may not be saved if there is no dxf code assigned to the <see cref="CadObject"/>.
18
                /// </remarks>
19
                public virtual string Name
20
                {
UNCOV
21
                        get { return this._name; }
×
22
                        set
UNCOV
23
                        {
×
UNCOV
24
                                OnNameChanged?.Invoke(this, new OnNameChangedArgs(this._name, value));
×
UNCOV
25
                                this._name = value;
×
UNCOV
26
                        }
×
27
                }
28

29
                /// <inheritdoc/>
UNCOV
30
                public override ObjectType ObjectType => ObjectType.UNLISTED;
×
31

UNCOV
32
                private string _name = string.Empty;
×
33

34
                /// <summary>
35
                /// Default constructor.
36
                /// </summary>
UNCOV
37
                public NonGraphicalObject()
×
UNCOV
38
                { }
×
39

40
                /// <summary>
41
                /// Initialize a <see cref="NonGraphicalObject"/> with an specific name.
42
                /// </summary>
43
                /// <param name="name"></param>
UNCOV
44
                public NonGraphicalObject(string name)
×
UNCOV
45
                {
×
UNCOV
46
                        this.Name = name;
×
UNCOV
47
                }
×
48

49
                /// <inheritdoc/>
50
                public override CadObject Clone()
UNCOV
51
                {
×
UNCOV
52
                        NonGraphicalObject clone = (NonGraphicalObject)base.Clone();
×
UNCOV
53
                        clone.OnNameChanged = null;
×
UNCOV
54
                        return clone;
×
UNCOV
55
                }
×
56

57
                /// <inheritdoc/>
58
                public override string ToString()
59
                {
×
60
                        if (string.IsNullOrEmpty(this.Name))
×
61
                        {
×
62
                                return $"{this.ObjectName}:{this.Handle}";
×
63
                        }
64
                        else
65
                        {
×
66
                                return $"{this.ObjectName}:{this.Name}:{this.Handle}";
×
67
                        }
68
                }
×
69
        }
70
}
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

© 2026 Coveralls, Inc