• 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/SortEntitiesTable.Sorter.cs
1
using ACadSharp.Attributes;
2
using ACadSharp.Entities;
3

4
namespace ACadSharp.Objects
5
{
6
        public partial class SortEntitiesTable
7
        {
8
                /// <summary>
9
                /// Entity sorter based in their position in the collection.
10
                /// </summary>
11
                public class Sorter
12
                {
13
                        /// <inheritdoc/>
14
                        [DxfCodeValue(5)]
15
                        public ulong Handle
16
                        {
17
                                get
18
                                {
×
19
                                        if (this._handle.HasValue)
×
20
                                        {
×
21
                                                return this._handle.Value;
×
22
                                        }
23
                                        else
24
                                        {
×
25
                                                return this.Entity.Handle;
×
26
                                        }
27
                                }
×
28
                                internal set { this._handle = value; }
×
29
                        }
30

31
                        /// <summary>
32
                        /// Soft-pointer ID/handle to an entity
33
                        /// </summary>
34
                        [DxfCodeValue(331)]
35
                        public Entity Entity { get; set; }
×
36

37
                        private ulong? _handle;
38

39
                        /// <summary>
40
                        /// Sorter constructor with the entity and handle.
41
                        /// </summary>
42
                        /// <param name="entity">Enity in the block to be sorted.</param>
43
                        /// <param name="handle">Sorter handle, will use the entity handle if null.</param>
44
                        public Sorter(Entity entity, ulong? handle = null)
×
45
                        {
×
46
                                this.Entity = entity;
×
47
                                this._handle = handle;
×
48
                        }
×
49
                }
50
        }
51
}
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