c# remove last value from list

85

c# remove last value from list -

if(rows.Any()) //prevent IndexOutOfRangeException for empty list
{
    rows.RemoveAt(rows.Count - 1);
}

Comments

Submit
0 Comments