I converted the following function from vb.net to c# but I cannot figure this out.
Error 4 The name ‘Strings’ does not exist in the current context
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;
}
Stringsis a VB.net class. You’d have to reference theMicrosoft.VisualBasic.dllassembly and use theMicrosoft.VisualBasicnamespace if you’d want to be able to use it.It would be better if you just avoided using VB.net methods whenever possible.