Hack Forums
[C#] C# Cannot implicitly convert from List<string> to string - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [C#] C# Cannot implicitly convert from List<string> to string (/showthread.php?tid=5341932)



C# Cannot implicitly convert from List<string> to string - goshmulticoloredalto - Jul 17, 2016

Here's the code: http://pastebin.com/eiri4v4h

When I try to CreateRequest("Any string here") it gives me this:

Quote:Cannot implicitly convert type 'System.Collections.Generic.List<string>' to 'string'



Any help is appreciated ;-;


* - Dezzz - Jul 17, 2016

How are you storing the result?
You should be doing this

Code
List<string> result = CreateRequest("hackforums.net");



* - goshmulticoloredalto - Jul 17, 2016

Solved it through Skype, thanks a bunch c: