diff options
Diffstat (limited to 'src/WixToolset.Core/Preprocess/IfDefEventHandler.cs')
| -rw-r--r-- | src/WixToolset.Core/Preprocess/IfDefEventHandler.cs | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/WixToolset.Core/Preprocess/IfDefEventHandler.cs b/src/WixToolset.Core/Preprocess/IfDefEventHandler.cs new file mode 100644 index 00000000..ff181d61 --- /dev/null +++ b/src/WixToolset.Core/Preprocess/IfDefEventHandler.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.Core.Preprocess | ||
| 4 | { | ||
| 5 | using System; | ||
| 6 | using WixToolset.Data; | ||
| 7 | |||
| 8 | public delegate void IfDefEventHandler(object sender, IfDefEventArgs e); | ||
| 9 | |||
| 10 | public class IfDefEventArgs : EventArgs | ||
| 11 | { | ||
| 12 | public IfDefEventArgs(SourceLineNumber sourceLineNumbers, bool isIfDef, bool isDefined, string variableName) | ||
| 13 | { | ||
| 14 | this.SourceLineNumbers = sourceLineNumbers; | ||
| 15 | this.IsIfDef = isIfDef; | ||
| 16 | this.IsDefined = isDefined; | ||
| 17 | this.VariableName = variableName; | ||
| 18 | } | ||
| 19 | |||
| 20 | public SourceLineNumber SourceLineNumbers { get; } | ||
| 21 | |||
| 22 | public bool IsDefined { get; } | ||
| 23 | |||
| 24 | public bool IsIfDef { get; } | ||
| 25 | |||
| 26 | public string VariableName { get; } | ||
| 27 | } | ||
| 28 | } | ||
