From 9787570331b511bab73ac8f4f38a3b8cfa053ca5 Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Wed, 24 Jun 2020 14:05:08 -0700 Subject: The Great Tuple to Symbol Rename (tm) --- src/WixToolset.Data/Tuples/IniFileTuple.cs | 64 +++++++++++++++--------------- 1 file changed, 32 insertions(+), 32 deletions(-) (limited to 'src/WixToolset.Data/Tuples/IniFileTuple.cs') diff --git a/src/WixToolset.Data/Tuples/IniFileTuple.cs b/src/WixToolset.Data/Tuples/IniFileTuple.cs index 6aaa98c6..e23f6039 100644 --- a/src/WixToolset.Data/Tuples/IniFileTuple.cs +++ b/src/WixToolset.Data/Tuples/IniFileTuple.cs @@ -2,29 +2,29 @@ namespace WixToolset.Data { - using WixToolset.Data.Tuples; + using WixToolset.Data.Symbols; - public static partial class TupleDefinitions + public static partial class SymbolDefinitions { - public static readonly IntermediateTupleDefinition IniFile = new IntermediateTupleDefinition( - TupleDefinitionType.IniFile, + public static readonly IntermediateSymbolDefinition IniFile = new IntermediateSymbolDefinition( + SymbolDefinitionType.IniFile, new[] { - new IntermediateFieldDefinition(nameof(IniFileTupleFields.FileName), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IniFileTupleFields.DirProperty), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IniFileTupleFields.Section), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IniFileTupleFields.Key), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IniFileTupleFields.Value), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IniFileTupleFields.Action), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(IniFileTupleFields.ComponentRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IniFileSymbolFields.FileName), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IniFileSymbolFields.DirProperty), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IniFileSymbolFields.Section), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IniFileSymbolFields.Key), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IniFileSymbolFields.Value), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IniFileSymbolFields.Action), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(IniFileSymbolFields.ComponentRef), IntermediateFieldType.String), }, - typeof(IniFileTuple)); + typeof(IniFileSymbol)); } } -namespace WixToolset.Data.Tuples +namespace WixToolset.Data.Symbols { - public enum IniFileTupleFields + public enum IniFileSymbolFields { FileName, DirProperty, @@ -35,58 +35,58 @@ namespace WixToolset.Data.Tuples ComponentRef, } - public class IniFileTuple : IntermediateTuple + public class IniFileSymbol : IntermediateSymbol { - public IniFileTuple() : base(TupleDefinitions.IniFile, null, null) + public IniFileSymbol() : base(SymbolDefinitions.IniFile, null, null) { } - public IniFileTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.IniFile, sourceLineNumber, id) + public IniFileSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.IniFile, sourceLineNumber, id) { } - public IntermediateField this[IniFileTupleFields index] => this.Fields[(int)index]; + public IntermediateField this[IniFileSymbolFields index] => this.Fields[(int)index]; public string FileName { - get => (string)this.Fields[(int)IniFileTupleFields.FileName]; - set => this.Set((int)IniFileTupleFields.FileName, value); + get => (string)this.Fields[(int)IniFileSymbolFields.FileName]; + set => this.Set((int)IniFileSymbolFields.FileName, value); } public string DirProperty { - get => (string)this.Fields[(int)IniFileTupleFields.DirProperty]; - set => this.Set((int)IniFileTupleFields.DirProperty, value); + get => (string)this.Fields[(int)IniFileSymbolFields.DirProperty]; + set => this.Set((int)IniFileSymbolFields.DirProperty, value); } public string Section { - get => (string)this.Fields[(int)IniFileTupleFields.Section]; - set => this.Set((int)IniFileTupleFields.Section, value); + get => (string)this.Fields[(int)IniFileSymbolFields.Section]; + set => this.Set((int)IniFileSymbolFields.Section, value); } public string Key { - get => (string)this.Fields[(int)IniFileTupleFields.Key]; - set => this.Set((int)IniFileTupleFields.Key, value); + get => (string)this.Fields[(int)IniFileSymbolFields.Key]; + set => this.Set((int)IniFileSymbolFields.Key, value); } public string Value { - get => (string)this.Fields[(int)IniFileTupleFields.Value]; - set => this.Set((int)IniFileTupleFields.Value, value); + get => (string)this.Fields[(int)IniFileSymbolFields.Value]; + set => this.Set((int)IniFileSymbolFields.Value, value); } public InifFileActionType Action { - get => (InifFileActionType)this.Fields[(int)IniFileTupleFields.Action]?.AsNumber(); - set => this.Set((int)IniFileTupleFields.Action, (int)value); + get => (InifFileActionType)this.Fields[(int)IniFileSymbolFields.Action]?.AsNumber(); + set => this.Set((int)IniFileSymbolFields.Action, (int)value); } public string ComponentRef { - get => (string)this.Fields[(int)IniFileTupleFields.ComponentRef]; - set => this.Set((int)IniFileTupleFields.ComponentRef, value); + get => (string)this.Fields[(int)IniFileSymbolFields.ComponentRef]; + set => this.Set((int)IniFileSymbolFields.ComponentRef, value); } } } \ No newline at end of file -- cgit v1.2.3-55-g6feb