File: System\Xml\Schema\XmlSchemaInclude.cs
Web Access
Project: src\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.Xml.Serialization;
 
namespace System.Xml.Schema
{
    public class XmlSchemaInclude : XmlSchemaExternal
    {
        private XmlSchemaAnnotation? _annotation;
 
        public XmlSchemaInclude()
        {
            Compositor = Compositor.Include;
        }
 
        [XmlElement("annotation", typeof(XmlSchemaAnnotation))]
        public XmlSchemaAnnotation? Annotation
        {
            get { return _annotation; }
            set { _annotation = value; }
        }
 
        internal override void AddAnnotation(XmlSchemaAnnotation annotation)
        {
            _annotation = annotation;
        }
    }
}