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

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

Developer Fusion