From df69d4172d3117d8b66ba51fa5ae7f4be538700d Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Sat, 11 Apr 2020 16:03:19 +1000 Subject: Move table definitions from Core to Data. --- .../WindowsInstallerStandardInternal.cs | 40 ---------------------- 1 file changed, 40 deletions(-) delete mode 100644 src/WixToolset.Core.WindowsInstaller/WindowsInstallerStandardInternal.cs (limited to 'src/WixToolset.Core.WindowsInstaller/WindowsInstallerStandardInternal.cs') diff --git a/src/WixToolset.Core.WindowsInstaller/WindowsInstallerStandardInternal.cs b/src/WixToolset.Core.WindowsInstaller/WindowsInstallerStandardInternal.cs deleted file mode 100644 index 33f1ba04..00000000 --- a/src/WixToolset.Core.WindowsInstaller/WindowsInstallerStandardInternal.cs +++ /dev/null @@ -1,40 +0,0 @@ -// 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.Core.WindowsInstaller -{ - using System.Reflection; - using System.Xml; - using WixToolset.Data.WindowsInstaller; - - /// - /// Represents the Windows Installer standard objects. - /// - internal static class WindowsInstallerStandardInternal - { - private static readonly object lockObject = new object(); - - private static TableDefinitionCollection tableDefinitions; - - /// - /// Gets the table definitions stored in this assembly. - /// - /// Table definition collection for tables stored in this assembly. - public static TableDefinitionCollection GetTableDefinitions() - { - // TODO: make the data static data structures instead of parsing an XML file and consider - // moving it all to WixToolset.Data.WindowsInstallerStandard class. - lock (lockObject) - { - if (null == WindowsInstallerStandardInternal.tableDefinitions) - { - using (XmlReader reader = XmlReader.Create(Assembly.GetExecutingAssembly().GetManifestResourceStream("WixToolset.Core.WindowsInstaller.Data.tables.xml"))) - { - WindowsInstallerStandardInternal.tableDefinitions = TableDefinitionCollection.Load(reader); - } - } - } - - return WindowsInstallerStandardInternal.tableDefinitions; - } - } -} -- cgit v1.2.3-55-g6feb