The Labs \ Source Viewer \ SSCLI \ System.Xml.Schema \ XmlSchemaSimpleTypeList

  1. //------------------------------------------------------------------------------
  2. // <copyright file="XmlSchemaSimpleTypeList.cs" company="Microsoft">
  3. //
  4. // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
  5. //
  6. // The use and distribution terms for this software are contained in the file
  7. // named license.txt, which can be found in the root of this distribution.
  8. // By using this software in any fashion, you are agreeing to be bound by the
  9. // terms of this license.
  10. //
  11. // You must not remove this notice, or any other, from this software.
  12. //
  13. // </copyright>
  14. // <owner current="true" primary="true">priyal</owner>
  15. //------------------------------------------------------------------------------
  16. namespace System.Xml.Schema
  17. {
  18.    
  19.     using System.Xml.Serialization;
  20.    
  21.     /// <include file='doc\XmlSchemaSimpleTypeList.uex' path='docs/doc[@for="XmlSchemaSimpleTypeList"]/*' />
  22.     /// <devdoc>
  23.     /// <para>[To be supplied.]</para>
  24.     /// </devdoc>
  25.     public class XmlSchemaSimpleTypeList : XmlSchemaSimpleTypeContent
  26.     {
  27.         XmlQualifiedName itemTypeName = XmlQualifiedName.Empty;
  28.         XmlSchemaSimpleType itemType;
  29.         XmlSchemaSimpleType baseItemType;
  30.         //Compiled
  31.         /// <include file='doc\XmlSchemaSimpleTypeList.uex' path='docs/doc[@for="XmlSchemaSimpleTypeList.ItemTypeName"]/*' />
  32.         /// <devdoc>
  33.         /// <para>[To be supplied.]</para>
  34.         /// </devdoc>
  35.         [XmlAttribute("itemType")]
  36.         public XmlQualifiedName ItemTypeName {
  37.             get { return itemTypeName; }
  38.             set { itemTypeName = (value == null ? XmlQualifiedName.Empty : value); }
  39.         }
  40.        
  41.         /// <include file='doc\XmlSchemaSimpleTypeList.uex' path='docs/doc[@for="XmlSchemaSimpleTypeList.BaseType"]/*' />
  42.         /// <devdoc>
  43.         /// <para>[To be supplied.]</para>
  44.         /// </devdoc>
  45.         [XmlElement("simpleType", typeof(XmlSchemaSimpleType))]
  46.         public XmlSchemaSimpleType ItemType {
  47.             get { return itemType; }
  48.             set { itemType = value; }
  49.         }
  50.        
  51.         //Compiled
  52.         /// <include file='doc\XmlSchemaSimpleTypeList.uex' path='docs/doc[@for="XmlSchemaSimpleTypeList.BaseItemType"]/*' />
  53.         [XmlIgnore()]
  54.         public XmlSchemaSimpleType BaseItemType {
  55.             get { return baseItemType; }
  56.             set { baseItemType = value; }
  57.         }
  58.        
  59.         internal override XmlSchemaObject Clone()
  60.         {
  61.             XmlSchemaSimpleTypeList newList = (XmlSchemaSimpleTypeList)MemberwiseClone();
  62.             newList.ItemTypeName = itemTypeName.Clone();
  63.             return newList;
  64.         }
  65.     }
  66.    
  67. }

Developer Fusion