8 instantiations of XDocumentType
System.Private.Xml.Linq (8)
System\Xml\Linq\XContainer.cs (4)
1009_currentContainer.AddNodeSkipNotify(new XDocumentType(r.LocalName, r.GetAttribute("PUBLIC"), r.GetAttribute("SYSTEM"), r.Value)); 1070_currentContainer.AddNodeSkipNotify(new XDocumentType(r.LocalName, r.GetAttribute("PUBLIC"), r.GetAttribute("SYSTEM"), await r.GetValueAsync().ConfigureAwait(false))); 1176newNode = new XDocumentType(r.LocalName, r.GetAttribute("PUBLIC"), r.GetAttribute("SYSTEM"), r.Value); 1300newNode = new XDocumentType(r.LocalName, r.GetAttribute("PUBLIC"), r.GetAttribute("SYSTEM"), await r.GetValueAsync().ConfigureAwait(false));
System\Xml\Linq\XDocumentType.cs (1)
171return new XDocumentType(this);
System\Xml\Linq\XNode.cs (2)
439return new XDocumentType(reader); 495ret = new XDocumentType(name, publicId, systemId, internalSubset);
System\Xml\Linq\XNodeBuilder.cs (1)
86AddNode(new XDocumentType(name, pubid, sysid, subset));
104 references to XDocumentType
Microsoft.Extensions.AI.Abstractions.Tests (38)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestTypesContext.GetJsonTypeInfo.g.cs (1)
380if (type == typeof(global::System.Xml.Linq.XDocumentType))
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestTypesContext.XDocument.g.cs (3)
73var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Xml.Linq.XDocumentType> 88AttributeProviderFactory = static () => typeof(global::System.Xml.Linq.XDocument).GetProperty("DocumentType", InstanceMemberBindingFlags, null, typeof(global::System.Xml.Linq.XDocumentType), global::System.Array.Empty<global::System.Type>(), null), 91properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Xml.Linq.XDocumentType>(options, info1);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestTypesContext.XDocumentType.g.cs (34)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Xml.Linq.XDocumentType>? _XDocumentType; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Xml.Linq.XDocumentType> XDocumentType 24get => _XDocumentType ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Xml.Linq.XDocumentType>)Options.GetTypeInfo(typeof(global::System.Xml.Linq.XDocumentType)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Xml.Linq.XDocumentType> Create_XDocumentType(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Xml.Linq.XDocumentType>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Xml.Linq.XDocumentType> jsonTypeInfo)) 31var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::System.Xml.Linq.XDocumentType> 41jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::System.Xml.Linq.XDocumentType>(options, objectInfo); 58DeclaringType = typeof(global::System.Xml.Linq.XDocumentType), 60Getter = static obj => ((global::System.Xml.Linq.XDocumentType)obj).InternalSubset, 61Setter = static (obj, value) => ((global::System.Xml.Linq.XDocumentType)obj).InternalSubset = value!, 68AttributeProviderFactory = static () => typeof(global::System.Xml.Linq.XDocumentType).GetProperty("InternalSubset", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 78DeclaringType = typeof(global::System.Xml.Linq.XDocumentType), 80Getter = static obj => ((global::System.Xml.Linq.XDocumentType)obj).Name, 81Setter = static (obj, value) => ((global::System.Xml.Linq.XDocumentType)obj).Name = value!, 88AttributeProviderFactory = static () => typeof(global::System.Xml.Linq.XDocumentType).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 98DeclaringType = typeof(global::System.Xml.Linq.XDocumentType), 100Getter = static obj => ((global::System.Xml.Linq.XDocumentType)obj).NodeType, 108AttributeProviderFactory = static () => typeof(global::System.Xml.Linq.XDocumentType).GetProperty("NodeType", InstanceMemberBindingFlags, null, typeof(global::System.Xml.XmlNodeType), global::System.Array.Empty<global::System.Type>(), null), 118DeclaringType = typeof(global::System.Xml.Linq.XDocumentType), 120Getter = static obj => ((global::System.Xml.Linq.XDocumentType)obj).PublicId, 121Setter = static (obj, value) => ((global::System.Xml.Linq.XDocumentType)obj).PublicId = value!, 128AttributeProviderFactory = static () => typeof(global::System.Xml.Linq.XDocumentType).GetProperty("PublicId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 138DeclaringType = typeof(global::System.Xml.Linq.XDocumentType), 140Getter = static obj => ((global::System.Xml.Linq.XDocumentType)obj).SystemId, 141Setter = static (obj, value) => ((global::System.Xml.Linq.XDocumentType)obj).SystemId = value!, 148AttributeProviderFactory = static () => typeof(global::System.Xml.Linq.XDocumentType).GetProperty("SystemId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 278private void XDocumentTypeSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Xml.Linq.XDocumentType? value) 288writer.WriteString(PropName_InternalSubset, ((global::System.Xml.Linq.XDocumentType)value).InternalSubset); 289writer.WriteString(PropName_Name, ((global::System.Xml.Linq.XDocumentType)value).Name); 291global::System.Text.Json.JsonSerializer.Serialize(writer, ((global::System.Xml.Linq.XDocumentType)value).NodeType, XmlNodeType); 292writer.WriteString(PropName_PublicId, ((global::System.Xml.Linq.XDocumentType)value).PublicId); 293writer.WriteString(PropName_SystemId, ((global::System.Xml.Linq.XDocumentType)value).SystemId);
netstandard (1)
netstandard.cs (1)
2272[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Linq.XDocumentType))]
Shared.Tests (38)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestTypesContext.GetJsonTypeInfo.g.cs (1)
400if (type == typeof(global::System.Xml.Linq.XDocumentType))
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestTypesContext.XDocument.g.cs (3)
73var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Xml.Linq.XDocumentType> 88AttributeProviderFactory = static () => typeof(global::System.Xml.Linq.XDocument).GetProperty("DocumentType", InstanceMemberBindingFlags, null, typeof(global::System.Xml.Linq.XDocumentType), global::System.Array.Empty<global::System.Type>(), null), 91properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Xml.Linq.XDocumentType>(options, info1);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestTypesContext.XDocumentType.g.cs (34)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Xml.Linq.XDocumentType>? _XDocumentType; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Xml.Linq.XDocumentType> XDocumentType 24get => _XDocumentType ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Xml.Linq.XDocumentType>)Options.GetTypeInfo(typeof(global::System.Xml.Linq.XDocumentType)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Xml.Linq.XDocumentType> Create_XDocumentType(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Xml.Linq.XDocumentType>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Xml.Linq.XDocumentType> jsonTypeInfo)) 31var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::System.Xml.Linq.XDocumentType> 41jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::System.Xml.Linq.XDocumentType>(options, objectInfo); 58DeclaringType = typeof(global::System.Xml.Linq.XDocumentType), 60Getter = static obj => ((global::System.Xml.Linq.XDocumentType)obj).InternalSubset, 61Setter = static (obj, value) => ((global::System.Xml.Linq.XDocumentType)obj).InternalSubset = value!, 68AttributeProviderFactory = static () => typeof(global::System.Xml.Linq.XDocumentType).GetProperty("InternalSubset", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 78DeclaringType = typeof(global::System.Xml.Linq.XDocumentType), 80Getter = static obj => ((global::System.Xml.Linq.XDocumentType)obj).Name, 81Setter = static (obj, value) => ((global::System.Xml.Linq.XDocumentType)obj).Name = value!, 88AttributeProviderFactory = static () => typeof(global::System.Xml.Linq.XDocumentType).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 100DeclaringType = typeof(global::System.Xml.Linq.XDocumentType), 102Getter = static obj => ((global::System.Xml.Linq.XDocumentType)obj).NodeType, 110AttributeProviderFactory = static () => typeof(global::System.Xml.Linq.XDocumentType).GetProperty("NodeType", InstanceMemberBindingFlags, null, typeof(global::System.Xml.XmlNodeType), global::System.Array.Empty<global::System.Type>(), null), 120DeclaringType = typeof(global::System.Xml.Linq.XDocumentType), 122Getter = static obj => ((global::System.Xml.Linq.XDocumentType)obj).PublicId, 123Setter = static (obj, value) => ((global::System.Xml.Linq.XDocumentType)obj).PublicId = value!, 130AttributeProviderFactory = static () => typeof(global::System.Xml.Linq.XDocumentType).GetProperty("PublicId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 140DeclaringType = typeof(global::System.Xml.Linq.XDocumentType), 142Getter = static obj => ((global::System.Xml.Linq.XDocumentType)obj).SystemId, 143Setter = static (obj, value) => ((global::System.Xml.Linq.XDocumentType)obj).SystemId = value!, 150AttributeProviderFactory = static () => typeof(global::System.Xml.Linq.XDocumentType).GetProperty("SystemId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 281private void XDocumentTypeSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Xml.Linq.XDocumentType? value) 291writer.WriteString(PropName_InternalSubset, ((global::System.Xml.Linq.XDocumentType)value).InternalSubset); 292writer.WriteString(PropName_Name, ((global::System.Xml.Linq.XDocumentType)value).Name); 294global::System.Text.Json.JsonSerializer.Serialize(writer, ((global::System.Xml.Linq.XDocumentType)value).NodeType, XmlNodeType); 295writer.WriteString(PropName_PublicId, ((global::System.Xml.Linq.XDocumentType)value).PublicId); 296writer.WriteString(PropName_SystemId, ((global::System.Xml.Linq.XDocumentType)value).SystemId);
System.Private.Xml.Linq (25)
System\Xml\Linq\XDocument.cs (5)
20/// A Document Type Declaration (DTD), see <see cref="XDocumentType"/> 54/// <item>Zero or one <see cref="XDocumentType"/> objects</item> 81/// <item>Zero or one <see cref="XDocumentType"/> objects</item> 124public XDocumentType? DocumentType 128return GetFirstNode<XDocumentType>();
System\Xml\Linq\XDocumentType.cs (9)
21/// Initializes an empty instance of the <see cref="XDocumentType"/> class. 35/// <param name="other"><see cref="XDocumentType"/> object to copy from.</param> 36public XDocumentType(XDocumentType other) 139/// Write this <see cref="XDocumentType"/> to the passed in <see cref="XmlWriter"/>. 142/// The <see cref="XmlWriter"/> to write this <see cref="XDocumentType"/> to. 152/// Write this <see cref="XDocumentType"/> to the passed in <see cref="XmlWriter"/>. 155/// The <see cref="XmlWriter"/> to write this <see cref="XDocumentType"/> to. 176XDocumentType? other = node as XDocumentType;
System\Xml\Linq\XElement.cs (1)
2126if (node is XDocumentType) throw new ArgumentException(SR.Format(SR.Argument_AddNode, XmlNodeType.DocumentType));
System\Xml\Linq\XNode.cs (2)
26/// <see cref="XDocumentType"/> 597/// target and data. Two <see cref="XDocumentType"/> nodes are equal if the have the
System\Xml\Linq\XNodeEqualityComparer.cs (2)
34/// target and data. Two <see cref="XDocumentType"/> nodes are equal if the have the 73/// target and data. Two <see cref="XDocumentType"/> nodes are equal if the have the
System\Xml\Linq\XNodeReader.cs (5)
219XDocumentType? n = _source as XDocumentType; 379return ((XDocumentType)o).InternalSubset ?? string.Empty; 496XDocumentType? n = _source as XDocumentType;
System\Xml\XPath\XNodeNavigator.cs (1)
927if (node is XDocumentType) throw new ArgumentException(SR.Format(SR.Argument_CreateNavigator, XmlNodeType.DocumentType));
System.Xml.Linq (1)
System.Xml.Linq.cs (1)
14[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Linq.XDocumentType))]
System.Xml.XDocument (1)
src\runtime\artifacts\obj\System.Xml.XDocument\Release\net11.0\System.Xml.XDocument.Forwards.cs (1)
13[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Linq.XDocumentType))]