TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Muralidharan Deenathayalan
174
10.9k
2.5m
How to dispose List
Jun 30 2011 12:47 AM
Hi experts,
I am having List<User> object. How I can dispose the list ?
For example,
List<User> usersCollection =new List<User>();
User user1 = new User();
User user2 = new User()
userCollection.Add(user1);
userCollection.Add(user2);
if I set , userCollection = null; what will happen?
foreach(User user in userCollection)
{
user = null;
}
Which one is best?
Reply
Answers (
4
)
Readonly VS Property
Struct in C#