0 c#
我很确定这很简单.我只是想从另一个空格中返回一个字符串.
public static void LinkWorker(string baseURLString)
{
// do some stuff here
HTMLWork(baseURLStringCycle)
--> this is where i need xstring returned
foreach(string xyString in xstring.split('\n'))
{
}
}
public static void HTMLWork(string baseURLStringCycle)
{
//do HTML work here
// create x string
string xString = ; //the result of the htmlwork
}
Run Code Online (Sandbox Code Playgroud)
你不想要一个void方法,你想要一个方法返回类型string.
public static string HTMLWork(string baseURLStringCycle)
{
//...
return xString;
}
Run Code Online (Sandbox Code Playgroud)