• 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/XData/ExtendedDataRecord.cs
1
namespace ACadSharp.XData
2
{
3
        /// <summary>
4
        /// Defines an <see cref="ExtendedData"/> record.
5
        /// </summary>
6
        public abstract class ExtendedDataRecord
7
        {
8
                /// <summary>
9
                /// Dxf code which defines the value type.
10
                /// </summary>
11
                public DxfCode Code
12
                {
13
                        get { return this._code; }
×
14
                }
15

16
                /// <summary>
17
                /// Raw value as an object.
18
                /// </summary>
19
                public object RawValue { get { return this._value; } }
×
20

21
                private DxfCode _code;
22

23
                protected object _value;
24

25
                protected ExtendedDataRecord(DxfCode code, object value)
×
26
                {
×
27
                        this._code = code;
×
28
                        this._value = value;
×
29
                }
×
30

31
                /// <inheritdoc/>
32
                public override string ToString()
33
                {
×
34
                        return $"{this.Code}:{this._value}";
×
35
                }
×
36
        }
37

38
        /// <summary>
39
        /// Defines a typed <see cref="ExtendedData"/> record.
40
        /// </summary>
41
        /// <typeparam name="T"></typeparam>
42
        public abstract class ExtendedDataRecord<T> : ExtendedDataRecord
43
        {
44
                /// <summary>
45
                /// Value for this record.
46
                /// </summary>
47
                public T Value
48
                {
49
                        get { return (T)this._value; }
×
50
                        set
51
                        {
×
52
                                this._value = value;
×
53
                        }
×
54
                }
55

56
                protected ExtendedDataRecord(DxfCode code, T value) : base(code, value)
×
57
                {
×
58
                }
×
59
        }
60
}
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