Exemple #1
0
        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}.");
            }
        }
Exemple #2
0
 internal XWriterImpl(XDomain domain) : base(domain)
 {
 }
Exemple #3
0
 /// <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) { }
Exemple #5
0
 /// <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) =>
Exemple #6
0
 internal void CreateDomain(XDomain domain) => ForEachComponent((comp) => comp.CreateDomain(domain));