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