How do I remove all objects in a List on Windows Phone 7 Silverlight C#?
How do I remove all objects in a List on Windows Phone 7 Silverlight C# (latest SDK)?
The method myList.RemoveAll() does not exist.
Thanks.
Answers & Comments...
Answer: 1
Answer: 2
Answer: 1
You should be able to use:
myList.Clear() by : Jayhttp://stackoverflow.com/users/114994Answer: 2
I can think of three ways to do this,
myList.Clear();myList = null;myList = new List<yourType>();
No comments:
Post a Comment
Send us your comment related to the topic mentioned on the blog