28 implementations of IXmlLineInfo
Microsoft.Build (2)
ElementLocation\XmlAttributeWithLocation.cs (1)
15
internal class XmlAttributeWithLocation : XmlAttribute,
IXmlLineInfo
ElementLocation\XmlElementWithLocation.cs (1)
22
internal class XmlElementWithLocation : XmlElement,
IXmlLineInfo
, ILinkedXml
PresentationBuildTasks (1)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlWrappingReader.cs (1)
21
internal class XmlWrappingReader : XmlReader,
IXmlLineInfo
, IXmlNamespaceResolver {
System.IO.Packaging (1)
System\IO\Packaging\XmlWrappingReader.cs (1)
13
internal class XmlWrappingReader : XmlReader,
IXmlLineInfo
, IXmlNamespaceResolver
System.Private.DataContractSerialization (3)
System\Runtime\Serialization\XmlSerializableReader.cs (1)
13
internal sealed class XmlSerializableReader : XmlReader,
IXmlLineInfo
, IXmlTextParser // IXmlTextParser (Normalized, WhitespaceHandling) was added. Is it ever used?
System\Xml\XmlDictionaryReader.cs (1)
1312
private sealed class XmlWrappedReader : XmlDictionaryReader,
IXmlLineInfo
System\Xml\XmlUTF8TextReader.cs (1)
24
internal sealed class XmlUTF8TextReader : XmlBaseReader,
IXmlLineInfo
, IXmlTextReaderInitializer
System.Private.Xml (17)
System\Xml\Cache\XPathDocumentNavigator.cs (1)
17
internal sealed class XPathDocumentNavigator : XPathNavigator,
IXmlLineInfo
System\Xml\Core\XmlAsyncCheckReader.cs (1)
945
internal class XmlAsyncCheckReaderWithLineInfo : XmlAsyncCheckReader,
IXmlLineInfo
System\Xml\Core\XmlSubtreeReader.cs (1)
13
internal sealed partial class XmlSubtreeReader : XmlWrappingReader,
IXmlLineInfo
, IXmlNamespaceResolver
System\Xml\Core\XmlSubtreeReaderAsync.cs (1)
14
internal sealed partial class XmlSubtreeReader : XmlWrappingReader,
IXmlLineInfo
, IXmlNamespaceResolver
System\Xml\Core\XmlTextReader.cs (1)
16
public class XmlTextReader : XmlReader,
IXmlLineInfo
, IXmlNamespaceResolver
System\Xml\Core\XmlTextReaderImpl.cs (1)
17
internal sealed partial class XmlTextReaderImpl : XmlReader,
IXmlLineInfo
, IXmlNamespaceResolver
System\Xml\Core\XmlTextReaderImplAsync.cs (1)
20
internal sealed partial class XmlTextReaderImpl : XmlReader,
IXmlLineInfo
, IXmlNamespaceResolver
System\Xml\Core\XmlValidatingReader.cs (1)
15
public class XmlValidatingReader : XmlReader,
IXmlLineInfo
, IXmlNamespaceResolver
System\Xml\Core\XmlValidatingReaderImpl.cs (1)
17
internal sealed partial class XmlValidatingReaderImpl : XmlReader,
IXmlLineInfo
, IXmlNamespaceResolver
System\Xml\Core\XmlValidatingReaderImplAsync.cs (1)
17
internal sealed partial class XmlValidatingReaderImpl : XmlReader,
IXmlLineInfo
, IXmlNamespaceResolver
System\Xml\Core\XmlWrappingReader.cs (1)
12
internal partial class XmlWrappingReader : XmlReader,
IXmlLineInfo
System\Xml\Core\XmlWrappingReaderAsync.cs (1)
13
internal partial class XmlWrappingReader : XmlReader,
IXmlLineInfo
System\Xml\Core\XsdCachingReader.cs (1)
15
internal sealed partial class XsdCachingReader : XmlReader,
IXmlLineInfo
System\Xml\Core\XsdCachingReaderAsync.cs (1)
15
internal sealed partial class XsdCachingReader : XmlReader,
IXmlLineInfo
System\Xml\Core\XsdValidatingReader.cs (1)
40
internal sealed partial class XsdValidatingReader : XmlReader, IXmlSchemaInfo,
IXmlLineInfo
, IXmlNamespaceResolver
System\Xml\Core\XsdValidatingReaderAsync.cs (1)
17
internal sealed partial class XsdValidatingReader : XmlReader, IXmlSchemaInfo,
IXmlLineInfo
, IXmlNamespaceResolver
System\Xml\IXmlLineInfo.cs (1)
13
internal class PositionInfo :
IXmlLineInfo
System.Private.Xml.Linq (3)
System\Xml\Linq\XNodeReader.cs (1)
8
internal sealed class XNodeReader : XmlReader,
IXmlLineInfo
System\Xml\Linq\XObject.cs (1)
14
public abstract class XObject :
IXmlLineInfo
System\Xml\XPath\XNodeNavigator.cs (1)
11
internal sealed class XNodeNavigator : XPathNavigator,
IXmlLineInfo
System.Xaml (1)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlWrappingReader.cs (1)
21
internal class XmlWrappingReader : XmlReader,
IXmlLineInfo
, IXmlNamespaceResolver {
326 references to IXmlLineInfo
illink (1)
Linker.Steps\ProcessLinkerXmlBase.cs (1)
471
return (position is
IXmlLineInfo
lineInfo)
Microsoft.AspNetCore.Rewrite (4)
IISUrlRewrite\InvalidUrlRewriteFormatException.cs (4)
22
var
xmlLineInfo = (
IXmlLineInfo
)element;
29
var
xmlLineInfo = (
IXmlLineInfo
)element;
Microsoft.Build (2)
ElementLocation\XmlDocumentWithLocation.cs (2)
40
private
IXmlLineInfo
_reader;
142
_reader = reader as
IXmlLineInfo
;
Microsoft.Build.Tasks.Core (6)
AppConfig\AppConfig.cs (2)
47
if (reader is
IXmlLineInfo
info)
60
if (reader is
IXmlLineInfo
info)
RedistList.cs (2)
863
reader is
IXmlLineInfo
? ((
IXmlLineInfo
)reader).LineNumber : 0));
ResourceHandling\MSBuildResXReader.cs (2)
200
log?.LogWarningWithCodeFromResources(null, resxFilename, ((
IXmlLineInfo
)elem).LineNumber, ((
IXmlLineInfo
)elem).LinePosition, 0, 0, "GenerateResource.BinaryFormatterUse", name, typename);
Microsoft.CodeAnalysis (1)
Diagnostic\XmlLocation.cs (1)
38
IXmlLineInfo
xmlLineInfo = obj;
Microsoft.Extensions.Configuration.Xml (8)
XmlStreamConfigurationProvider.cs (8)
137
var
lineInfo = reader as
IXmlLineInfo
;
149
var
lineInfo = reader as
IXmlLineInfo
;
194
var
lineInfo = reader as
IXmlLineInfo
;
206
var
lineInfo = reader as
IXmlLineInfo
;
netstandard (1)
netstandard.cs (1)
2258
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.
IXmlLineInfo
))]
PresentationBuildTasks (8)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (2)
856
IXmlLineInfo
xmlLineInfo = xmlReader as
IXmlLineInfo
;
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (2)
5248
_xmlLineInfo = _xmlReader as
IXmlLineInfo
;
6818
IXmlLineInfo
_xmlLineInfo;
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (2)
1466
IXmlLineInfo
info = Reader as
IXmlLineInfo
;
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlWrappingReader.cs (2)
26
protected
IXmlLineInfo
_readerAsIXmlLineInfo;
180
_readerAsIXmlLineInfo = value as
IXmlLineInfo
;
System.IO.Packaging (48)
System\IO\Packaging\PartBasedPackageProperties.cs (28)
390
null, ((
IXmlLineInfo
)reader).LineNumber, ((
IXmlLineInfo
)reader).LinePosition);
499
null, ((
IXmlLineInfo
)reader).LineNumber, ((
IXmlLineInfo
)reader).LinePosition);
506
null, ((
IXmlLineInfo
)reader).LineNumber, ((
IXmlLineInfo
)reader).LinePosition);
525
null, ((
IXmlLineInfo
)reader).LineNumber, ((
IXmlLineInfo
)reader).LinePosition);
532
null, ((
IXmlLineInfo
)reader).LineNumber, ((
IXmlLineInfo
)reader).LinePosition);
546
null, ((
IXmlLineInfo
)reader).LineNumber, ((
IXmlLineInfo
)reader).LinePosition);
554
null, ((
IXmlLineInfo
)reader).LineNumber, ((
IXmlLineInfo
)reader).LinePosition);
563
null, ((
IXmlLineInfo
)reader).LineNumber, ((
IXmlLineInfo
)reader).LinePosition);
578
null, ((
IXmlLineInfo
)reader).LineNumber, ((
IXmlLineInfo
)reader).LinePosition);
612
null, ((
IXmlLineInfo
)reader).LineNumber, ((
IXmlLineInfo
)reader).LinePosition);
621
null, ((
IXmlLineInfo
)reader).LineNumber, ((
IXmlLineInfo
)reader).LinePosition);
631
null, ((
IXmlLineInfo
)reader).LineNumber, ((
IXmlLineInfo
)reader).LinePosition);
649
null, ((
IXmlLineInfo
)reader).LineNumber, ((
IXmlLineInfo
)reader).LinePosition);
671
exc, ((
IXmlLineInfo
)reader).LineNumber, ((
IXmlLineInfo
)reader).LinePosition);
System\IO\Packaging\XmlCompatibilityReader.cs (2)
1408
IXmlLineInfo
? info = Reader as
IXmlLineInfo
;
System\IO\Packaging\XmlWrappingReader.cs (2)
16
protected
IXmlLineInfo
? _readerAsIXmlLineInfo;
182
_readerAsIXmlLineInfo = value as
IXmlLineInfo
;
System\IO\Packaging\ZipPackage.cs (16)
989
throw new XmlException(SR.TypesTagHasExtraAttributes, null, ((
IXmlLineInfo
)reader).LineNumber, ((
IXmlLineInfo
)reader).LinePosition);
1026
throw new XmlException(SR.TypesXmlDoesNotMatchSchema, null, ((
IXmlLineInfo
)reader).LineNumber, ((
IXmlLineInfo
)reader).LinePosition);
1032
throw new XmlException(SR.TypesElementExpected, null, ((
IXmlLineInfo
)reader).LineNumber, ((
IXmlLineInfo
)reader).LinePosition);
1166
throw new XmlException(SR.DefaultTagDoesNotMatchSchema, null, ((
IXmlLineInfo
)reader).LineNumber, ((
IXmlLineInfo
)reader).LinePosition);
1193
throw new XmlException(SR.OverrideTagDoesNotMatchSchema, null, ((
IXmlLineInfo
)reader).LineNumber, ((
IXmlLineInfo
)reader).LinePosition);
1229
throw new XmlException(SR.Format(SR.ElementIsNotEmptyElement, elementName), null, ((
IXmlLineInfo
)reader).LineNumber, ((
IXmlLineInfo
)reader).LinePosition);
1281
throw new XmlException(SR.Format(SR.RequiredAttributeEmpty, tagName, attributeName), null, ((
IXmlLineInfo
)reader).LineNumber, ((
IXmlLineInfo
)reader).LinePosition);
1290
throw new XmlException(SR.Format(SR.RequiredAttributeMissing, tagName, attributeName), null, ((
IXmlLineInfo
)reader).LineNumber, ((
IXmlLineInfo
)reader).LinePosition);
System.Private.DataContractSerialization (20)
System\Runtime\Serialization\XmlReaderDelegator.cs (6)
1020
IXmlLineInfo
? iXmlLineInfo = reader as
IXmlLineInfo
;
1028
IXmlLineInfo
? iXmlLineInfo = reader as
IXmlLineInfo
;
1037
IXmlLineInfo
? iXmlLineInfo = reader as
IXmlLineInfo
;
System\Runtime\Serialization\XmlSerializableReader.cs (9)
163
bool
IXmlLineInfo
.HasLineInfo()
165
IXmlLineInfo
? xmlLineInfo = InnerReader as
IXmlLineInfo
;
169
int
IXmlLineInfo
.LineNumber
173
IXmlLineInfo
? xmlLineInfo = InnerReader as
IXmlLineInfo
;
178
int
IXmlLineInfo
.LinePosition
182
IXmlLineInfo
? xmlLineInfo = InnerReader as
IXmlLineInfo
;
System\Xml\XmlDictionaryReader.cs (3)
1799
if (_reader is not
IXmlLineInfo
lineInfo)
1809
if (_reader is not
IXmlLineInfo
lineInfo)
1820
if (_reader is not
IXmlLineInfo
lineInfo)
System\Xml\XmlExceptionHelper.cs (2)
34
if (reader is
IXmlLineInfo
lineInfo && lineInfo.HasLineInfo())
46
if (reader is
IXmlLineInfo
lineInfo && lineInfo.HasLineInfo())
System.Private.Xml (175)
System\Xml\Cache\XPathDocumentBuilder.cs (5)
44
private
IXmlLineInfo
? _lineInfo; // Line information provider
66
public XPathDocumentBuilder(XPathDocument doc,
IXmlLineInfo
? lineInfo, string? baseUri, XPathDocument.LoadFlags flags)
86
public void Initialize(XPathDocument doc,
IXmlLineInfo
? lineInfo, string? baseUri, XPathDocument.LoadFlags flags)
852
private
IXmlLineInfo
? _lineInfo;
860
public void Initialize(
IXmlLineInfo
? lineInfo)
System\Xml\Core\ReadContentAsBinaryHelper.cs (3)
244
throw new XmlException(SR.Xml_InvalidNodeType, _reader.NodeType.ToString(), _reader as
IXmlLineInfo
);
291
throw new XmlException(SR.Xml_InvalidNodeType, _reader.NodeType.ToString(), _reader as
IXmlLineInfo
);
403
throw new XmlException(SR.Xml_InvalidNodeType, _reader.NodeType.ToString(), _reader as
IXmlLineInfo
);
System\Xml\Core\ReadContentAsBinaryHelperAsync.cs (3)
199
throw new XmlException(SR.Xml_InvalidNodeType, _reader.NodeType.ToString(), _reader as
IXmlLineInfo
);
239
throw new XmlException(SR.Xml_InvalidNodeType, _reader.NodeType.ToString(), _reader as
IXmlLineInfo
);
325
throw new XmlException(SR.Xml_InvalidNodeType, _reader.NodeType.ToString(), _reader as
IXmlLineInfo
);
System\Xml\Core\ValidatingReaderNodeData.cs (1)
195
internal void SetLineInfo(
IXmlLineInfo
? lineInfo)
System\Xml\Core\XmlAsyncCheckReader.cs (3)
26
if (reader is
IXmlLineInfo
)
947
private readonly
IXmlLineInfo
_readerAsIXmlLineInfo;
952
_readerAsIXmlLineInfo = (
IXmlLineInfo
)reader;
System\Xml\Core\XmlCharCheckingReader.cs (2)
581
throw new XmlException(res, arg, (
IXmlLineInfo
?)null);
587
throw new XmlException(res, args, (
IXmlLineInfo
?)null);
System\Xml\Core\XmlReader.cs (32)
167
throw new XmlException(SR.Xml_ReadContentAsFormatException, "Boolean", e, this as
IXmlLineInfo
);
186
throw new XmlException(SR.Xml_ReadContentAsFormatException, "DateTime", e, this as
IXmlLineInfo
);
205
throw new XmlException(SR.Xml_ReadContentAsFormatException, "DateTimeOffset", e, this as
IXmlLineInfo
);
224
throw new XmlException(SR.Xml_ReadContentAsFormatException, "Double", e, this as
IXmlLineInfo
);
243
throw new XmlException(SR.Xml_ReadContentAsFormatException, "Float", e, this as
IXmlLineInfo
);
262
throw new XmlException(SR.Xml_ReadContentAsFormatException, "Decimal", e, this as
IXmlLineInfo
);
281
throw new XmlException(SR.Xml_ReadContentAsFormatException, "Int", e, this as
IXmlLineInfo
);
300
throw new XmlException(SR.Xml_ReadContentAsFormatException, "Long", e, this as
IXmlLineInfo
);
337
throw new XmlException(SR.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as
IXmlLineInfo
);
341
throw new XmlException(SR.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as
IXmlLineInfo
);
750
throw new XmlException(SR.Xml_InvalidNodeType, NodeType.ToString(), this as
IXmlLineInfo
);
760
throw new XmlException(SR.Xml_InvalidNodeType, NodeType.ToString(), this as
IXmlLineInfo
);
768
throw new XmlException(SR.Xml_ElementNotFound, name, this as
IXmlLineInfo
);
778
throw new XmlException(SR.Xml_InvalidNodeType, NodeType.ToString(), this as
IXmlLineInfo
);
786
throw new XmlException(SR.Xml_ElementNotFoundNs, new string[] { localname, ns }, this as
IXmlLineInfo
);
798
throw new XmlException(SR.Xml_InvalidNodeType, NodeType.ToString(), this as
IXmlLineInfo
);
806
throw new XmlException(SR.Xml_UnexpectedNodeInSimpleContent, new string[] { NodeType.ToString(), "ReadElementString" }, this as
IXmlLineInfo
);
825
throw new XmlException(SR.Xml_InvalidNodeType, NodeType.ToString(), this as
IXmlLineInfo
);
829
throw new XmlException(SR.Xml_ElementNotFound, name, this as
IXmlLineInfo
);
838
throw new XmlException(SR.Xml_InvalidNodeType, NodeType.ToString(), this as
IXmlLineInfo
);
857
throw new XmlException(SR.Xml_InvalidNodeType, NodeType.ToString(), this as
IXmlLineInfo
);
861
throw new XmlException(SR.Xml_ElementNotFoundNs, new string[] { localname, ns }, this as
IXmlLineInfo
);
870
throw new XmlException(SR.Xml_InvalidNodeType, NodeType.ToString(), this as
IXmlLineInfo
);
887
throw new XmlException(SR.Xml_InvalidNodeType, NodeType.ToString(), this as
IXmlLineInfo
);
1417
throw new XmlException(SR.Xml_InvalidNodeType, NodeType.ToString(), this as
IXmlLineInfo
);
1422
throw new XmlException(SR.Xml_ElementNotFoundNs, new string[] { localName, namespaceURI }, this as
IXmlLineInfo
);
1428
return CreateReadContentAsException(methodName, NodeType, this as
IXmlLineInfo
);
1433
return CreateReadElementContentAsException(methodName, NodeType, this as
IXmlLineInfo
);
1441
internal static Exception CreateReadContentAsException(string methodName, XmlNodeType nodeType,
IXmlLineInfo
? lineInfo)
1446
internal static Exception CreateReadElementContentAsException(string methodName, XmlNodeType nodeType,
IXmlLineInfo
? lineInfo)
1451
private static string AddLineInfo(string message,
IXmlLineInfo
? lineInfo)
1539
throw new XmlException(SR.Xml_MixedReadElementContentAs, string.Empty, this as
IXmlLineInfo
);
System\Xml\Core\XmlReaderAsync.cs (3)
65
throw new XmlException(SR.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as
IXmlLineInfo
);
69
throw new XmlException(SR.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as
IXmlLineInfo
);
393
throw new XmlException(SR.Xml_MixedReadElementContentAs, string.Empty, this as
IXmlLineInfo
);
System\Xml\Core\XmlSubtreeReader.cs (10)
933
throw new XmlException(SR.Xml_InvalidNodeType, reader.NodeType.ToString(), reader as
IXmlLineInfo
);
1070
throw new XmlException(SR.Xml_InvalidNodeType, reader.NodeType.ToString(), reader as
IXmlLineInfo
);
1176
int
IXmlLineInfo
.LineNumber
1182
if (reader is
IXmlLineInfo
lineInfo)
1191
int
IXmlLineInfo
.LinePosition
1197
if (reader is
IXmlLineInfo
lineInfo)
1206
bool
IXmlLineInfo
.HasLineInfo()
1208
return reader is
IXmlLineInfo
;
1391
throw new XmlException(SR.Xml_InvalidNodeType, reader.NodeType.ToString(), reader as
IXmlLineInfo
);
1420
throw new XmlException(SR.Xml_InvalidNodeType, reader.NodeType.ToString(), reader as
IXmlLineInfo
);
System\Xml\Core\XmlSubtreeReaderAsync.cs (4)
339
throw new XmlException(SR.Xml_InvalidNodeType, reader.NodeType.ToString(), reader as
IXmlLineInfo
);
476
throw new XmlException(SR.Xml_InvalidNodeType, reader.NodeType.ToString(), reader as
IXmlLineInfo
);
575
throw new XmlException(SR.Xml_InvalidNodeType, reader.NodeType.ToString(), reader as
IXmlLineInfo
);
604
throw new XmlException(SR.Xml_InvalidNodeType, reader.NodeType.ToString(), reader as
IXmlLineInfo
);
System\Xml\Core\XmlTextReaderImpl.cs (1)
9458
throw new XmlException(SR.Xml_InvalidNodeType, _curNode.type.ToString(), this as
IXmlLineInfo
);
System\Xml\Core\XmlTextReaderImplAsync.cs (1)
5467
throw new XmlException(SR.Xml_InvalidNodeType, _curNode.type.ToString(), this as
IXmlLineInfo
);
System\Xml\Core\XmlValidatingReaderImpl.cs (2)
782
return ((
IXmlLineInfo
)_coreReader).LineNumber;
791
return ((
IXmlLineInfo
)_coreReader).LinePosition;
System\Xml\Core\XmlWrappingReader.cs (2)
18
protected
IXmlLineInfo
? readerAsIXmlLineInfo;
27
this.readerAsIXmlLineInfo = baseReader as
IXmlLineInfo
;
System\Xml\Core\XsdCachingReader.cs (7)
49
private readonly
IXmlLineInfo
? _lineInfo;
59
internal XsdCachingReader(XmlReader reader,
IXmlLineInfo
? lineInfo, CachingEventHandler handlerMethod)
498
recordedNode.SetLineInfo(_coreReader as
IXmlLineInfo
);
605
bool
IXmlLineInfo
.HasLineInfo()
610
int
IXmlLineInfo
.LineNumber
618
int
IXmlLineInfo
.LinePosition
640
internal
IXmlLineInfo
? GetLineInfo()
System\Xml\Core\XsdValidatingReader.cs (59)
114
private
IXmlLineInfo
? _lineInfo;
130
_lineInfo = reader as
IXmlLineInfo
;
478
throw new XmlException(SR.Xml_ReadContentAsFormatException, "Boolean", e, this as
IXmlLineInfo
);
482
throw new XmlException(SR.Xml_ReadContentAsFormatException, "Boolean", e, this as
IXmlLineInfo
);
486
throw new XmlException(SR.Xml_ReadContentAsFormatException, "Boolean", e, this as
IXmlLineInfo
);
512
throw new XmlException(SR.Xml_ReadContentAsFormatException, "DateTime", e, this as
IXmlLineInfo
);
516
throw new XmlException(SR.Xml_ReadContentAsFormatException, "DateTime", e, this as
IXmlLineInfo
);
520
throw new XmlException(SR.Xml_ReadContentAsFormatException, "DateTime", e, this as
IXmlLineInfo
);
546
throw new XmlException(SR.Xml_ReadContentAsFormatException, "Double", e, this as
IXmlLineInfo
);
550
throw new XmlException(SR.Xml_ReadContentAsFormatException, "Double", e, this as
IXmlLineInfo
);
554
throw new XmlException(SR.Xml_ReadContentAsFormatException, "Double", e, this as
IXmlLineInfo
);
580
throw new XmlException(SR.Xml_ReadContentAsFormatException, "Float", e, this as
IXmlLineInfo
);
584
throw new XmlException(SR.Xml_ReadContentAsFormatException, "Float", e, this as
IXmlLineInfo
);
588
throw new XmlException(SR.Xml_ReadContentAsFormatException, "Float", e, this as
IXmlLineInfo
);
614
throw new XmlException(SR.Xml_ReadContentAsFormatException, "Decimal", e, this as
IXmlLineInfo
);
618
throw new XmlException(SR.Xml_ReadContentAsFormatException, "Decimal", e, this as
IXmlLineInfo
);
622
throw new XmlException(SR.Xml_ReadContentAsFormatException, "Decimal", e, this as
IXmlLineInfo
);
648
throw new XmlException(SR.Xml_ReadContentAsFormatException, "Int", e, this as
IXmlLineInfo
);
652
throw new XmlException(SR.Xml_ReadContentAsFormatException, "Int", e, this as
IXmlLineInfo
);
656
throw new XmlException(SR.Xml_ReadContentAsFormatException, "Int", e, this as
IXmlLineInfo
);
683
throw new XmlException(SR.Xml_ReadContentAsFormatException, "Long", e, this as
IXmlLineInfo
);
687
throw new XmlException(SR.Xml_ReadContentAsFormatException, "Long", e, this as
IXmlLineInfo
);
691
throw new XmlException(SR.Xml_ReadContentAsFormatException, "Long", e, this as
IXmlLineInfo
);
718
throw new XmlException(SR.Xml_ReadContentAsFormatException, "String", e, this as
IXmlLineInfo
);
722
throw new XmlException(SR.Xml_ReadContentAsFormatException, "String", e, this as
IXmlLineInfo
);
726
throw new XmlException(SR.Xml_ReadContentAsFormatException, "String", e, this as
IXmlLineInfo
);
760
throw new XmlException(SR.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as
IXmlLineInfo
);
764
throw new XmlException(SR.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as
IXmlLineInfo
);
768
throw new XmlException(SR.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as
IXmlLineInfo
);
806
throw new XmlException(SR.Xml_ReadContentAsFormatException, "Boolean", e, this as
IXmlLineInfo
);
810
throw new XmlException(SR.Xml_ReadContentAsFormatException, "Boolean", e, this as
IXmlLineInfo
);
814
throw new XmlException(SR.Xml_ReadContentAsFormatException, "Boolean", e, this as
IXmlLineInfo
);
841
throw new XmlException(SR.Xml_ReadContentAsFormatException, "DateTime", e, this as
IXmlLineInfo
);
845
throw new XmlException(SR.Xml_ReadContentAsFormatException, "DateTime", e, this as
IXmlLineInfo
);
849
throw new XmlException(SR.Xml_ReadContentAsFormatException, "DateTime", e, this as
IXmlLineInfo
);
876
throw new XmlException(SR.Xml_ReadContentAsFormatException, "Double", e, this as
IXmlLineInfo
);
880
throw new XmlException(SR.Xml_ReadContentAsFormatException, "Double", e, this as
IXmlLineInfo
);
884
throw new XmlException(SR.Xml_ReadContentAsFormatException, "Double", e, this as
IXmlLineInfo
);
911
throw new XmlException(SR.Xml_ReadContentAsFormatException, "Float", e, this as
IXmlLineInfo
);
915
throw new XmlException(SR.Xml_ReadContentAsFormatException, "Float", e, this as
IXmlLineInfo
);
919
throw new XmlException(SR.Xml_ReadContentAsFormatException, "Float", e, this as
IXmlLineInfo
);
946
throw new XmlException(SR.Xml_ReadContentAsFormatException, "Decimal", e, this as
IXmlLineInfo
);
950
throw new XmlException(SR.Xml_ReadContentAsFormatException, "Decimal", e, this as
IXmlLineInfo
);
954
throw new XmlException(SR.Xml_ReadContentAsFormatException, "Decimal", e, this as
IXmlLineInfo
);
981
throw new XmlException(SR.Xml_ReadContentAsFormatException, "Int", e, this as
IXmlLineInfo
);
985
throw new XmlException(SR.Xml_ReadContentAsFormatException, "Int", e, this as
IXmlLineInfo
);
989
throw new XmlException(SR.Xml_ReadContentAsFormatException, "Int", e, this as
IXmlLineInfo
);
1016
throw new XmlException(SR.Xml_ReadContentAsFormatException, "Long", e, this as
IXmlLineInfo
);
1020
throw new XmlException(SR.Xml_ReadContentAsFormatException, "Long", e, this as
IXmlLineInfo
);
1024
throw new XmlException(SR.Xml_ReadContentAsFormatException, "Long", e, this as
IXmlLineInfo
);
1051
throw new XmlException(SR.Xml_ReadContentAsFormatException, "String", e, this as
IXmlLineInfo
);
1055
throw new XmlException(SR.Xml_ReadContentAsFormatException, "String", e, this as
IXmlLineInfo
);
1059
throw new XmlException(SR.Xml_ReadContentAsFormatException, "String", e, this as
IXmlLineInfo
);
1094
throw new XmlException(SR.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as
IXmlLineInfo
);
1098
throw new XmlException(SR.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as
IXmlLineInfo
);
1102
throw new XmlException(SR.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as
IXmlLineInfo
);
2494
throw new XmlException(SR.Xml_MixedReadElementContentAs, string.Empty, this as
IXmlLineInfo
);
2503
throw new XmlException(SR.Xml_MixedReadElementContentAs, string.Empty, this as
IXmlLineInfo
);
2758
_lineInfo = _cachingReader as
IXmlLineInfo
;
System\Xml\Core\XsdValidatingReaderAsync.cs (14)
63
throw new XmlException(SR.Xml_ReadContentAsFormatException, "String", e, this as
IXmlLineInfo
);
67
throw new XmlException(SR.Xml_ReadContentAsFormatException, "String", e, this as
IXmlLineInfo
);
71
throw new XmlException(SR.Xml_ReadContentAsFormatException, "String", e, this as
IXmlLineInfo
);
110
throw new XmlException(SR.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as
IXmlLineInfo
);
114
throw new XmlException(SR.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as
IXmlLineInfo
);
118
throw new XmlException(SR.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as
IXmlLineInfo
);
162
throw new XmlException(SR.Xml_ReadContentAsFormatException, "String", e, this as
IXmlLineInfo
);
166
throw new XmlException(SR.Xml_ReadContentAsFormatException, "String", e, this as
IXmlLineInfo
);
170
throw new XmlException(SR.Xml_ReadContentAsFormatException, "String", e, this as
IXmlLineInfo
);
210
throw new XmlException(SR.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as
IXmlLineInfo
);
214
throw new XmlException(SR.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as
IXmlLineInfo
);
218
throw new XmlException(SR.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as
IXmlLineInfo
);
829
throw new XmlException(SR.Xml_MixedReadElementContentAs, string.Empty, this as
IXmlLineInfo
);
841
throw new XmlException(SR.Xml_MixedReadElementContentAs, string.Empty, this as
IXmlLineInfo
);
System\Xml\IXmlLineInfo.cs (4)
21
IXmlLineInfo
? li = o as
IXmlLineInfo
;
35
private readonly
IXmlLineInfo
_lineInfo;
37
public ReaderPositionInfo(
IXmlLineInfo
lineInfo)
System\Xml\Schema\XmlSchemaValidator.cs (3)
115
private
IXmlLineInfo
_positionInfo;
116
private static readonly
IXmlLineInfo
s_dummyPositionInfo = new PositionInfo();
261
public
IXmlLineInfo
LineInfoProvider
System\Xml\Serialization\XmlSerializationReader.cs (1)
1253
if (Reader is
IXmlLineInfo
lineInfo)
System\Xml\Serialization\XmlSerializer.cs (1)
518
if (xmlReader is
IXmlLineInfo
lineInfo)
System\Xml\XmlException.cs (4)
129
internal XmlException(string res, string? arg,
IXmlLineInfo
? lineInfo) :
133
internal XmlException(string res, string? arg, Exception? innerException,
IXmlLineInfo
? lineInfo) :
137
internal XmlException(string res, string?[]? args,
IXmlLineInfo
? lineInfo) :
141
internal XmlException(string res, string?[]? args,
IXmlLineInfo
? lineInfo, string? sourceUri) :
System\Xml\XPath\XPathDocument.cs (2)
157
IXmlLineInfo
? lineInfo;
163
lineInfo = reader as
IXmlLineInfo
;
System\Xml\XPath\XPathNavigatorReader.cs (5)
38
protected
IXmlLineInfo
? lineInfo;
80
IXmlLineInfo
? xli = nav as
IXmlLineInfo
;
111
protected XPathNavigatorReader(XPathNavigator navToRead,
IXmlLineInfo
? xli, IXmlSchemaInfo? xsi)
1120
internal XPathNavigatorReaderWithSI(XPathNavigator navToRead,
IXmlLineInfo
? xli, IXmlSchemaInfo xsi)
System\Xml\Xsl\Xslt\XsltInput.cs (3)
24
private readonly
IXmlLineInfo
? _readerLineInfo;
46
IXmlLineInfo
? xmlLineInfo = reader as
IXmlLineInfo
;
System.Private.Xml.Linq (37)
System\Xml\Linq\XContainer.cs (2)
885
private readonly
IXmlLineInfo
? _lineInfo;
898
_lineInfo = (o & LoadOptions.SetLineInfo) != 0 ? r as
IXmlLineInfo
: null;
System\Xml\Linq\XDocument.cs (2)
493
IXmlLineInfo
? li = reader as
IXmlLineInfo
;
System\Xml\Linq\XElement.cs (2)
2058
IXmlLineInfo
? li = null;
2061
li = r as
IXmlLineInfo
;
System\Xml\Linq\XNodeReader.cs (9)
977
bool
IXmlLineInfo
.HasLineInfo()
991
IXmlLineInfo
? li = _source as
IXmlLineInfo
;
1000
int
IXmlLineInfo
.LineNumber
1020
IXmlLineInfo
? li = _source as
IXmlLineInfo
;
1030
int
IXmlLineInfo
.LinePosition
1050
IXmlLineInfo
? li = _source as
IXmlLineInfo
;
System\Xml\Linq\XObject.cs (3)
385
bool
IXmlLineInfo
.HasLineInfo()
390
int
IXmlLineInfo
.LineNumber
400
int
IXmlLineInfo
.LinePosition
System\Xml\Schema\XNodeValidator.cs (10)
76
IXmlLineInfo
original = SaveLineInfo(source);
233
private
IXmlLineInfo
SaveLineInfo(XObject? source)
235
IXmlLineInfo
previousLineInfo = validator!.LineInfoProvider;
236
validator.LineInfoProvider = source as
IXmlLineInfo
;
240
private void RestoreLineInfo(
IXmlLineInfo
originalLineInfo)
248
IXmlLineInfo
original = SaveLineInfo(a);
262
IXmlLineInfo
original = SaveLineInfo(a);
302
IXmlLineInfo
original = SaveLineInfo(e);
325
IXmlLineInfo
original = SaveLineInfo(n);
344
validator!.LineInfoProvider = t as
IXmlLineInfo
;
System\Xml\XPath\XNodeNavigator.cs (9)
688
bool
IXmlLineInfo
.HasLineInfo()
690
IXmlLineInfo
li = _source as
IXmlLineInfo
;
698
int
IXmlLineInfo
.LineNumber
702
IXmlLineInfo
li = _source as
IXmlLineInfo
;
711
int
IXmlLineInfo
.LinePosition
715
IXmlLineInfo
li = _source as
IXmlLineInfo
;
System.ServiceModel.Syndication (3)
System\ServiceModel\Syndication\FeedUtils.cs (2)
14
IXmlLineInfo
lineInfo = reader as
IXmlLineInfo
;
System\ServiceModel\Syndication\SyndicationFeedFormatter.cs (1)
581
if (reader is
IXmlLineInfo
lineInfo && lineInfo.HasLineInfo())
System.Windows.Forms (1)
System\Resources\ResXResourceReader.cs (1)
331
if (reader is
IXmlLineInfo
lineInfo)
System.Xaml (8)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (2)
1466
IXmlLineInfo
info = Reader as
IXmlLineInfo
;
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlWrappingReader.cs (2)
26
protected
IXmlLineInfo
_readerAsIXmlLineInfo;
180
_readerAsIXmlLineInfo = value as
IXmlLineInfo
;
System\Xaml\Parser\XamlAttribute.cs (1)
29
public XamlAttribute(XamlPropertyName propName, string val,
IXmlLineInfo
lineInfo)
System\Xaml\Parser\XamlScanner.cs (2)
21
IXmlLineInfo
_xmlLineInfo;
46
_xmlLineInfo = settings.ProvideLineInfo ? (xmlReader as
IXmlLineInfo
) : null; //consider removing the "settings" check
System\Xaml\Parser\XamlScannerNode.cs (1)
16
public XamlScannerNode(
IXmlLineInfo
lineInfo)
System.Xml (1)
System.Xml.cs (1)
10
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.
IXmlLineInfo
))]
System.Xml.ReaderWriter (1)
artifacts\obj\System.Xml.ReaderWriter\Debug\net10.0\System.Xml.ReaderWriter.Forwards.cs (1)
9
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.
IXmlLineInfo
))]
VisualBasicSyntaxGenerator (1)
XML\ParseTreeDescription.vb (1)
66
Dim lineInfo = CType(referencingNode,
IXmlLineInfo
)