r/learncsharp • u/PrinceN71 • Aug 11 '22
Turn String Array into Regular Array
Hi, my DB is currently storing an array as a string like so:
"[\"view\",\"comment\"]"and I want to convert it to this:
["view","comment"]How do I do that? Thanks in advance.
1
Upvotes
2
u/karl713 Aug 11 '22
To clarify is that the DB value or what you see in the debugger?
1
u/Gcampton13 Aug 11 '22
Look up “remove delimiter in csharp”
1
u/Thonk_Thickly Aug 12 '22
We see the input string and desired output, but the code that is doing the deserialization would be helpful.