[Solved] Using substring in line C# [closed]
It means that the values you are passing to Substring are not valid for the string they are being called on. For example: string s = “hello”; string x = s.Substring(0, 1); // <– This is fine (returns “h”) string y = s.Substring(1, 3); // <– Also fine (returns “ell”) string z = s.Substring(5, 3); … Read more