private static void ThrowIndexOutOfRangeException(string[] array, int index) { throw new UnexpectedIndexException(string.Format(CultureInfo.CurrentCulture, "Index {0} is out of range for array with length {1}.", index, array.Length)); } }