[Solved] string does not contain a definition for valueOf


is what you are expecting is to convert vb to c#?

void Main()
{
    string s ="xhhxzx";
    int i5 = 3;
    string res = e(s, i5);
    Console.WriteLine(res);
    
}

 public static String e(String str, int i5)
            {
    return (str.Length / i5).ToString();
}

you can do in one line

public static String e(String str, int i5) => (str.Length / i5).ToString();

0

solved string does not contain a definition for valueOf