diff options
author | Rob Mensching <rob@firegiant.com> | 2021-05-03 15:55:48 -0700 |
---|---|---|
committer | Rob Mensching <rob@firegiant.com> | 2021-05-03 15:55:48 -0700 |
commit | ba7bab476501c16e437b0aee71c1be02c3dda176 (patch) | |
tree | 814fba485c29a7dfe1adb396169e27ed641ef9a3 /src/ext/Bal/WixToolset.Mba.Host/SupportedFrameworkElementCollection.cs | |
parent | 14987a72cc1a3493ca8f80693d273352fc314bd9 (diff) | |
download | wix-ba7bab476501c16e437b0aee71c1be02c3dda176.tar.gz wix-ba7bab476501c16e437b0aee71c1be02c3dda176.tar.bz2 wix-ba7bab476501c16e437b0aee71c1be02c3dda176.zip |
Move Bal.wixext into ext
Diffstat (limited to 'src/ext/Bal/WixToolset.Mba.Host/SupportedFrameworkElementCollection.cs')
-rw-r--r-- | src/ext/Bal/WixToolset.Mba.Host/SupportedFrameworkElementCollection.cs | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/ext/Bal/WixToolset.Mba.Host/SupportedFrameworkElementCollection.cs b/src/ext/Bal/WixToolset.Mba.Host/SupportedFrameworkElementCollection.cs new file mode 100644 index 00000000..12c7cf3e --- /dev/null +++ b/src/ext/Bal/WixToolset.Mba.Host/SupportedFrameworkElementCollection.cs | |||
@@ -0,0 +1,36 @@ | |||
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.Mba.Host | ||
4 | { | ||
5 | using System; | ||
6 | using System.Configuration; | ||
7 | using System.Diagnostics.CodeAnalysis; | ||
8 | |||
9 | /// <summary> | ||
10 | /// Handler for the supportedFramework collection. | ||
11 | /// </summary> | ||
12 | [SuppressMessage("Microsoft.Design", "CA1010:CollectionsShouldImplementGenericInterface")] | ||
13 | [ConfigurationCollection(typeof(SupportedFrameworkElement), AddItemName = "supportedFramework", CollectionType = ConfigurationElementCollectionType.BasicMap)] | ||
14 | public sealed class SupportedFrameworkElementCollection : ConfigurationElementCollection | ||
15 | { | ||
16 | public override ConfigurationElementCollectionType CollectionType | ||
17 | { | ||
18 | get { return ConfigurationElementCollectionType.BasicMap; } | ||
19 | } | ||
20 | |||
21 | protected override string ElementName | ||
22 | { | ||
23 | get { return "supportedFramework"; } | ||
24 | } | ||
25 | |||
26 | protected override ConfigurationElement CreateNewElement() | ||
27 | { | ||
28 | return new SupportedFrameworkElement(); | ||
29 | } | ||
30 | |||
31 | protected override object GetElementKey(ConfigurationElement element) | ||
32 | { | ||
33 | return (element as SupportedFrameworkElement).Version; | ||
34 | } | ||
35 | } | ||
36 | } | ||