aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Mba.Core/IVariables.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/WixToolset.Mba.Core/IVariables.cs27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/WixToolset.Mba.Core/IVariables.cs b/src/WixToolset.Mba.Core/IVariables.cs
new file mode 100644
index 00000000..15da4c84
--- /dev/null
+++ b/src/WixToolset.Mba.Core/IVariables.cs
@@ -0,0 +1,27 @@
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.BootstrapperCore
4{
5 using System;
6
7 /// <summary>
8 /// An accessor for numeric, string, and version variables for the engine.
9 /// </summary>
10 public interface IVariables<T>
11 {
12 /// <summary>
13 /// Gets or sets the variable given by <paramref name="name"/>.
14 /// </summary>
15 /// <param name="name">The name of the variable to get/set.</param>
16 /// <returns>The value of the given variable.</returns>
17 /// <exception cref="Exception">An error occurred getting the variable.</exception>
18 T this[string name] { get; set; }
19
20 /// <summary>
21 /// Gets whether the variable given by <paramref name="name"/> exists.
22 /// </summary>
23 /// <param name="name">The name of the variable to check.</param>
24 /// <returns>True if the variable given by <paramref name="name"/> exists; otherwise, false.</returns>
25 bool Contains(string name);
26 }
27}