1 //------------------------------------------------------------------------------
2 // <copyright file="XmlSchemaChoice.cs" company="Microsoft">
3 // Copyright (c) Microsoft Corporation. All rights reserved.
5 // <owner current="true" primary="true">Microsoft</owner>
6 //------------------------------------------------------------------------------
8 namespace System
.Xml
.Schema
{
10 using System
.Collections
;
11 using System
.Xml
.Serialization
;
13 /// <include file='doc\XmlSchemaChoice.uex' path='docs/doc[@for="XmlSchemaChoice"]/*' />
15 /// <para>[To be supplied.]</para>
17 public class XmlSchemaChoice
: XmlSchemaGroupBase
{
18 XmlSchemaObjectCollection items
= new XmlSchemaObjectCollection();
20 /// <include file='doc\XmlSchemaChoice.uex' path='docs/doc[@for="XmlSchemaChoice.Items"]/*' />
22 /// <para>[To be supplied.]</para>
24 [XmlElement("element", typeof(XmlSchemaElement
)),
25 XmlElement("group", typeof(XmlSchemaGroupRef
)),
26 XmlElement("choice", typeof(XmlSchemaChoice
)),
27 XmlElement("sequence", typeof(XmlSchemaSequence
)),
28 XmlElement("any", typeof(XmlSchemaAny
))]
29 public override XmlSchemaObjectCollection Items
{
33 internal override bool IsEmpty
{
34 get { return base.IsEmpty /*|| items.Count == 0*/; }
37 internal override void SetItems(XmlSchemaObjectCollection newItems
) {