Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string s1 = "s1";
- string s2 = "s2";
- List<string> list = new List<string>();
- list.Add(s1);
- list.Add(s2);
- SomeMethod(list);
- Console.Writeline(string.Format("{0} {1}, s1, s2));
- // I want have here value after SomeMethod. Its possible without rewriting back from the list to variable???
- void SomeMethod(List<string> list2)
- {
- // do something with list2 for example list2[0] = "s11";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement