I know 2 ways to check if the first char in string are some char.
var str = "/checking";
if (str.StartsWith("/"))
return;
and the over way:
var str = "/checking";
if (str[0] == '/')
return;
In this case (where I need to check the char, not the substring) whinh way would be faster? And is there any difference?