foreach (var i in credentials)
{
string line = i.ToString();
if (i.ToString().Substring(0, i.ToString().IndexOf(":")).Equals(usernameInput.text) &&
i.ToString().Substring(i.ToString().IndexOf(":") + 1).Equals(passwordInput.text))
{ isExists = true;
break;
}
}
this show error "length cant be less than zero.plz guide me how to put startindex and string length in this .