private ThrowUnexpectedToken ( int pos, string expectedToken1, string expectedToken2 ) : void | ||
pos | int | |
expectedToken1 | string | |
expectedToken2 | string | |
return | void |
private void ThrowUnexpectedToken(int pos, string expectedToken1, string expectedToken2)
{
string unexpectedToken = ParseUnexpectedToken(pos);
if (expectedToken2 != null)
{
Throw(_curPos, SR.Xml_UnexpectedTokens2, new string[3] { unexpectedToken, expectedToken1, expectedToken2 });
}
else
{
Throw(_curPos, SR.Xml_UnexpectedTokenEx, new string[2] { unexpectedToken, expectedToken1 });
}
}
DtdParser::ThrowUnexpectedToken ( int pos, string expectedToken ) : void |