20 references to Throw
System.Private.Xml (20)
System\Xml\Core\XmlTextReaderImpl.cs (12)
3545
Throw
(_ps.charsUsed, SR.Xml_InvalidCharInThisEncoding);
3963
Throw
(_ps.charPos, SR.Xml_InvalidRootData);
3993
Throw
(pos + 1, SR.Xml_UnexpectedEndTag);
4001
Throw
(pos, SR.Xml_MultipleRoots);
4018
Throw
(pos, SR.Xml_InvalidRootData);
4262
Throw
(_ps.charsUsed, SR.Xml_UnexpectedEOF1);
5672
Throw
(pos, SR.Xml_CDATAEndInText);
6555
Throw
(pos, SR.Xml_InvalidCommentChars);
6694
Throw
(_ps.charPos - 2, SR.Xml_MultipleDTDsProvided); // position just before <!DOCTYPE
6699
Throw
(_ps.charPos - 2, SR.Xml_DtdAfterRootElement);
7280
Throw
(pos, badDigitExceptionString);
8807
Throw
(pos, SR.Xml_UnexpectedEOF1);
System\Xml\Core\XmlTextReaderImplAsync.cs (8)
1529
Throw
(_ps.charPos, SR.Xml_InvalidRootData);
1555
Throw
(pos + 1, SR.Xml_UnexpectedEndTag);
1563
Throw
(pos, SR.Xml_MultipleRoots);
1616
Throw
(pos, SR.Xml_InvalidRootData);
3326
Throw
(pos, SR.Xml_CDATAEndInText);
4298
Throw
(pos, SR.Xml_InvalidCommentChars);
4435
Throw
(_ps.charPos - 2, SR.Xml_MultipleDTDsProvided); // position just before <!DOCTYPE
4439
Throw
(_ps.charPos - 2, SR.Xml_DtdAfterRootElement);