public override string Render(int depthLimit, int currentDepth) { var tableBuilder = new TableBuilder(base.Metadata); tableBuilder.AddFragment( new FragmentBase[] { new ComplexTypeTableStartFragment(base.Metadata), new ComplexTypeTableHeadingFragment(base.Metadata), new ComplexObjectTableRowsFragment(base.Metadata), new TableEndFragment(base.Metadata), }); return(tableBuilder.ToString(depthLimit, currentDepth)); }
public override string Render(int depthLimit, int currentDepth) { var tableBuilder = new TableBuilder(base.Metadata); tableBuilder.AddFragment( new FragmentBase[] { new ComplexTypeTableStartFragment(base.Metadata), new ComplexTypeTableHeadingFragment(base.Metadata), new ComplexObjectTableRowsFragment(base.Metadata), new TableEndFragment(base.Metadata), }); return tableBuilder.ToString(depthLimit, currentDepth); }
public override string Render(int depthLimit, int currentDepth) { var tableBuilder = new TableBuilder(base.Metadata); FragmentBase rowRenderer = base.Metadata.IsEnumerableOfKnownType ? new EnumerableComplexObjectTableRowsFragment(base.Metadata) : base.Metadata.IsEnumerable && base.Metadata.IsPrimitiveElement ? new PrimitiveEnumerableTableRowsFragment(base.Metadata) : base.Metadata.IsEnumerable ? new EnumerableObjectTableRowsFragment(base.Metadata) as FragmentBase : new ComplexObjectTableRowsFragment(base.Metadata); tableBuilder.AddFragment( new FragmentBase[] { new EnumerableTypeTableStartFragment(base.Metadata), new EnumerableTypeTableHeadingFragment(base.Metadata), rowRenderer, new TableEndFragment(base.Metadata), }); return tableBuilder.ToString(depthLimit, currentDepth); }
public override string Render(int depthLimit, int currentDepth) { var tableBuilder = new TableBuilder(base.Metadata); FragmentBase rowRenderer = base.Metadata.IsEnumerableOfKnownType ? new EnumerableComplexObjectTableRowsFragment(base.Metadata) : base.Metadata.IsEnumerable && base.Metadata.IsPrimitiveElement ? new PrimitiveEnumerableTableRowsFragment(base.Metadata) : base.Metadata.IsEnumerable ? new EnumerableObjectTableRowsFragment(base.Metadata) as FragmentBase : new ComplexObjectTableRowsFragment(base.Metadata); tableBuilder.AddFragment( new FragmentBase[] { new EnumerableTypeTableStartFragment(base.Metadata), new EnumerableTypeTableHeadingFragment(base.Metadata), rowRenderer, new TableEndFragment(base.Metadata), }); return(tableBuilder.ToString(depthLimit, currentDepth)); }