File: System\Xml\Schema\XmlSchemaSimpleTypeList.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 XmlSchemaSimpleTypeList : XmlSchemaSimpleTypeContent
    {
        private XmlQualifiedName _itemTypeName = XmlQualifiedName.Empty;
        private XmlSchemaSimpleType? _itemType;
        private XmlSchemaSimpleType? _baseItemType; //Compiled
 
        [XmlAttribute("itemType")]
        public XmlQualifiedName ItemTypeName
        {
            get { return _itemTypeName; }
            set { _itemTypeName = value ?? XmlQualifiedName.Empty; }
        }
 
        [XmlElement("simpleType", typeof(XmlSchemaSimpleType))]
        public XmlSchemaSimpleType? ItemType
        {
            get { return _itemType; }
            set { _itemType = value; }
        }
 
        //Compiled
        [XmlIgnore]
        public XmlSchemaSimpleType? BaseItemType
        {
            get { return _baseItemType; }
            set { _baseItemType = value; }
        }
 
        internal override XmlSchemaObject Clone()
        {
            XmlSchemaSimpleTypeList newList = (XmlSchemaSimpleTypeList)MemberwiseClone();
            newList.ItemTypeName = _itemTypeName.Clone();
            return newList;
        }
    }
}