diff options
| author | Rob Mensching <rob@firegiant.com> | 2017-10-18 15:10:45 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2017-10-18 15:10:45 -0700 |
| commit | d0d48599caf5b5f018b9fdd4ea8f6064d76d2e8b (patch) | |
| tree | 597f686b78f9b2539a3b8df9b8216897571806c9 /src/WixToolset.Data/Identifier.cs | |
| parent | cc997ec641d4634d2f3c6086a481fc8295e34b46 (diff) | |
| download | wix-d0d48599caf5b5f018b9fdd4ea8f6064d76d2e8b.tar.gz wix-d0d48599caf5b5f018b9fdd4ea8f6064d76d2e8b.tar.bz2 wix-d0d48599caf5b5f018b9fdd4ea8f6064d76d2e8b.zip | |
Incorporate refactoring of WixToolset.Core assemblies
Diffstat (limited to 'src/WixToolset.Data/Identifier.cs')
| -rw-r--r-- | src/WixToolset.Data/Identifier.cs | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/WixToolset.Data/Identifier.cs b/src/WixToolset.Data/Identifier.cs new file mode 100644 index 00000000..96acc997 --- /dev/null +++ b/src/WixToolset.Data/Identifier.cs | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
| 2 | |||
| 3 | namespace WixToolset.Data | ||
| 4 | { | ||
| 5 | /// <summary> | ||
| 6 | /// Class to define the identifier and access for a row. | ||
| 7 | /// </summary> | ||
| 8 | public class Identifier | ||
| 9 | { | ||
| 10 | public static Identifier Invalid = new Identifier(null, AccessModifier.Private); | ||
| 11 | |||
| 12 | public Identifier(string id, AccessModifier access) | ||
| 13 | { | ||
| 14 | this.Id = id; | ||
| 15 | this.Access = access; | ||
| 16 | } | ||
| 17 | |||
| 18 | /// <summary> | ||
| 19 | /// Access modifier for a row. | ||
| 20 | /// </summary> | ||
| 21 | public AccessModifier Access { get; } | ||
| 22 | |||
| 23 | /// <summary> | ||
| 24 | /// Identifier for the row. | ||
| 25 | /// </summary> | ||
| 26 | public string Id { get; } | ||
| 27 | } | ||
| 28 | } | ||
