/// <include file='doc\XmlReader.uex' path='docs/doc[@for="XmlReader.IsNameToken"]/*' /> /// <devdoc> /// <para>[To be supplied.]</para> /// </devdoc> public static bool IsNameToken(string str) { if (str == String.Empty) { return(false); } int i = str.Length - 1; while (i >= 0) { if (XmlCharType.IsNameChar(str[i])) { i--; } else { return(false); } } return(true); }