internal XType(XDomain domain, XName name) { Domain = domain ?? throw new ArgumentNullException("Domain cannot be null"); Name = name; if (name == null) { throw new InvalidOperationException($"Null XName assigned to {this}."); } }
internal XWriterImpl(XDomain domain) : base(domain) { }
/// <summary> /// Create a new <see cref="XReader"/> belonging to the given <see cref="XDomain"/>. /// </summary> /// <param name="domain">An <see cref="XDomain"/> object that will provide the <see cref="XReader"/> with /// <see cref="XType{T}"/>s.</param> protected XReader(XDomain domain) =>
internal XReaderImpl(XDomain domain) : base(domain) { }
/// <summary> /// Create a new <see cref="XWriter"/> belonging to the given <see cref="XDomain"/>. /// </summary> /// <param name="domain">An <see cref="XDomain"/> object that will provide the <see cref="XWriter"/> with /// <see cref="XType{T}"/>s.</param> protected XWriter(XDomain domain) =>
internal void CreateDomain(XDomain domain) => ForEachComponent((comp) => comp.CreateDomain(domain));