Answers for "c# remove last value from list"

C#
3

c# remove last value from list

if(rows.Any()) //prevent IndexOutOfRangeException for empty list
{
    rows.RemoveAt(rows.Count - 1);
}
Posted by: Guest on March-03-2020

Code answers related to "c# remove last value from list"

C# Answers by Framework

Browse Popular Code Answers by Language