How to empty a list in C# – Programming, Pseudocode Example, C# Programming Example
C# List

How to empty a list in C#

Removes all items from the list. Count is zero, Capacity is unchanged.

Using:

 

Example:

Output:

 

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: