// 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. namespace WixToolset.Data { using WixToolset.Data.Tuples; public static partial class TupleDefinitions { public static readonly IntermediateTupleDefinition WixDeltaPatchFile = new IntermediateTupleDefinition( TupleDefinitionType.WixDeltaPatchFile, new[] { new IntermediateFieldDefinition(nameof(WixDeltaPatchFileTupleFields.File_), IntermediateFieldType.String), new IntermediateFieldDefinition(nameof(WixDeltaPatchFileTupleFields.RetainLengths), IntermediateFieldType.String), new IntermediateFieldDefinition(nameof(WixDeltaPatchFileTupleFields.IgnoreOffsets), IntermediateFieldType.String), new IntermediateFieldDefinition(nameof(WixDeltaPatchFileTupleFields.IgnoreLengths), IntermediateFieldType.String), new IntermediateFieldDefinition(nameof(WixDeltaPatchFileTupleFields.RetainOffsets), IntermediateFieldType.String), new IntermediateFieldDefinition(nameof(WixDeltaPatchFileTupleFields.SymbolPaths), IntermediateFieldType.String), }, typeof(WixDeltaPatchFileTuple)); } } namespace WixToolset.Data.Tuples { public enum WixDeltaPatchFileTupleFields { File_, RetainLengths, IgnoreOffsets, IgnoreLengths, RetainOffsets, SymbolPaths, } public class WixDeltaPatchFileTuple : IntermediateTuple { public WixDeltaPatchFileTuple() : base(TupleDefinitions.WixDeltaPatchFile, null, null) { } public WixDeltaPatchFileTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.WixDeltaPatchFile, sourceLineNumber, id) { } public IntermediateField this[WixDeltaPatchFileTupleFields index] => this.Fields[(int)index]; public string File_ { get => (string)this.Fields[(int)WixDeltaPatchFileTupleFields.File_]?.Value; set => this.Set((int)WixDeltaPatchFileTupleFields.File_, value); } public string RetainLengths { get => (string)this.Fields[(int)WixDeltaPatchFileTupleFields.RetainLengths]?.Value; set => this.Set((int)WixDeltaPatchFileTupleFields.RetainLengths, value); } public string IgnoreOffsets { get => (string)this.Fields[(int)WixDeltaPatchFileTupleFields.IgnoreOffsets]?.Value; set => this.Set((int)WixDeltaPatchFileTupleFields.IgnoreOffsets, value); } public string IgnoreLengths { get => (string)this.Fields[(int)WixDeltaPatchFileTupleFields.IgnoreLengths]?.Value; set => this.Set((int)WixDeltaPatchFileTupleFields.IgnoreLengths, value); } public string RetainOffsets { get => (string)this.Fields[(int)WixDeltaPatchFileTupleFields.RetainOffsets]?.Value; set => this.Set((int)WixDeltaPatchFileTupleFields.RetainOffsets, value); } public string SymbolPaths { get => (string)this.Fields[(int)WixDeltaPatchFileTupleFields.SymbolPaths]?.Value; set => this.Set((int)WixDeltaPatchFileTupleFields.SymbolPaths, value); } } }