ConsoleUtilsWriteTable Method |
Namespace: Cauldron.Consoles
public static void WriteTable( params ConsoleTableColumn[] columns )
var type = instance.GetType(); var properties = type.GetPropertiesEx(BindingFlags.Public | BindingFlags.Instance); ConsoleUtils.WriteTable( new ConsoleTableColumn(properties.Select(x => x.Name)), new ConsoleTableColumn(properties.Select(x => x.GetValue(instance)?.ToString())));