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

  1. //------------------------------------------------------------------------------
  2. // <copyright file="XmlSchemaComplexContent.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\XmlSchemaComplexContent.uex' path='docs/doc[@for="XmlSchemaComplexContent"]/*' />
  22.     /// <devdoc>
  23.     /// <para>[To be supplied.]</para>
  24.     /// </devdoc>
  25.     public class XmlSchemaComplexContent : XmlSchemaContentModel
  26.     {
  27.         XmlSchemaContent content;
  28.         bool isMixed;
  29.         bool hasMixedAttribute;
  30.        
  31.         /// <include file='doc\XmlSchemaComplexContent.uex' path='docs/doc[@for="XmlSchemaComplexContent.IsMixed"]/*' />
  32.         /// <devdoc>
  33.         /// <para>[To be supplied.]</para>
  34.         /// </devdoc>
  35.         [XmlAttribute("mixed")]
  36.         public bool IsMixed {
  37.             get { return isMixed; }
  38.             set {
  39.                 isMixed = value;
  40.                 hasMixedAttribute = true;
  41.             }
  42.         }
  43.        
  44.         /// <include file='doc\XmlSchemaComplexContent.uex' path='docs/doc[@for="XmlSchemaComplexContent.Content"]/*' />
  45.         /// <devdoc>
  46.         /// <para>[To be supplied.]</para>
  47.         /// </devdoc>
  48.         [XmlElement("restriction", typeof(XmlSchemaComplexContentRestriction)), XmlElement("extension", typeof(XmlSchemaComplexContentExtension))]
  49.         public override XmlSchemaContent Content {
  50.             get { return content; }
  51.             set { content = value; }
  52.         }
  53.        
  54.         [XmlIgnore()]
  55.         internal bool HasMixedAttribute {
  56.             get { return hasMixedAttribute; }
  57.         }
  58.        
  59.     }
  60.    
  61. }

Developer Fusion