static private BuildCharExceptionArgs ( char data, int length, int invCharIndex ) : string[] | ||
data | char | |
length | int | |
invCharIndex | int | |
return | string[] |
internal static string[] BuildCharExceptionArgs(char[] data, int length, int invCharIndex)
{
Debug.Assert(invCharIndex < data.Length);
Debug.Assert(invCharIndex < length);
Debug.Assert(length <= data.Length);
return BuildCharExceptionArgs(data[invCharIndex], invCharIndex + 1 < length ? data[invCharIndex + 1] : '\0');
}
XmlException::BuildCharExceptionArgs ( char invChar, char nextChar ) : string[] | |
XmlException::BuildCharExceptionArgs ( char data, int invCharIndex ) : string[] | |
XmlException::BuildCharExceptionArgs ( string data, int invCharIndex ) : string[] |
private void CheckWhitespace(string value) { int invCharIndex = this.xmlCharType.IsOnlyWhitespaceWithPos(value); if (invCharIndex != -1) { this.Throw("Xml_InvalidWhitespaceCharacter", XmlException.BuildCharExceptionArgs(value, invCharIndex)); } }