aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Core/Preprocess/IfDefEventHandler.cs
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2017-12-19 12:25:40 -0800
committerRob Mensching <rob@firegiant.com>2017-12-19 12:25:40 -0800
commit155a6e96346e0cb3d9ab6f5372fa29b46ebaee89 (patch)
tree59d1f151bfde8068b6014b05b5c8cfea3402c974 /src/WixToolset.Core/Preprocess/IfDefEventHandler.cs
parent6f1665ed759b31bd095f186f9239232c653597cd (diff)
downloadwix-155a6e96346e0cb3d9ab6f5372fa29b46ebaee89.tar.gz
wix-155a6e96346e0cb3d9ab6f5372fa29b46ebaee89.tar.bz2
wix-155a6e96346e0cb3d9ab6f5372fa29b46ebaee89.zip
Integrate simplified message handling
Diffstat (limited to 'src/WixToolset.Core/Preprocess/IfDefEventHandler.cs')
-rw-r--r--src/WixToolset.Core/Preprocess/IfDefEventHandler.cs28
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
3namespace 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}