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

DomCR / ACadSharp / 29347285158

14 Jul 2026 03:53PM UTC coverage: 76.459%. First build
29347285158

Pull #1151

github

web-flow
Merge 07c16911c into 663340188
Pull Request #1151: DxfWriter - Dynamic parameters

9316 of 13143 branches covered (70.88%)

Branch coverage included in aggregate %.

644 of 735 new or added lines in 27 files covered. (87.62%)

33209 of 42475 relevant lines covered (78.18%)

154425.33 hits per line

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

46.88
/src/ACadSharp/Objects/CadDictionaryWithDefault.cs
1
using ACadSharp.Attributes;
2

3
namespace ACadSharp.Objects;
4

5
/// <summary>
6
/// Represents a <see cref="CadDictionaryWithDefault"/> object.
7
/// </summary>
8
/// <remarks>
9
/// Object name <see cref="DxfFileToken.ObjectDictionaryWithDefault"/> <br/>
10
/// Dxf class name <see cref="DxfSubclassMarker.DictionaryWithDefault"/>
11
/// </remarks>
12
[DxfName(DxfFileToken.ObjectDictionaryWithDefault)]
13
[DxfSubClass(DxfSubclassMarker.DictionaryWithDefault)]
14
public class CadDictionaryWithDefault : CadDictionary
15
{
16
        /// <summary>
17
        /// Default entry.
18
        /// </summary>
19
        [DxfCodeValue(DxfReferenceType.Handle, 340)]
20
        public CadObject DefaultEntry
21
        {
22
                get
23
                {
24✔
24
                        return _defaultEntry;
24✔
25
                }
24✔
26

27
                set
28
                {
379✔
29
                        if (value == null)
379!
NEW
30
                        {
×
NEW
31
                                this.Document?.AddCadObject(value);
×
NEW
32
                        }
×
33

34
                        if (this._defaultEntry != null)
379!
NEW
35
                        {
×
NEW
36
                                this.Document?.RemoveCadObject(this._defaultEntry);
×
NEW
37
                        }
×
38

39
                        this._defaultEntry = value;
379✔
40
                }
379✔
41
        }
42

43
        /// <inheritdoc/>
44
        public override string ObjectName => DxfFileToken.ObjectDictionaryWithDefault;
1,668✔
45

46
        /// <inheritdoc/>
47
        public override ObjectType ObjectType { get { return ObjectType.UNLISTED; } }
15✔
48

49
        /// <inheritdoc/>
NEW
50
        public override string SubclassMarker => DxfSubclassMarker.DictionaryWithDefault;
×
51

52
        private CadObject _defaultEntry;
53

54
        public CadDictionaryWithDefault() : base()
380✔
55
        {
380✔
56
        }
380✔
57

NEW
58
        public CadDictionaryWithDefault(string name, CadObject defaultEntry) : base(name)
×
NEW
59
        {
×
NEW
60
                this.DefaultEntry = defaultEntry;
×
NEW
61
        }
×
62
}
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