Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- TabletDeviceInfo.cs
- ContentPosition.cs
- BamlTreeUpdater.cs
- ChangePasswordDesigner.cs
- StrongNameMembershipCondition.cs
- ValidatingPropertiesEventArgs.cs
- StringStorage.cs
- EntityViewGenerationAttribute.cs
- UnmanagedHandle.cs
- EventLogEntry.cs
- HttpRequestCacheValidator.cs
- PointAnimationUsingKeyFrames.cs
- ItemMap.cs
- ModelItemDictionary.cs
- BoolExpressionVisitors.cs
- AssemblyCollection.cs
- EventWaitHandleSecurity.cs
- DeflateEmulationStream.cs
- XmlMembersMapping.cs
- ComboBoxAutomationPeer.cs
- SiteMapNodeCollection.cs
- XsdBuilder.cs
- CounterSet.cs
- BaseDataList.cs
- Frame.cs
- SslStream.cs
- HtmlInputImage.cs
- TypefaceMap.cs
- Converter.cs
- TableLayoutSettingsTypeConverter.cs
- Dynamic.cs
- CqlLexerHelpers.cs
- ListParagraph.cs
- BitmapEffectState.cs
- DataGridViewSelectedColumnCollection.cs
- HostingEnvironmentSection.cs
- HandleCollector.cs
- ConfigurationStrings.cs
- ToolbarAUtomationPeer.cs
- VerbConverter.cs
- UDPClient.cs
- PageSetupDialog.cs
- TextEffect.cs
- DesignerListAdapter.cs
- ConfigurationErrorsException.cs
- CacheEntry.cs
- WebControlsSection.cs
- IsolatedStorageFileStream.cs
- Size.cs
- CompiledAction.cs
- ConnectionsZoneAutoFormat.cs
- BrowserCapabilitiesFactoryBase.cs
- RequestCacheValidator.cs
- ViewgenContext.cs
- XmlNamedNodeMap.cs
- TextRangeAdaptor.cs
- AttributeEmitter.cs
- DependentList.cs
- CommandLineParser.cs
- XmlSchemaExternal.cs
- XmlHelper.cs
- ActivationServices.cs
- FileAuthorizationModule.cs
- PolyBezierSegment.cs
- SaveFileDialog.cs
- Module.cs
- ParentQuery.cs
- View.cs
- Latin1Encoding.cs
- ServicesSection.cs
- HealthMonitoringSection.cs
- SystemDropShadowChrome.cs
- ResXFileRef.cs
- DataTableMappingCollection.cs
- PropagatorResult.cs
- InstalledFontCollection.cs
- SizeLimitedCache.cs
- MessageBox.cs
- Base64Encoder.cs
- DataList.cs
- HttpProfileBase.cs
- LinqDataSource.cs
- Utils.cs
- SkewTransform.cs
- CompoundFileStreamReference.cs
- FixUpCollection.cs
- XmlComplianceUtil.cs
- SqlClientMetaDataCollectionNames.cs
- SqlDataSourceStatusEventArgs.cs
- SizeConverter.cs
- SelectionRange.cs
- Type.cs
- ProfileInfo.cs
- Rfc2898DeriveBytes.cs
- SqlDataSourceFilteringEventArgs.cs
- FrameworkPropertyMetadata.cs
- DelayedRegex.cs
- JsonObjectDataContract.cs
- SoapAttributeOverrides.cs
- RequestChannel.cs