| File: System\Xml\Schema\XmlSchemaAnnotation.cs | Web Access |
| Project: src\runtime\src\libraries\System.Private.Xml\src\System.Private.Xml.csproj (System.Private.Xml) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Collections; using System.Xml.Serialization; namespace System.Xml.Schema { public class XmlSchemaAnnotation : XmlSchemaObject { private string? _id; private readonly XmlSchemaObjectCollection _items = new XmlSchemaObjectCollection(); private XmlAttribute[]? _moreAttributes; [XmlAttribute("id", DataType = "ID")] public string? Id { get { return _id; } set { _id = value; } } [XmlElement("documentation", typeof(XmlSchemaDocumentation)), XmlElement("appinfo", typeof(XmlSchemaAppInfo))] public XmlSchemaObjectCollection Items { get { return _items; } } [XmlAnyAttribute] public XmlAttribute[]? UnhandledAttributes { get { return _moreAttributes; } set { _moreAttributes = value; } } [XmlIgnore] internal override string? IdAttribute { get { return Id; } set { Id = value; } } internal override void SetUnhandledAttributes(XmlAttribute[] moreAttributes) { _moreAttributes = moreAttributes; } } }