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