Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ReaderWriterLock.cs
- CheckPair.cs
- SqlVisitor.cs
- CheckBox.cs
- PriorityRange.cs
- Vector3DAnimationBase.cs
- FrameworkReadOnlyPropertyMetadata.cs
- PixelFormats.cs
- WindowsEditBoxRange.cs
- ThreadAttributes.cs
- ServiceReference.cs
- ToolStripControlHost.cs
- ProviderConnectionPoint.cs
- WebPartRestoreVerb.cs
- MdiWindowListStrip.cs
- ServiceChannel.cs
- _SpnDictionary.cs
- IncrementalReadDecoders.cs
- DefaultHttpHandler.cs
- SafeLocalAllocation.cs
- ProfileModule.cs
- DataControlFieldTypeEditor.cs
- IOException.cs
- GeneralTransform3DTo2D.cs
- WebRequest.cs
- OciLobLocator.cs
- ToReply.cs
- HttpRequest.cs
- SafeNativeMethods.cs
- WindowsButton.cs
- MailAddress.cs
- WindowsUpDown.cs
- WebPartMenu.cs
- OracleTransaction.cs
- StylusPointCollection.cs
- HwndSourceKeyboardInputSite.cs
- BufferBuilder.cs
- ProtectedProviderSettings.cs
- Pointer.cs
- XamlReaderHelper.cs
- MailWriter.cs
- Point.cs
- KeyValuePairs.cs
- DelegatedStream.cs
- TextEditor.cs
- GatewayIPAddressInformationCollection.cs
- RuntimeConfigurationRecord.cs
- ServiceModelReg.cs
- ReachPageContentSerializer.cs
- SessionStateUtil.cs
- ByteArrayHelperWithString.cs
- TemplateKeyConverter.cs
- QilInvokeEarlyBound.cs
- DataGridTableCollection.cs
- SubclassTypeValidatorAttribute.cs
- Viewport3DVisual.cs
- CryptoHandle.cs
- UIElementAutomationPeer.cs
- NavigationHelper.cs
- OpCodes.cs
- RequestCacheEntry.cs
- PropertyInformation.cs
- XmlSchemaGroupRef.cs
- ColumnResizeUndoUnit.cs
- ProviderSettingsCollection.cs
- TextParagraphView.cs
- XmlAttributes.cs
- PhonemeConverter.cs
- ReadOnlyDictionary.cs
- QuerySettings.cs
- MethodSignatureGenerator.cs
- MailHeaderInfo.cs
- _Events.cs
- GPStream.cs
- EntryPointNotFoundException.cs
- GridLengthConverter.cs
- XmlUnspecifiedAttribute.cs
- SnapshotChangeTrackingStrategy.cs
- EmbeddedMailObject.cs
- DataBoundControlHelper.cs
- Command.cs
- OrthographicCamera.cs
- MimeReflector.cs
- ExternalDataExchangeService.cs
- SqlBooleanizer.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- BindingNavigator.cs
- UnsafeNativeMethods.cs
- TreeView.cs
- ClientScriptManager.cs
- WinCategoryAttribute.cs
- Trace.cs
- JsonObjectDataContract.cs
- SemanticTag.cs
- DictionaryEntry.cs
- OracleCommandSet.cs
- ExecutionTracker.cs
- KernelTypeValidation.cs
- PageCatalogPart.cs
- PropertyGrid.cs