Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b44eb50

Browse files
committedOct 1, 2024·
Reverting body consturctor as it fails in Mac build
1 parent 1c8c9cb commit b44eb50

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed
 

‎src/Microsoft.PowerShell.ConsoleGuiTools/GridViewDataSource.cs

+7-3
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,19 @@
1414

1515
namespace Microsoft.PowerShell.ConsoleGuiTools
1616
{
17-
18-
internal sealed class GridViewDataSource(IEnumerable<GridViewRow> gridViewRowList) : IListDataSource
17+
internal sealed class GridViewDataSource : IListDataSource
1918
{
20-
internal List<GridViewRow> GridViewRowList { get; init; } = gridViewRowList.ToList();
19+
internal List<GridViewRow> GridViewRowList { get; init; }
2120

2221
public int Count => GridViewRowList.Count;
2322

2423
public int Length { get; }
2524

25+
public GridViewDataSource(IEnumerable<GridViewRow> gridViewRowList)
26+
{
27+
this.GridViewRowList = gridViewRowList.ToList();
28+
}
29+
2630
public void Render(ListView container, ConsoleDriver driver, bool selected, int item, int col, int line, int width, int start)
2731
{
2832
container.Move(col, line);

0 commit comments

Comments
 (0)
Please sign in to comment.