// Token: 0x0600308A RID: 12426 RVA: 0x000B9BF8 File Offset: 0x000B7DF8
internal static int LastIndexOfStringOrdinalIgnoreCase(string source, string value, int startIndex, int count)
{
if (value.Length == 0)
{
return(startIndex);
}
int result = -1;
if (TextInfo.TryFastFindStringOrdinalIgnoreCase(8388608, source, startIndex, value, count, ref result))
{
return(result);
}
int num = startIndex - count + 1;
if (value.Length > 0)
{
startIndex -= value.Length - 1;
}
while (startIndex >= num)
{
if (TextInfo.CompareOrdinalIgnoreCaseEx(source, startIndex, value, 0, value.Length, value.Length) == 0)
{
return(startIndex);
}
startIndex--;
}
return(-1);
}