aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Data/Identifier.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/WixToolset.Data/Identifier.cs')
-rw-r--r--src/WixToolset.Data/Identifier.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/WixToolset.Data/Identifier.cs b/src/WixToolset.Data/Identifier.cs
index 96acc997..38b12989 100644
--- a/src/WixToolset.Data/Identifier.cs
+++ b/src/WixToolset.Data/Identifier.cs
@@ -2,9 +2,13 @@
2 2
3namespace WixToolset.Data 3namespace WixToolset.Data
4{ 4{
5 using System;
6 using System.Diagnostics;
7
5 /// <summary> 8 /// <summary>
6 /// Class to define the identifier and access for a row. 9 /// Class to define the identifier and access for a row.
7 /// </summary> 10 /// </summary>
11 [DebuggerDisplay("{Access} {Id,nq}")]
8 public class Identifier 12 public class Identifier
9 { 13 {
10 public static Identifier Invalid = new Identifier(null, AccessModifier.Private); 14 public static Identifier Invalid = new Identifier(null, AccessModifier.Private);
@@ -15,6 +19,12 @@ namespace WixToolset.Data
15 this.Access = access; 19 this.Access = access;
16 } 20 }
17 21
22 public Identifier(int id, AccessModifier access)
23 {
24 this.Id = id.ToString();
25 this.Access = access;
26 }
27
18 /// <summary> 28 /// <summary>
19 /// Access modifier for a row. 29 /// Access modifier for a row.
20 /// </summary> 30 /// </summary>