string.LastIndexOf() Bug?
You are misunderstanding that particular overload of the LastIndexOf method. The docs state the following: The search starts at a specified character position and proceeds backward toward the beginning of the string. Note that it says backward. So, if you start at position 0, there is no “<” substring at that position or in front … Read more