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

DomCR / ACadSharp / 12905761471

22 Jan 2025 10:03AM UTC coverage: 2.0% (-74.0%) from 75.963%
12905761471

push

github

DomCR
version 1.0.6

104 of 7676 branches covered (1.35%)

Branch coverage included in aggregate %.

590 of 27024 relevant lines covered (2.18%)

5.13 hits per line

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

0.0
/src/ACadSharp/Objects/UnknownNonGraphicalObject.cs
1
using ACadSharp.Classes;
2

3
namespace ACadSharp.Objects
4
{
5
        /// <summary>
6
        /// Class that holds the basic information for an unknown <see cref="NonGraphicalObject"/>.
7
        /// </summary>
8
        /// <remarks>
9
        /// Unknown entities may appear in the <see cref="CadDocument"/> if the cad file contains proxies or objects not yet supported by ACadSharp.
10
        /// </remarks>
11
        public class UnknownNonGraphicalObject : NonGraphicalObject
12
        {
13
                /// <inheritdoc/>
14
                public override ObjectType ObjectType => ObjectType.UNDEFINED;
×
15

16
                /// <inheritdoc/>
17
                public override string ObjectName
18
                {
19
                        get
20
                        {
×
21
                                if (this.DxfClass == null)
×
22
                                {
×
23
                                        return "UNKNOWN";
×
24
                                }
25
                                else
26
                                {
×
27
                                        return this.DxfClass.DxfName;
×
28
                                }
29
                        }
×
30
                }
31

32
                /// <inheritdoc/>
33
                public override string SubclassMarker
34
                {
35
                        get
36
                        {
×
37
                                if (this.DxfClass == null)
×
38
                                {
×
39
                                        return DxfSubclassMarker.Entity;
×
40
                                }
41
                                else
42
                                {
×
43
                                        return this.DxfClass.CppClassName;
×
44
                                }
45
                        }
×
46
                }
47

48
                /// <summary>
49
                /// Dxf class linked to this entity.
50
                /// </summary>
51
                public DxfClass DxfClass { get; }
×
52

53
                internal UnknownNonGraphicalObject(DxfClass dxfClass)
×
54
                {
×
55
                        this.DxfClass = dxfClass;
×
56
                }
×
57
        }
58
}
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