Skip to content

Commit

Permalink
Add MdTable.Add()
Browse files Browse the repository at this point in the history
  • Loading branch information
ap0llo committed Jul 19, 2018
1 parent 545da54 commit 53b4027
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/MarkdownGenerator/main/Model/MdTable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,14 @@ public int GetColumnWidth(int column)

return Math.Max(HeaderRow.GetColumnWidthOrDefault(column), m_Rows.Max(r => r.GetColumnWidthOrDefault(column)));
}


public void Add(MdTableRow row)
{
if (row == null)
throw new ArgumentNullException(nameof(row));

m_Rows.AddLast(row);
}
}
}

0 comments on commit 53b4027

Please sign in to comment.