• 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/Attributes/CadSystemVariableAttribute.cs
1
using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
using System.Text;
5

6
namespace ACadSharp.Attributes
7
{
8
        [System.AttributeUsage(AttributeTargets.Property, Inherited = false, AllowMultiple = false)]
9
        public sealed class CadSystemVariableAttribute : Attribute, ICodeValueAttribute
10
        {
11
                /// <summary>
12
                /// System variable name
13
                /// </summary>
14
                public string Name { get; }
×
15

16
                /// <inheritdoc/>
17
                public DxfCode[] ValueCodes { get; }
×
18

19
                /// <inheritdoc/>
20
                public DxfReferenceType ReferenceType { get; }
×
21

22
                /// <summary>
23
                /// 
24
                /// </summary>
25
                public bool IsName { get; } = false;
×
26

27
                public CadSystemVariableAttribute(string variable, bool isName, params int[] codes)
×
28
                {
×
29
                        this.Name = variable;
×
30
                        this.IsName = isName;
×
31
                        this.ValueCodes = codes.Select(c => (DxfCode)c).ToArray();
×
32
                }
×
33

34
                public CadSystemVariableAttribute(string variable, params int[] codes)
×
35
                {
×
36
                        this.Name = variable;
×
37
                        this.ValueCodes = codes.Select(c => (DxfCode)c).ToArray();
×
38
                }
×
39

40
                public CadSystemVariableAttribute(string variable, params DxfCode[] codes)
×
41
                {
×
42
                        this.Name = variable;
×
43
                        this.ValueCodes = codes;
×
44
                }
×
45

46
                public CadSystemVariableAttribute(DxfReferenceType referenceType, string variable, params int[] codes)
×
47
                {
×
48
                        this.ReferenceType = referenceType;
×
49
                        this.Name = variable;
×
50
                        this.ValueCodes = codes.Select(c => (DxfCode)c).ToArray();
×
51
                }
×
52
        }
53
}
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