internal static Exception CreateInvalidNameCharException(string name, int index, ExceptionType exceptionType) { return CreateException(index == 0 ? SR.Xml_BadStartNameChar : SR.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(name, index), exceptionType, 0, index + 1); }