KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a C# List with thousands of strings: "2324343" "6572332" "45122" ... I would like to replace all of them with brackets around them, so then they would look like "(2324343)" "(6572332)" "(45122)" ... I know how to write a for loop and do this but I would like to know if there is a way to do it with LINQ and LAMBDA expression preferably. I am open to other suggestions as well. Many thanks!
Tags (comma-separated)
Save Edits
Cancel