Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Update multiple values in List using Linq
WhatsApp
Manish Dwivedi
12y
144.8
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
DateTime in C#
Read by 1.3k people
Download Now!
Learn
View all
Membership not found