Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / schema / XmlSchemaAttributeGroup.cs / 1305376 / XmlSchemaAttributeGroup.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Xml.Schema { using System.Collections; using System.Xml.Serialization; ////// /// public class XmlSchemaAttributeGroup : XmlSchemaAnnotated { string name; XmlSchemaObjectCollection attributes = new XmlSchemaObjectCollection(); XmlSchemaAnyAttribute anyAttribute; XmlQualifiedName qname = XmlQualifiedName.Empty; XmlSchemaAttributeGroup redefined; XmlSchemaObjectTable attributeUses; XmlSchemaAnyAttribute attributeWildcard; int selfReferenceCount; ///[To be supplied.] ////// /// [XmlAttribute("name")] public string Name { get { return name; } set { name = value; } } ///[To be supplied.] ////// /// [XmlElement("attribute", typeof(XmlSchemaAttribute)), XmlElement("attributeGroup", typeof(XmlSchemaAttributeGroupRef))] public XmlSchemaObjectCollection Attributes { get { return attributes; } } ///[To be supplied.] ////// /// [XmlElement("anyAttribute")] public XmlSchemaAnyAttribute AnyAttribute { get { return anyAttribute; } set { anyAttribute = value; } } [XmlIgnore] public XmlQualifiedName QualifiedName { get { return qname; } } [XmlIgnore] internal XmlSchemaObjectTable AttributeUses { get { if (attributeUses == null) { attributeUses = new XmlSchemaObjectTable(); } return attributeUses; } } [XmlIgnore] internal XmlSchemaAnyAttribute AttributeWildcard { get { return attributeWildcard; } set { attributeWildcard = value; } } ///[To be supplied.] ///[XmlIgnore] public XmlSchemaAttributeGroup RedefinedAttributeGroup { get { return redefined; } } [XmlIgnore] internal XmlSchemaAttributeGroup 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() { XmlSchemaAttributeGroup newGroup = (XmlSchemaAttributeGroup)MemberwiseClone(); if (XmlSchemaComplexType.HasAttributeQNameRef(this.attributes)) { //If a ref/type name is present newGroup.attributes = XmlSchemaComplexType.CloneAttributes(this.attributes); //Clear compiled tables newGroup.attributeUses = null; } return newGroup; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Xml.Schema { using System.Collections; using System.Xml.Serialization; ////// /// public class XmlSchemaAttributeGroup : XmlSchemaAnnotated { string name; XmlSchemaObjectCollection attributes = new XmlSchemaObjectCollection(); XmlSchemaAnyAttribute anyAttribute; XmlQualifiedName qname = XmlQualifiedName.Empty; XmlSchemaAttributeGroup redefined; XmlSchemaObjectTable attributeUses; XmlSchemaAnyAttribute attributeWildcard; int selfReferenceCount; ///[To be supplied.] ////// /// [XmlAttribute("name")] public string Name { get { return name; } set { name = value; } } ///[To be supplied.] ////// /// [XmlElement("attribute", typeof(XmlSchemaAttribute)), XmlElement("attributeGroup", typeof(XmlSchemaAttributeGroupRef))] public XmlSchemaObjectCollection Attributes { get { return attributes; } } ///[To be supplied.] ////// /// [XmlElement("anyAttribute")] public XmlSchemaAnyAttribute AnyAttribute { get { return anyAttribute; } set { anyAttribute = value; } } [XmlIgnore] public XmlQualifiedName QualifiedName { get { return qname; } } [XmlIgnore] internal XmlSchemaObjectTable AttributeUses { get { if (attributeUses == null) { attributeUses = new XmlSchemaObjectTable(); } return attributeUses; } } [XmlIgnore] internal XmlSchemaAnyAttribute AttributeWildcard { get { return attributeWildcard; } set { attributeWildcard = value; } } ///[To be supplied.] ///[XmlIgnore] public XmlSchemaAttributeGroup RedefinedAttributeGroup { get { return redefined; } } [XmlIgnore] internal XmlSchemaAttributeGroup 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() { XmlSchemaAttributeGroup newGroup = (XmlSchemaAttributeGroup)MemberwiseClone(); if (XmlSchemaComplexType.HasAttributeQNameRef(this.attributes)) { //If a ref/type name is present newGroup.attributes = XmlSchemaComplexType.CloneAttributes(this.attributes); //Clear compiled tables newGroup.attributeUses = null; } return newGroup; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ConversionContext.cs
- SmtpFailedRecipientsException.cs
- fixedPageContentExtractor.cs
- TypedElement.cs
- HttpChannelBindingToken.cs
- MenuScrollingVisibilityConverter.cs
- EdmRelationshipRoleAttribute.cs
- DrawingContextFlattener.cs
- CommunicationObject.cs
- ListBox.cs
- ThreadAbortException.cs
- SecurityDescriptor.cs
- EmbeddedMailObjectsCollection.cs
- SerializerDescriptor.cs
- OdbcEnvironmentHandle.cs
- Control.cs
- RectIndependentAnimationStorage.cs
- OdbcReferenceCollection.cs
- XmlWriterSettings.cs
- XmlAttributes.cs
- TextRangeAdaptor.cs
- PageThemeParser.cs
- DrawTreeNodeEventArgs.cs
- __ComObject.cs
- BuildProviderAppliesToAttribute.cs
- LongTypeConverter.cs
- _SecureChannel.cs
- TypeLoadException.cs
- EventListener.cs
- QilVisitor.cs
- GeneralTransform3DGroup.cs
- XmlLoader.cs
- Gdiplus.cs
- MouseEventArgs.cs
- BrowserCapabilitiesFactoryBase.cs
- CriticalHandle.cs
- ImportContext.cs
- LayoutSettings.cs
- _AutoWebProxyScriptEngine.cs
- CodeNamespaceImport.cs
- XmlKeywords.cs
- ValidationError.cs
- EntityConnectionStringBuilderItem.cs
- TypeDefinition.cs
- SqlParameter.cs
- Int16AnimationUsingKeyFrames.cs
- StatusBarPanelClickEvent.cs
- Win32PrintDialog.cs
- ContactManager.cs
- Certificate.cs
- IsolatedStorageException.cs
- UnsafePeerToPeerMethods.cs
- DesignerOptionService.cs
- EdmSchemaAttribute.cs
- ConnectionOrientedTransportBindingElement.cs
- Sql8ConformanceChecker.cs
- PostBackOptions.cs
- Enum.cs
- TransformerInfo.cs
- XmlUTF8TextReader.cs
- CodeAttributeDeclarationCollection.cs
- BuildProviderCollection.cs
- WindowsClaimSet.cs
- ExpressionVisitorHelpers.cs
- DateTimeFormatInfoScanner.cs
- _UriTypeConverter.cs
- ColumnResult.cs
- WebServiceClientProxyGenerator.cs
- Propagator.JoinPropagator.cs
- __Error.cs
- ReturnType.cs
- XmlSchemaValidationException.cs
- DesignerCapabilities.cs
- DateTimeConverter.cs
- ScriptControlDescriptor.cs
- TranslateTransform.cs
- MultitargetUtil.cs
- EdmTypeAttribute.cs
- InplaceBitmapMetadataWriter.cs
- ImportCatalogPart.cs
- XmlKeywords.cs
- UrlPath.cs
- FixedHighlight.cs
- Wizard.cs
- Walker.cs
- XslAstAnalyzer.cs
- FocusChangedEventArgs.cs
- NamedPermissionSet.cs
- ValidatorCompatibilityHelper.cs
- Attributes.cs
- TriggerActionCollection.cs
- DataGridCommandEventArgs.cs
- BevelBitmapEffect.cs
- ToolboxItemCollection.cs
- BufferedWebEventProvider.cs
- ListViewCommandEventArgs.cs
- FilteredAttributeCollection.cs
- XPathPatternBuilder.cs
- DefaultPropertyAttribute.cs
- Logging.cs