SyntaxFix
Write A Post
Hire A Developer
Questions
I would rather use Last() from LINQ to do it.
Last()
rows = rows.Remove(rows.Last());
or
rows = rows.Remove(rows.LastOrDefault());