diff options
Diffstat (limited to '')
-rw-r--r-- | src/WixToolset.Data/Tuples/MIMETuple.cs | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/src/WixToolset.Data/Tuples/MIMETuple.cs b/src/WixToolset.Data/Tuples/MIMETuple.cs index 19eff883..f66d05b8 100644 --- a/src/WixToolset.Data/Tuples/MIMETuple.cs +++ b/src/WixToolset.Data/Tuples/MIMETuple.cs | |||
@@ -2,59 +2,59 @@ | |||
2 | 2 | ||
3 | namespace WixToolset.Data | 3 | namespace WixToolset.Data |
4 | { | 4 | { |
5 | using WixToolset.Data.Tuples; | 5 | using WixToolset.Data.Symbols; |
6 | 6 | ||
7 | public static partial class TupleDefinitions | 7 | public static partial class SymbolDefinitions |
8 | { | 8 | { |
9 | public static readonly IntermediateTupleDefinition MIME = new IntermediateTupleDefinition( | 9 | public static readonly IntermediateSymbolDefinition MIME = new IntermediateSymbolDefinition( |
10 | TupleDefinitionType.MIME, | 10 | SymbolDefinitionType.MIME, |
11 | new[] | 11 | new[] |
12 | { | 12 | { |
13 | new IntermediateFieldDefinition(nameof(MIMETupleFields.ContentType), IntermediateFieldType.String), | 13 | new IntermediateFieldDefinition(nameof(MIMESymbolFields.ContentType), IntermediateFieldType.String), |
14 | new IntermediateFieldDefinition(nameof(MIMETupleFields.ExtensionRef), IntermediateFieldType.String), | 14 | new IntermediateFieldDefinition(nameof(MIMESymbolFields.ExtensionRef), IntermediateFieldType.String), |
15 | new IntermediateFieldDefinition(nameof(MIMETupleFields.CLSID), IntermediateFieldType.String), | 15 | new IntermediateFieldDefinition(nameof(MIMESymbolFields.CLSID), IntermediateFieldType.String), |
16 | }, | 16 | }, |
17 | typeof(MIMETuple)); | 17 | typeof(MIMESymbol)); |
18 | } | 18 | } |
19 | } | 19 | } |
20 | 20 | ||
21 | namespace WixToolset.Data.Tuples | 21 | namespace WixToolset.Data.Symbols |
22 | { | 22 | { |
23 | public enum MIMETupleFields | 23 | public enum MIMESymbolFields |
24 | { | 24 | { |
25 | ContentType, | 25 | ContentType, |
26 | ExtensionRef, | 26 | ExtensionRef, |
27 | CLSID, | 27 | CLSID, |
28 | } | 28 | } |
29 | 29 | ||
30 | public class MIMETuple : IntermediateTuple | 30 | public class MIMESymbol : IntermediateSymbol |
31 | { | 31 | { |
32 | public MIMETuple() : base(TupleDefinitions.MIME, null, null) | 32 | public MIMESymbol() : base(SymbolDefinitions.MIME, null, null) |
33 | { | 33 | { |
34 | } | 34 | } |
35 | 35 | ||
36 | public MIMETuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.MIME, sourceLineNumber, id) | 36 | public MIMESymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.MIME, sourceLineNumber, id) |
37 | { | 37 | { |
38 | } | 38 | } |
39 | 39 | ||
40 | public IntermediateField this[MIMETupleFields index] => this.Fields[(int)index]; | 40 | public IntermediateField this[MIMESymbolFields index] => this.Fields[(int)index]; |
41 | 41 | ||
42 | public string ContentType | 42 | public string ContentType |
43 | { | 43 | { |
44 | get => (string)this.Fields[(int)MIMETupleFields.ContentType]; | 44 | get => (string)this.Fields[(int)MIMESymbolFields.ContentType]; |
45 | set => this.Set((int)MIMETupleFields.ContentType, value); | 45 | set => this.Set((int)MIMESymbolFields.ContentType, value); |
46 | } | 46 | } |
47 | 47 | ||
48 | public string ExtensionRef | 48 | public string ExtensionRef |
49 | { | 49 | { |
50 | get => (string)this.Fields[(int)MIMETupleFields.ExtensionRef]; | 50 | get => (string)this.Fields[(int)MIMESymbolFields.ExtensionRef]; |
51 | set => this.Set((int)MIMETupleFields.ExtensionRef, value); | 51 | set => this.Set((int)MIMESymbolFields.ExtensionRef, value); |
52 | } | 52 | } |
53 | 53 | ||
54 | public string CLSID | 54 | public string CLSID |
55 | { | 55 | { |
56 | get => (string)this.Fields[(int)MIMETupleFields.CLSID]; | 56 | get => (string)this.Fields[(int)MIMESymbolFields.CLSID]; |
57 | set => this.Set((int)MIMETupleFields.CLSID, value); | 57 | set => this.Set((int)MIMESymbolFields.CLSID, value); |
58 | } | 58 | } |
59 | } | 59 | } |
60 | } \ No newline at end of file | 60 | } \ No newline at end of file |