/// <summary> /// Returns the string in a given resource at the specified index. /// </summary> /// /// <param name="index">an index to the wanted string.</param> /// <returns>a string which lives in the resource.</returns> /// <exception cref="IndexOutOfBoundsException"></exception> /// <exception cref="UResourceTypeMismatchException"></exception> /// @draft ICU 3.8 /// @provisional This API might change or be removed in a future release. public String GetString(int index) { ICUResourceBundle temp = (ICUResourceBundle)Get(index); if (temp.GetType() == STRING) { return(temp.GetString()); } throw new UResourceTypeMismatchException(""); }