// 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.Burn
{
using System.Collections.Generic;
using System.Linq;
using WixToolset.Data.WindowsInstaller;
///
/// Methods that extend .
///
public static class TableExtensions
{
///
/// Gets the rows contained in the table as a particular row type.
///
/// Table to get rows from.
/// If the is null, an empty enumerable will be returned.
public static IEnumerable RowsAs(this Table table) where T : Row
{
return (null == table) ? Enumerable.Empty() : table.Rows.Cast();
}
}
}