I have a List in c# in which i am adding list fields.Now while adding i have to check condition,if the condition satisfies then i need to remove the last row added from the
I think the most efficient way to do this is this is using RemoveAt:
rows.RemoveAt(rows.Count - 1)