diff options
| author | Rob Mensching <rob@firegiant.com> | 2021-03-14 07:38:48 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2021-03-14 07:47:48 -0700 |
| commit | 3ccd5e439da4296d6f2b66ce47075ab20d039676 (patch) | |
| tree | b5546552613b869367d09f444492a0bbcfadcfe0 /src/WixToolset.Core.Burn/TableExtensions.cs | |
| parent | 574785ab1421c9b67336c13ade5c2263e665ca07 (diff) | |
| download | wix-3ccd5e439da4296d6f2b66ce47075ab20d039676.tar.gz wix-3ccd5e439da4296d6f2b66ce47075ab20d039676.tar.bz2 wix-3ccd5e439da4296d6f2b66ce47075ab20d039676.zip | |
Minimize public surface area of Core
Fixes wixtoolset/issues#6374
Diffstat (limited to 'src/WixToolset.Core.Burn/TableExtensions.cs')
| -rw-r--r-- | src/WixToolset.Core.Burn/TableExtensions.cs | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/WixToolset.Core.Burn/TableExtensions.cs b/src/WixToolset.Core.Burn/TableExtensions.cs deleted file mode 100644 index 465bf870..00000000 --- a/src/WixToolset.Core.Burn/TableExtensions.cs +++ /dev/null | |||
| @@ -1,24 +0,0 @@ | |||
| 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.Burn | ||
| 4 | { | ||
| 5 | using System.Collections.Generic; | ||
| 6 | using System.Linq; | ||
| 7 | using WixToolset.Data.WindowsInstaller; | ||
| 8 | |||
| 9 | /// <summary> | ||
| 10 | /// Methods that extend <see cref="Table"/>. | ||
| 11 | /// </summary> | ||
| 12 | public static class TableExtensions | ||
| 13 | { | ||
| 14 | /// <summary> | ||
| 15 | /// Gets the rows contained in the table as a particular row type. | ||
| 16 | /// </summary> | ||
| 17 | /// <param name="table">Table to get rows from.</param> | ||
| 18 | /// <remarks>If the <paramref name="table"/> is null, an empty enumerable will be returned.</remarks> | ||
| 19 | public static IEnumerable<T> RowsAs<T>(this Table table) where T : Row | ||
| 20 | { | ||
| 21 | return (null == table) ? Enumerable.Empty<T>() : table.Rows.Cast<T>(); | ||
| 22 | } | ||
| 23 | } | ||
| 24 | } | ||
