0
我將以下函數從vb.net轉換爲c#,但我無法弄清楚。在當前上下文中不存在「字符串」
錯誤4 '字串' 名稱不在當前上下文
public string GetBetween(string StringText)
{
string functionReturnValue = null;
string TMP = null;
string FromS = null;
string ToS = null;
FromS = "<Modulus>";
ToS = "</Modulus>";
TMP = Strings.Mid(StringText, Strings.InStr(StringText, FromS) + Strings.Len(FromS), Strings.Len(StringText));
TMP = Strings.Left(TMP, Strings.InStr(TMP, ToS) - 1);
functionReturnValue = TMP;
return functionReturnValue;
}
仍然錯誤出現.. !! – sonsha