XmlSchemaGroup.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Xml / System / Xml / schema / XmlSchemaGroup.cs / 1 / XmlSchemaGroup.cs

                            //------------------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
// [....] 
//-----------------------------------------------------------------------------
 
namespace System.Xml.Schema { 

    using System.Xml.Serialization; 

    /// 
    /// 
    ///    [To be supplied.] 
    /// 
    public class XmlSchemaGroup : XmlSchemaAnnotated { 
        string name; 
        XmlSchemaGroupBase particle;
        XmlSchemaParticle canonicalParticle; 
        XmlQualifiedName qname = XmlQualifiedName.Empty;
        XmlSchemaGroup redefined;
        int selfReferenceCount;
 
        /// 
        ///  
        ///    [To be supplied.] 
        /// 
        [XmlAttribute("name")] 
        public string Name {
            get { return name; }
            set { name = value; }
        } 

        ///  
        ///  
        ///    [To be supplied.]
        ///  
        [XmlElement("choice", typeof(XmlSchemaChoice)),
         XmlElement("all", typeof(XmlSchemaAll)),
         XmlElement("sequence", typeof(XmlSchemaSequence))]
        public XmlSchemaGroupBase Particle { 
            get { return particle; }
            set { particle = value; } 
        } 

        [XmlIgnore] 
        public XmlQualifiedName QualifiedName {
            get { return qname; }
        }
 
        [XmlIgnore]
        internal XmlSchemaParticle CanonicalParticle { 
            get { return canonicalParticle; } 
            set { canonicalParticle = value; }
        } 

        [XmlIgnore]
        internal XmlSchemaGroup Redefined {
            get { return redefined; } 
            set { redefined = value; }
        } 
 
        [XmlIgnore]
        internal int SelfReferenceCount { 
            get { return selfReferenceCount; }
            set { selfReferenceCount = value; }
        }
 
        [XmlIgnore]
        internal override string NameAttribute { 
            get { return Name; } 
            set { Name = value; }
        } 

        internal void SetQualifiedName(XmlQualifiedName value) {
            qname = value;
        } 

        internal override XmlSchemaObject Clone() { 
            XmlSchemaGroup newGroup = (XmlSchemaGroup)MemberwiseClone(); 
            if (XmlSchemaComplexType.HasParticleRef(this.particle)) {
                newGroup.particle = XmlSchemaComplexType.CloneParticle(this.particle) as XmlSchemaGroupBase; 
            }
            newGroup.canonicalParticle = XmlSchemaParticle.Empty;
            return newGroup;
        } 
    }
} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK