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
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Update multiple values in List using Linq
Manish Dwivedi
Aug 21, 2012
143
k
0
1
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
In this blog, i'll explain that how can we update multiple values in list.
Suppose I have a list of Users and i want to update name and address for each user in list. We can do this by using this code.
(from user in userlist
select user).ToList().ForEach((user) =>
{
user.Phone="1242341237";
user.Address="Some Address";
});
Update multiple values in List using Linq
Next Recommended Reading
Insert multiple values from textbox and show them into a datagridview