Class ElementRegistry
The element registry: one name — one contribution, the union of the core set and the
package extensions of a concrete installation. A duplicate name is a hard build error, never
a silent override; the parser, the schema and the catalog all read this one list.
public sealed class ElementRegistry
Inheritance
Properties
Contributions
Every registered contribution — the one list the schema and the catalog read.
public IReadOnlyCollection<IXmlElementContribution> Contributions { get; }
Names
Every registered element name (for diagnostics and the "did you mean" hint).
public IReadOnlyCollection<string> Names { get; }
Methods
Add(IXmlElementContribution)
Registers one contribution. A duplicate element name is refused loudly.
public void Add(IXmlElementContribution contribution)
CreateDefault(IReadOnlyList<IXmlElementContribution>?)
Builds the registry: the core contributions plus the supplied extensions.
public static ElementRegistry CreateDefault(IReadOnlyList<IXmlElementContribution>? extensions = null)
Find(string)
The contribution for a local element name, or null.
public IXmlElementContribution? Find(string localName)