25 references to Throw
System.Private.Xml (25)
System\Xml\Core\XmlTextReaderImpl.cs (16)
2656
Throw
(res, arg);
2670
Throw
(res, string.Empty);
2676
Throw
(res, string.Empty);
3024
Throw
(SR.Xml_PartialContentNodeTypeNotSupportedEx, fragmentType.ToString());
3155
Throw
(SR.Xml_UnknownEncoding, "ebcdic");
3240
Throw
(SR.Xml_EncodingSwitchAfterResetState, newEncodingName);
3277
Throw
(SR.Xml_EncodingSwitchAfterResetState, newEncodingName);
3658
Throw
(SR.Xml_EncodingSwitchAfterResetState, (_ps.encoding.GetByteCount("A") == 1) ? "UTF-8" : "UTF-16");
3796
Throw
(SR.Xml_InvalidVersionNumber, badVersion);
3876
Throw
(SR.Xml_EncodingSwitchAfterResetState, (_ps.encoding.GetByteCount("A") == 1) ? "UTF-8" : "UTF-16");
5892
Throw
(SR.Xml_InvalidNodeType, _curNode.type.ToString());
6212
Throw
(target.Equals("xml") ? SR.Xml_XmlDeclNotFirst : SR.Xml_InvalidPIName, target);
6509
Throw
(SR.Xml_UnexpectedEOF, (type == XmlNodeType.Comment) ? "Comment" : "CDATA");
6677
Throw
(SR.Xml_UnexpectedEOF, "DOCTYPE");
7939
Throw
(_dtdProcessing == DtdProcessing.Ignore ? SR.Xml_CannotResolveEntityDtdIgnored : SR.Xml_CannotResolveEntity, entityName);
8935
Throw
(SR.Xml_InvalidNodeType, _curNode.type.ToString());
System\Xml\Core\XmlTextReaderImplAsync.cs (9)
1242
Throw
(SR.Xml_EncodingSwitchAfterResetState, (_ps.encoding.GetByteCount("A") == 1) ? "UTF-8" : "UTF-16");
1377
Throw
(SR.Xml_InvalidVersionNumber, badVersion);
1455
Throw
(SR.Xml_EncodingSwitchAfterResetState, (_ps.encoding.GetByteCount("A") == 1) ? "UTF-8" : "UTF-16");
3669
Throw
(SR.Xml_InvalidNodeType, _curNode.type.ToString());
3916
Throw
(target.Equals("xml") ? SR.Xml_XmlDeclNotFirst : SR.Xml_InvalidPIName, target);
4252
Throw
(SR.Xml_UnexpectedEOF, (type == XmlNodeType.Comment) ? "Comment" : "CDATA");
4421
Throw
(SR.Xml_UnexpectedEOF, "DOCTYPE");
5148
Throw
(_dtdProcessing == DtdProcessing.Ignore ? SR.Xml_CannotResolveEntityDtdIgnored : SR.Xml_CannotResolveEntity, entityName);
5313
Throw
(SR.Xml_InvalidNodeType, _curNode.type.ToString());