32 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
Microsoft.Maui.Controls (1)
XmlLineInfo.cs (1)
7 public class XmlLineInfo : IXmlLineInfo
Microsoft.Maui.Controls.SourceGen (2)
src\Controls\src\Core\XmlLineInfo.cs (1)
7 public class XmlLineInfo : IXmlLineInfo
src\Controls\src\Xaml\XamlNode.cs (1)
88 abstract class BaseNode : IXmlLineInfo, INode
Microsoft.Maui.Controls.Xaml (1)
XamlNode.cs (1)
88 abstract class BaseNode : IXmlLineInfo, INode
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 {
484 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;
Microsoft.Maui.Controls (13)
BindablePropertyConverter.cs (3)
32 IXmlLineInfo lineinfo = null; 97 BindableProperty ConvertFrom(Type type, string propertyName, IXmlLineInfo lineinfo) 127 Type FindTypeForVisualState(IProvideParentValues parentValueProvider, IXmlLineInfo lineInfo)
IXmlLineInfoProvider.cs (1)
8 IXmlLineInfo XmlLineInfo { get; }
ResourceDictionary.cs (2)
28 internal static Action<ResourceDictionary, Uri, string, Assembly, System.Xml.IXmlLineInfo> s_setAndLoadSource; 57 public void SetAndLoadSource(Uri value, string resourcePath, Assembly assembly, global::System.Xml.IXmlLineInfo lineInfo)
StyleSheets\StyleSheet.cs (2)
26 public static StyleSheet FromResource(string resourcePath, Assembly assembly, IXmlLineInfo lineInfo = null) 120 private static string GetResource(string resourcePath, Assembly assembly, object target, IXmlLineInfo lineInfo)
Xaml\ValueConverterProvider.cs (1)
18 var lineInfo = (serviceProvider.GetService(typeof(IXmlLineInfoProvider)) is IXmlLineInfoProvider lineInfoProvider) ? lineInfoProvider.XmlLineInfo : new XmlLineInfo();
XamlParseException.cs (4)
45 public XamlParseException(string message, IXmlLineInfo xmlInfo, Exception innerException = null) 53 public IXmlLineInfo XmlInfo { get; private set; } 56 static string FormatMessage(string message, IXmlLineInfo xmlinfo) 63 static IXmlLineInfo GetLineInfo(IServiceProvider serviceProvider)
Microsoft.Maui.Controls.Build.Tasks (67)
BindablePropertyReferenceExtensions.cs (1)
12 public static TypeReference GetBindablePropertyType(this FieldReference bpRef, XamlCache cache, IXmlLineInfo iXmlLineInfo, ModuleDefinition module)
BuildException.cs (3)
12 public IXmlLineInfo XmlInfo { get; private set; } 18 public BuildException(BuildExceptionCode code, IXmlLineInfo xmlInfo, Exception innerException, params object[] args) 31 static string FormatMessage(BuildExceptionCode code, IXmlLineInfo xmlinfo, object[] args)
CompiledConverters\BindablePropertyConverter.cs (1)
84 static string FindTypeNameForVisualState(IElementNode parent, IXmlLineInfo lineInfo)
CompiledConverters\TypeTypeConverter.cs (1)
31 var typeRef = xmlType.GetTypeReference(context.Cache, module, (IXmlLineInfo)node);
CompiledMarkupExtensions\DataTemplateExtension.cs (2)
23 throw new BuildException(BuildExceptionCode.PropertyMissing, node as IXmlLineInfo, null, "TypeName", typeof(Microsoft.Maui.Controls.Xaml.DataTemplateExtension)); 26 ?? throw new BuildException(BuildExceptionCode.TypeResolution, node as IXmlLineInfo, null, valueNode.Value);
CompiledMarkupExtensions\StaticExtension.cs (2)
21 throw new BuildException(BuildExceptionCode.XStaticSyntax, node as IXmlLineInfo, null); 32 throw new BuildException(BuildExceptionCode.XStaticResolution, node as IXmlLineInfo, null, membername, typename);
CompiledMarkupExtensions\StaticResourceExtension.cs (6)
24 throw new BuildException(BuildExceptionCode.StaticResourceSyntax, eNode as IXmlLineInfo, null, null); 116 var parentType = module.ImportReference((node.Parent as IElementNode).XmlType.GetTypeReference(context.Cache, module, (IXmlLineInfo)node)); 118 var bpRef = SetPropertiesVisitor.GetBindablePropertyReference(parentType, propertyName.NamespaceURI, ref localName, out _, context, (IXmlLineInfo)node); 122 var targetTypeRef = module.ImportReference(bpRef.GetBindablePropertyType(context.Cache, node as IXmlLineInfo, module)); 173 var parentType = module.ImportReference(parentNode.XmlType.GetTypeReference(context.Cache, module, (IXmlLineInfo)node)); 179 (IXmlLineInfo)node);
CompiledMarkupExtensions\TypeExtension.cs (2)
23 throw new BuildException(BuildExceptionCode.PropertyMissing, node as IXmlLineInfo, null, "TypeName", typeof(Microsoft.Maui.Controls.Xaml.TypeExtension)); 33 context.TypeExtensions[node] = typeref ?? throw new BuildException(BuildExceptionCode.TypeResolution, node as IXmlLineInfo, null, valueNode.Value);
ExpandMarkupsVisitor.cs (2)
84 IXmlLineInfo xmlLineInfo) 123 IXmlLineInfo xmlLineInfo = null;
NodeILExtensions.cs (5)
136 static T TryFormat<T>(Func<string, T> func, IXmlLineInfo lineInfo, string str) 340 static Instruction PushParsedEnum(XamlCache cache, TypeReference enumRef, string value, IXmlLineInfo lineInfo) 442 var xmlLineInfo = node as IXmlLineInfo; 719 if (node is IXmlLineInfo && createAllServices || requiredServices.Contains(module.ImportReference(context.Cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls.Xaml", "IXmlLineInfoProvider")), TypeRefComparer.Default))
SetNamescopesAndRegisterNamesVisitor.cs (1)
155 throw new BuildException(BuildExceptionCode.NamescopeDuplicate, node as IXmlLineInfo, null, str);
SetPropertiesVisitor.cs (33)
499 throw new BuildException(XDataTypeSyntax, dataTypeNode as IXmlLineInfo, null); 504 dtXType = TypeArgumentsParser.ParseSingle(dataType, node.NamespaceResolver, dataTypeNode as IXmlLineInfo) 505 ?? throw new BuildException(XDataTypeSyntax, dataTypeNode as IXmlLineInfo, null); 510 throw new BuildException(XmlnsUndeclared, dataTypeNode as IXmlLineInfo, null, prefix); 513 var tSourceRef = dtXType.GetTypeReference(context.Cache, module, (IXmlLineInfo)node); 517 if (!TryParsePath(context, path, tSourceRef, node as IXmlLineInfo, module, out var properties)) 597 && parentNode.XmlType.TryGetTypeReference(context.Cache, module, (IXmlLineInfo)node, out TypeReference parentTypeRef) 604 static bool TryParsePath(ILContext context, string path, TypeReference tSourceRef, IXmlLineInfo lineInfo, ModuleDefinition module, out IList<(PropertyDefinition property, TypeReference propDeclTypeRef, string indexArg)> pathProperties) 696 static IEnumerable<Instruction> DigProperties(IEnumerable<(PropertyDefinition property, TypeReference propDeclTypeRef, string indexArg)> properties, Dictionary<TypeReference, VariableDefinition> locs, Func<Instruction> fallback, IXmlLineInfo lineInfo, ModuleDefinition module) 813 }, node as IXmlLineInfo, module)); 903 }, node as IXmlLineInfo, module)); 939 throw new BuildException(BindingIndexerParse, node as IXmlLineInfo, null, lastIndexArg, lastProperty.Name); 1029 il.Append(DigProperties(properties.Take(i), locs, null, node as IXmlLineInfo, module)); 1102 public static IEnumerable<Instruction> SetPropertyValue(VariableDefinition parent, XmlName propertyName, INode valueNode, ILContext context, IXmlLineInfo iXmlLineInfo) 1134 public static IEnumerable<Instruction> GetPropertyValue(VariableDefinition parent, XmlName propertyName, ILContext context, IXmlLineInfo lineInfo, out TypeReference propertyType) 1152 static FieldReference GetBindablePropertyReference(VariableDefinition parent, string namespaceURI, ref string localName, out bool attached, ILContext context, IXmlLineInfo iXmlLineInfo) 1155 public static FieldReference GetBindablePropertyReference(TypeReference bpOwnerType, string namespaceURI, ref string localName, out bool attached, ILContext context, IXmlLineInfo iXmlLineInfo) 1184 static IEnumerable<Instruction> ConnectEvent(VariableDefinition parent, string localName, INode valueNode, IXmlLineInfo iXmlLineInfo, ILContext context) 1284 static IEnumerable<Instruction> SetDynamicResource(VariableDefinition parent, FieldReference bpRef, IElementNode elementNode, IXmlLineInfo iXmlLineInfo, ILContext context) 1323 static IEnumerable<Instruction> SetBinding(VariableDefinition parent, FieldReference bpRef, IElementNode elementNode, IXmlLineInfo iXmlLineInfo, ILContext context) 1343 static bool CanSetValue(FieldReference bpRef, bool attached, INode node, IXmlLineInfo iXmlLineInfo, ILContext context) 1375 static bool CanGetValue(VariableDefinition parent, FieldReference bpRef, bool attached, IXmlLineInfo iXmlLineInfo, ILContext context, out TypeReference propertyType) 1390 static IEnumerable<Instruction> SetValue(VariableDefinition parent, FieldReference bpRef, INode node, IXmlLineInfo iXmlLineInfo, ILContext context) 1456 static IEnumerable<Instruction> GetValue(VariableDefinition parent, FieldReference bpRef, IXmlLineInfo iXmlLineInfo, ILContext context, out TypeReference propertyType) 1462 static IEnumerable<Instruction> GetValue(VariableDefinition parent, FieldReference bpRef, IXmlLineInfo iXmlLineInfo, ILContext context) 1534 static IEnumerable<Instruction> Set(VariableDefinition parent, string localName, INode node, IXmlLineInfo iXmlLineInfo, ILContext context) 1586 static IEnumerable<Instruction> Get(VariableDefinition parent, string localName, IXmlLineInfo iXmlLineInfo, ILContext context, out TypeReference propertyType) 1609 static bool CanAdd(VariableDefinition parent, XmlName propertyName, INode valueNode, IXmlLineInfo lineInfo, ILContext context) 1645 static bool CanAddToResourceDictionary(VariableDefinition parent, TypeReference collectionType, IElementNode node, IXmlLineInfo lineInfo, ILContext context) 1672 static IEnumerable<Instruction> Add(VariableDefinition parent, XmlName propertyName, INode node, IXmlLineInfo iXmlLineInfo, ILContext context) 1700 static IEnumerable<Instruction> AddToResourceDictionary(VariableDefinition parent, IElementNode node, IXmlLineInfo lineInfo, ILContext context) 1735 ILContext context, IXmlLineInfo lineInfo) 1749 IXmlLineInfo xmlLineInfo)
XamlTask.cs (2)
59 var rootnode = new ILRootNode(xmlType, typeReference, reader as IXmlNamespaceResolver, ((IXmlLineInfo)reader).LineNumber, ((IXmlLineInfo)reader).LinePosition);
XmlTypeExtensions.cs (6)
57 XmlType xmlType = TypeArgumentsParser.ParseSingle(typeName, node.NamespaceResolver, (IXmlLineInfo)node); 58 return GetTypeReference(xmlType, cache, module, node as IXmlLineInfo); 62 throw new BuildException(BuildExceptionCode.InvalidXaml, node as IXmlLineInfo, null, typeName); 66 public static TypeReference GetTypeReference(XamlCache cache, string namespaceURI, string typename, ModuleDefinition module, IXmlLineInfo xmlInfo) 71 public static bool TryGetTypeReference(this XmlType xmlType, XamlCache cache, ModuleDefinition module, IXmlLineInfo xmlInfo, out TypeReference typeReference) 92 public static TypeReference GetTypeReference(this XmlType xmlType, XamlCache cache, ModuleDefinition module, IXmlLineInfo xmlInfo)
Microsoft.Maui.Controls.SourceGen (8)
src\Controls\src\Core\IXmlLineInfoProvider.cs (1)
8 IXmlLineInfo XmlLineInfo { get; }
src\Controls\src\Core\XamlParseException.cs (4)
45 public XamlParseException(string message, IXmlLineInfo xmlInfo, Exception innerException = null) 53 public IXmlLineInfo XmlInfo { get; private set; } 56 static string FormatMessage(string message, IXmlLineInfo xmlinfo) 63 static IXmlLineInfo GetLineInfo(IServiceProvider serviceProvider)
src\Controls\src\Xaml\TypeArgumentsParser.cs (3)
10 public static IList<XmlType> ParseExpression(string expression, IXmlNamespaceResolver resolver, IXmlLineInfo lineInfo) 21 public static XmlType ParseSingle(string expression, IXmlNamespaceResolver resolver, IXmlLineInfo lineInfo) 33 static XmlType Parse(string match, ref string remaining, IXmlNamespaceResolver resolver, IXmlLineInfo lineinfo)
Microsoft.Maui.Controls.Xaml (70)
ApplyPropertiesVisitor.cs (17)
143 xpe = new XamlParseException("x:Key expects a string literal.", node as IXmlLineInfo); 205 xpe = new XamlParseException("x:Key expects a string literal.", node as IXmlLineInfo); 300 object rootElement, IXmlLineInfo lineInfo) 318 static BindableProperty GetBindableProperty(Type elementType, string localName, IXmlLineInfo lineInfo) 330 static object GetTargetProperty(object xamlelement, XmlName propertyName, object rootElement, IXmlLineInfo lineInfo) 346 public static void SetPropertyValue(object xamlelement, XmlName propertyName, object value, object rootElement, INode node, HydrationContext context, IXmlLineInfo lineInfo) 368 public static bool TrySetPropertyValue(object element, XmlName propertyName, string xKey, object value, object rootElement, IXmlLineInfo lineInfo, IServiceProvider serviceProvider, out Exception xpe) 431 public static object GetPropertyValue(object xamlElement, XmlName propertyName, object rootElement, IXmlLineInfo lineInfo, out Exception xpe, out object targetProperty) 455 static bool TryConnectEvent(object element, string localName, bool attached, object value, object rootElement, IXmlLineInfo lineInfo, out Exception exception) 521 static bool TrySetDynamicResource(object element, BindableProperty property, object value, IXmlLineInfo lineInfo, out Exception exception) 542 static bool TrySetBinding(object element, BindableProperty property, string localName, object value, IXmlLineInfo lineInfo, out BindingBase binding, out Exception exception) 574 static bool TrySetValue(object element, BindableProperty property, bool attached, object value, IXmlLineInfo lineInfo, IServiceProvider serviceProvider, out Exception exception) 637 static bool TryGetValue(object element, BindableProperty property, bool attached, out object value, IXmlLineInfo lineInfo, out Exception exception, out object targetProperty) 655 static bool TrySetProperty(object element, string localName, object value, IXmlLineInfo lineInfo, IServiceProvider serviceProvider, object rootElement, out Exception exception) 687 static bool TryGetProperty(object element, string localName, out object value, IXmlLineInfo lineInfo, object rootElement, out Exception exception, out object targetProperty) 732 static bool TryAddToProperty(object element, XmlName propertyName, object value, string xKey, IXmlLineInfo lineInfo, IServiceProvider serviceProvider, object rootElement, out Exception exception) 762 static bool TryAddToResourceDictionary(ResourceDictionary resourceDictionary, object value, string xKey, IXmlLineInfo lineInfo, out Exception exception)
CreateValuesVisitor.cs (5)
173 VisualDiagnostics.RegisterSourceInfo(value, new Uri($"{path};assembly={assemblyName}", UriKind.Relative), ((IXmlLineInfo)node).LineNumber, ((IXmlLineInfo)node).LinePosition); 192 VisualDiagnostics.RegisterSourceInfo(rnode.Root, new Uri($"{path};assembly={assemblyName}", UriKind.Relative), ((IXmlLineInfo)node).LineNumber, ((IXmlLineInfo)node).LinePosition); 319 throw new XamlParseException($"The Property {propname} is required to create a {ctorInfo.DeclaringType.FullName} object.", enode as IXmlLineInfo);
ExpandMarkupsVisitor.cs (2)
77 INode ParseExpression(ref string expression, IXmlNamespaceResolver nsResolver, IXmlLineInfo xmlLineInfo, INode node, 128 IXmlLineInfo xmlLineInfo = null;
IXmlLineInfoExtensions.cs (2)
7public static IXmlLineInfo Clone(this IXmlLineInfo xmlLineInfo)
MarkupExtensions\DataTemplateExtension.cs (2)
21 var li = (serviceProvider.GetService(typeof(IXmlLineInfoProvider)) is IXmlLineInfoProvider lip) ? lip.XmlLineInfo : new XmlLineInfo(); 28 var lineInfo = (serviceProvider.GetService(typeof(IXmlLineInfoProvider)) is IXmlLineInfoProvider lineInfoProvider) ? lineInfoProvider.XmlLineInfo : new XmlLineInfo();
MarkupExtensions\StaticResourceExtension.cs (1)
27 var xmlLineInfo = serviceProvider.GetService(typeof(IXmlLineInfoProvider)) is IXmlLineInfoProvider xmlLineInfoProvider ? xmlLineInfoProvider.XmlLineInfo : null;
MarkupExtensions\StyleSheetExtension.cs (1)
21 IXmlLineInfo lineInfo;
MarkupExtensions\TypeExtension.cs (1)
20 var li = (serviceProvider.GetService(typeof(IXmlLineInfoProvider)) is IXmlLineInfoProvider lip) ? lip.XmlLineInfo : new XmlLineInfo();
ResourceDictionaryHelpers.cs (4)
20 public static void LoadFromSource(ResourceDictionary rd, Uri source, string resourcePath, Assembly assembly, IXmlLineInfo lineInfo) 27 internal static void LoadFromSource(ResourceDictionary rd, string value, Type rootType, IXmlLineInfo lineInfo) 39 internal static void SetAndLoadSource(ResourceDictionary rd, Uri value, string resourcePath, Assembly assembly, IXmlLineInfo lineInfo) 49 static ResourceDictionary CreateFromResource(string resourcePath, Assembly assembly, IXmlLineInfo lineInfo)
TypeArgumentsParser.cs (3)
10 public static IList<XmlType> ParseExpression(string expression, IXmlNamespaceResolver resolver, IXmlLineInfo lineInfo) 21 public static XmlType ParseSingle(string expression, IXmlNamespaceResolver resolver, IXmlLineInfo lineInfo) 33 static XmlType Parse(string match, ref string remaining, IXmlNamespaceResolver resolver, IXmlLineInfo lineinfo)
XamlLoader.cs (6)
78 var rootnode = new RuntimeRootNode(new XmlType(reader.NamespaceURI, reader.Name, null), view, (IXmlNamespaceResolver)reader) { LineNumber = ((IXmlLineInfo)reader).LineNumber, LinePosition = ((IXmlLineInfo)reader).LinePosition }; 121 var rootnode = new RuntimeRootNode(new XmlType(reader.NamespaceURI, reader.Name, typeArguments), null, (IXmlNamespaceResolver)reader) { LineNumber = ((IXmlLineInfo)reader).LineNumber, LinePosition = ((IXmlLineInfo)reader).LinePosition }; 162 RootNode rootNode = new RuntimeRootNode(new XmlType(reader.NamespaceURI, reader.Name, null), null, (IXmlNamespaceResolver)reader) { LineNumber = ((IXmlLineInfo)reader).LineNumber, LinePosition = ((IXmlLineInfo)reader).LinePosition };
XamlParser.cs (19)
80 throw new XamlParseException($"'{reader.Name}' is a duplicate property name.", ((IXmlLineInfo)reader).Clone()); 84 Debug.WriteLine($"Unexpected empty element '<{reader.Name} />'", (IXmlLineInfo)reader); 95 throw new XamlParseException($"'x:Arguments' is a duplicate directive name.", ((IXmlLineInfo)reader).Clone()); 106 throw new XamlParseException($"Multiple child elements in {node.XmlType.Name}", ((IXmlLineInfo)reader).Clone()); 156 return new ListNode(nodes, (IXmlNamespaceResolver)reader, ((IXmlLineInfo)reader).LineNumber, 157 ((IXmlLineInfo)reader).LinePosition); 162 var elementXmlInfo = (IXmlLineInfo)reader; 181 node = new ValueNode(reader.Value.Trim(), (IXmlNamespaceResolver)reader, ((IXmlLineInfo)reader).LineNumber, 182 ((IXmlLineInfo)reader).LinePosition); 192 throw new XamlParseException("Closing PropertyElement expected", ((IXmlLineInfo)reader).Clone()); 231 value = TypeArgumentsParser.ParseExpression((string)value, (IXmlNamespaceResolver)reader, (IXmlLineInfo)reader); 322 return new ValueNode(valueString.Substring(2), (IXmlNamespaceResolver)reader, ((IXmlLineInfo)reader).LineNumber, 323 ((IXmlLineInfo)reader).LinePosition); 327 return new MarkupNode(valueString.Trim(), reader as IXmlNamespaceResolver, ((IXmlLineInfo)reader).LineNumber, 328 ((IXmlLineInfo)reader).LinePosition); 330 return new ValueNode(value, (IXmlNamespaceResolver)reader, ((IXmlLineInfo)reader).LineNumber, 331 ((IXmlLineInfo)reader).LinePosition); 364 public static Type GetElementType(XmlType xmlType, IXmlLineInfo xmlInfo, Assembly currentAssembly,
XamlServiceProvider.cs (7)
34 if (node is IXmlLineInfo xmlLineInfo) 233 IXmlLineInfo xmlLineInfo = null; 244 internal delegate Type GetTypeFromXmlName(XmlType xmlType, IXmlLineInfo xmlInfo, Assembly currentAssembly, out XamlParseException exception); 256 public XmlLineInfoProvider(IXmlLineInfo xmlLineInfo) => XmlLineInfo = xmlLineInfo; 258 public IXmlLineInfo XmlLineInfo { get; } 332 new XmlLineInfo(((IXmlLineInfo)node).LineNumber, ((IXmlLineInfo)node).LinePosition),
netstandard (1)
netstandard.cs (1)
2258[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.IXmlLineInfo))]
PresentationBuildTasks (8)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (2)
852IXmlLineInfo xmlLineInfo = xmlReader as IXmlLineInfo;
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (2)
5242_xmlLineInfo = _xmlReader as IXmlLineInfo; 6812IXmlLineInfo _xmlLineInfo;
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (2)
1464IXmlLineInfo 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)
330if (reader is IXmlLineInfo lineInfo)
System.Xaml (8)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (2)
1464IXmlLineInfo 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)
27public XamlAttribute(XamlPropertyName propName, string val, IXmlLineInfo lineInfo)
System\Xaml\Parser\XamlScanner.cs (2)
18IXmlLineInfo _xmlLineInfo; 43_xmlLineInfo = settings.ProvideLineInfo ? (xmlReader as IXmlLineInfo) : null; //consider removing the "settings" check
System\Xaml\Parser\XamlScannerNode.cs (1)
15public 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)