Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / Xml / System / Xml / schema / XmlSchemaAttributeGroup.cs / 1 / 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
- OutputWindow.cs
- CacheAxisQuery.cs
- WorkflowCompensationBehavior.cs
- RadioButtonFlatAdapter.cs
- OleDbEnumerator.cs
- BuiltInExpr.cs
- RotateTransform3D.cs
- MsmqMessageProperty.cs
- NameScopePropertyAttribute.cs
- Console.cs
- AllMembershipCondition.cs
- ClientBuildManagerTypeDescriptionProviderBridge.cs
- ObjectManager.cs
- SafeLibraryHandle.cs
- MenuStrip.cs
- TextEndOfParagraph.cs
- ConditionChanges.cs
- SpellerHighlightLayer.cs
- ProcessInfo.cs
- StorageEndPropertyMapping.cs
- PageRequestManager.cs
- COM2IDispatchConverter.cs
- EntityContainerAssociationSet.cs
- _Rfc2616CacheValidators.cs
- DataKeyArray.cs
- ContourSegment.cs
- ObfuscationAttribute.cs
- ReverseInheritProperty.cs
- ContainerParagraph.cs
- RandomNumberGenerator.cs
- updateconfighost.cs
- CompositeControl.cs
- SafeEventLogReadHandle.cs
- XmlNamespaceManager.cs
- WinCategoryAttribute.cs
- InternalPermissions.cs
- ExecutedRoutedEventArgs.cs
- UnSafeCharBuffer.cs
- XmlLanguage.cs
- AuthenticationService.cs
- CompositeFontParser.cs
- PathStreamGeometryContext.cs
- SafeSecurityHandles.cs
- TimerElapsedEvenArgs.cs
- Helpers.cs
- DPAPIProtectedConfigurationProvider.cs
- RoutedUICommand.cs
- BackgroundWorker.cs
- DocumentReferenceCollection.cs
- ObfuscationAttribute.cs
- WindowsSolidBrush.cs
- Light.cs
- XmlElementAttribute.cs
- ChannelBase.cs
- IntMinMaxAggregationOperator.cs
- ManipulationStartedEventArgs.cs
- ActivationArguments.cs
- InkPresenterAutomationPeer.cs
- Stack.cs
- MutexSecurity.cs
- httpserverutility.cs
- SBCSCodePageEncoding.cs
- UnsignedPublishLicense.cs
- WsatConfiguration.cs
- AlignmentYValidation.cs
- MILUtilities.cs
- ToolboxItemFilterAttribute.cs
- New.cs
- CodeExporter.cs
- FastEncoderWindow.cs
- IntSecurity.cs
- XmlIlTypeHelper.cs
- CreateUserWizard.cs
- PrinterResolution.cs
- LogExtent.cs
- KeyTime.cs
- Serialization.cs
- NoClickablePointException.cs
- SHA384.cs
- ErrorHandler.cs
- DbConnectionStringBuilder.cs
- UpdateCommand.cs
- Base64WriteStateInfo.cs
- Italic.cs
- UnsafeMethods.cs
- Conditional.cs
- DropShadowBitmapEffect.cs
- ObfuscateAssemblyAttribute.cs
- arabicshape.cs
- ColumnBinding.cs
- HMACRIPEMD160.cs
- Point.cs
- ConsoleKeyInfo.cs
- TypedDatasetGenerator.cs
- DataMisalignedException.cs
- InstanceStoreQueryResult.cs
- PeerContact.cs
- InternalBufferOverflowException.cs
- SQLDoubleStorage.cs
- ValueOfAction.cs