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

  1. //------------------------------------------------------------------------------
  2. // <copyright file="XmlSchemaSequence.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\XmlSchemaSequence.uex' path='docs/doc[@for="XmlSchemaSequence"]/*' />
  22.     /// <devdoc>
  23.     /// <para>[To be supplied.]</para>
  24.     /// </devdoc>
  25.     public class XmlSchemaSequence : XmlSchemaGroupBase
  26.     {
  27.         XmlSchemaObjectCollection items = new XmlSchemaObjectCollection();
  28.        
  29.         /// <include file='doc\XmlSchemaSequence.uex' path='docs/doc[@for="XmlSchemaSequence.Items"]/*' />
  30.         /// <devdoc>
  31.         /// <para>[To be supplied.]</para>
  32.         /// </devdoc>
  33.         [XmlElement("element", typeof(XmlSchemaElement)), XmlElement("group", typeof(XmlSchemaGroupRef)), XmlElement("choice", typeof(XmlSchemaChoice)), XmlElement("sequence", typeof(XmlSchemaSequence)), XmlElement("any", typeof(XmlSchemaAny))]
  34.         public override XmlSchemaObjectCollection Items {
  35.             get { return items; }
  36.         }
  37.        
  38.         internal override bool IsEmpty {
  39.             get { return base.IsEmpty || items.Count == 0; }
  40.         }
  41.        
  42.         internal override void SetItems(XmlSchemaObjectCollection newItems)
  43.         {
  44.             items = newItems;
  45.         }
  46.     }
  47. }

Developer Fusion