Skip to content

Commit

Permalink
Change default cmdlet output view from TableDescriptor to ListDescriptor
Browse files Browse the repository at this point in the history
  • Loading branch information
BurtBiel committed Jan 7, 2016
1 parent 0a1cf4f commit d1cb437
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/CLU/Microsoft.CLU/Helpers/FormatReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,15 @@ internal static ViewDescriptor ReadFormatFile(LocalPackage package, string assem

// No formatting file -- just get the public properties.

var table = new TableDescriptor();
var list = new ListDescriptor();

foreach (var property in outputType.GetProperties())
{
var column = new ColumnDescriptor { Header = property.Name, ItemName = property.Name };
table.Columns.Add(column);
list.Properties.Add(column);
}

return table;
return list;
}

private static void GetTableHeaders(TableDescriptor table, XElement tableControl)
Expand Down

0 comments on commit d1cb437

Please sign in to comment.