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

DomCR / ACadSharp / 30620456288

31 Jul 2026 09:34AM UTC coverage: 76.801% (+1.0%) from 75.789%
30620456288

Pull #1151

github

web-flow
Merge 0ffbbdb89 into 25e85fe17
Pull Request #1151: Dynamic parameters

9806 of 13766 branches covered (71.23%)

Branch coverage included in aggregate %.

2995 of 3452 new or added lines in 70 files covered. (86.76%)

74 existing lines in 12 files now uncovered.

34910 of 44457 relevant lines covered (78.53%)

142256.06 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
                {
34✔
24
                        return _defaultEntry;
34✔
25
                }
34✔
26

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

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

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

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

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

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

52
        private CadObject _defaultEntry;
53

54
        public CadDictionaryWithDefault() : base()
381✔
55
        {
381✔
56
        }
381✔
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 TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc