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
ngon nguyen van
NA
61
4.9k
Change values of list in list<list>
Aug 22 2016 2:44 PM
Hello all. I have the code in c#
List<int> lst = new List<int>() { 1, 2, 3, 4, 5, 6 };
List<List<int>> l1 = new List<List<int>>();
l1.Add(lst);
result in l1: 1 2 3 4 5 6
lst[1] = 10;
result in l1: 1 10 3 4 5 6
i want when change value of lst example. lst[1] = 10, elements of l1 do not change.
example when change value lst[1] = 10, result in l1: 1 2 3 4 5 6
How do it??? Thanks all!
Reply
Answers (
2
)
Compiling multiple regex replaces in vb.net?
deleting selected button that are in gray color