1 instantiation of XmlConfigurationElement
Microsoft.Extensions.Configuration.Xml (1)
XmlStreamConfigurationProvider.cs (1)
63
var element = new
XmlConfigurationElement
(reader.LocalName, GetName(reader));
23 references to XmlConfigurationElement
Microsoft.Extensions.Configuration.Xml (23)
XmlConfigurationElement.cs (2)
23
public IDictionary<string, List<
XmlConfigurationElement
>>? ChildrenBySiblingName { get; set; }
28
public
XmlConfigurationElement
? SingleChild { get; set; }
XmlStreamConfigurationProvider.cs (21)
49
XmlConfigurationElement
? root = null;
54
var currentPath = new Stack<
XmlConfigurationElement
>();
63
var
element = new XmlConfigurationElement(reader.LocalName, GetName(reader));
71
var
parent = currentPath.Peek();
79
siblings = new List<
XmlConfigurationElement
>();
94
var children = new Dictionary<string, List<
XmlConfigurationElement
>>(StringComparer.OrdinalIgnoreCase);
99
children.Add(element.SiblingName, new List<
XmlConfigurationElement
>
107
children.Add(parent.SingleChild.SiblingName, new List<
XmlConfigurationElement
> { parent.SingleChild });
108
children.Add(element.SiblingName, new List<
XmlConfigurationElement
> { element });
131
XmlConfigurationElement
parent = currentPath.Pop();
153
XmlConfigurationElement
parent = currentPath.Peek();
199
private static void ReadAttributes(XmlReader reader,
XmlConfigurationElement
element)
255
private static Dictionary<string, string?> ProvideConfiguration(
XmlConfigurationElement
? root)
278
void ProcessElement(Prefix prefix,
XmlConfigurationElement
element)
287
void ProcessElementAttributes(Prefix prefix,
XmlConfigurationElement
element)
305
void ProcessElementContent(Prefix prefix,
XmlConfigurationElement
element)
315
void ProcessElementChildren(Prefix prefix,
XmlConfigurationElement
element)
319
var
child = element.SingleChild;
336
var
child = childrenWithSameSiblingName[0];
345
var
child = childrenWithSameSiblingName[i];
353
void ProcessElementChild(Prefix prefix,
XmlConfigurationElement
child, int? index)