Exemplo n.º 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}.");
            }
        }
Exemplo n.º 2
0
 internal XWriterImpl(XDomain domain) : base(domain)
 {
 }
Exemplo n.º 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) =>
Exemplo n.º 4
0
		internal XReaderImpl(XDomain domain) : base(domain) { }
Exemplo n.º 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) =>
Exemplo n.º 6
0
 internal void CreateDomain(XDomain domain) => ForEachComponent((comp) => comp.CreateDomain(domain));