I have a string which i want to convert into a string indexed array for easy use.
Below is my expectations and outcomes.
Can someone guide me through this?
String: Dim QueryResponse = "TVShow=Adventure Time" & vbCrLf & "Color=Red"
Array:
Array
(
["TVShow"] => "Adventure Time"
["Color"] => "Red"
)
My current code:
Dim result() As String = QueryResponse.Split({vbCrLf}, StringSplitOptions.RemoveEmptyEntries)
Current code array:
Array
(
[0] => "TVShow=Adventure Time"
[1] => "Color=Red"
)
Would love some opinions on this one, thanks!