Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Update multiple values in List using Linq
WhatsApp
Manish Dwivedi
12y
144.5
k
0
1
25
Blog
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
Up Next
Insert multiple values from textbox and show them into a datagridview
Ebook Download
View all
.NET Interview Questions and Answer: Practical Implementation
Read by 41.8k people
Download Now!
Learn
View all
Membership not found