Solved

Empty a List

Posted on 2011-09-05
2
257 Views
Last Modified: 2012-05-12
Please let me know how I can delete all elements in a List in C#.

Thanks!
0
Comment
Question by:dshrenik
2 Comments
 
LVL 10

Accepted Solution

by:
oxyoo earned 500 total points
ID: 36486609
There should be a Clear() method that does what you want.
MyListVariable.Clear();

Open in new window

0
 
LVL 11

Expert Comment

by:Kusala Wijayasena
ID: 36486620
Use the Clear() method to remove all element in the list

-Kusala
0

Featured Post

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
tableview is not updating 1 20
Deny permission ACL 16 26
Can we see Configuration labeled by "commit label xxx" in ASR9K? 2 13
Upgrading from Sonicwall Tz210 6 11
Quality of Service (QoS) options are nearly endless when it comes to networks today. This article is merely one example of how it can be handled in a hub-n-spoke design using a 3-tier configuration.
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question