public static bool RightMatchStringArray(string[] haystack, string[] needles)
{
if (needles.Length > haystack.Length) return false;
var nlen = needles.Length;
var hlen = haystack.Length;
for (var offset = 1; offset <= needles.Length; offset++)
{
if (haystack[hlen - offset] != needles[nlen - offset])
return false;
}
return true;
}
}