32 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
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)
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 {
484 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
;
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)
7
public 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)
852
IXmlLineInfo
xmlLineInfo = xmlReader as
IXmlLineInfo
;
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (2)
5242
_xmlLineInfo = _xmlReader as
IXmlLineInfo
;
6812
IXmlLineInfo
_xmlLineInfo;
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (2)
1464
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)
330
if (reader is
IXmlLineInfo
lineInfo)
System.Xaml (8)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (2)
1464
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)
27
public XamlAttribute(XamlPropertyName propName, string val,
IXmlLineInfo
lineInfo)
System\Xaml\Parser\XamlScanner.cs (2)
18
IXmlLineInfo
_xmlLineInfo;
43
_xmlLineInfo = settings.ProvideLineInfo ? (xmlReader as
IXmlLineInfo
) : null; //consider removing the "settings" check
System\Xaml\Parser\XamlScannerNode.cs (1)
15
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
)