Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# remove last value from list

if(rows.Any()) //prevent IndexOutOfRangeException for empty list
{
    rows.RemoveAt(rows.Count - 1);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #list
ADD COMMENT
Topic
Name
2+8 =