Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Xml / System / Xml / schema / XmlSchemaSimpleTypeUnion.cs / 1 / XmlSchemaSimpleTypeUnion.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Xml.Schema { using System.Xml.Serialization; ////// /// public class XmlSchemaSimpleTypeUnion : XmlSchemaSimpleTypeContent { XmlSchemaObjectCollection baseTypes = new XmlSchemaObjectCollection(); XmlQualifiedName[] memberTypes; XmlSchemaSimpleType[] baseMemberTypes; // Compiled ///[To be supplied.] ////// /// [XmlElement("simpleType", typeof(XmlSchemaSimpleType))] public XmlSchemaObjectCollection BaseTypes { get { return baseTypes; } } ///[To be supplied.] ///[XmlAttribute("memberTypes")] public XmlQualifiedName[] MemberTypes { get { return memberTypes; } set { memberTypes = value; } } //Compiled Information /// [XmlIgnore] public XmlSchemaSimpleType[] BaseMemberTypes { get { return baseMemberTypes; } } internal void SetBaseMemberTypes(XmlSchemaSimpleType[] baseMemberTypes) { this.baseMemberTypes = baseMemberTypes; } internal override XmlSchemaObject Clone() { if (memberTypes != null && memberTypes.Length > 0) { //Only if the union has MemberTypes defined XmlSchemaSimpleTypeUnion newUnion = (XmlSchemaSimpleTypeUnion)MemberwiseClone(); XmlQualifiedName[] newQNames = new XmlQualifiedName[memberTypes.Length]; for (int i = 0; i < memberTypes.Length; i++) { newQNames[i] = memberTypes[i].Clone(); } newUnion.MemberTypes = newQNames; return newUnion; } return this; } } } // 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
- CompModSwitches.cs
- ProfileServiceManager.cs
- MenuItem.cs
- HtmlContainerControl.cs
- DataGridColumn.cs
- SerializationStore.cs
- ButtonChrome.cs
- RegistryKey.cs
- PagesSection.cs
- LayoutTableCell.cs
- UrlMappingsSection.cs
- SafeHandles.cs
- PackageRelationshipCollection.cs
- DebugHandleTracker.cs
- ScrollEventArgs.cs
- PackageRelationshipCollection.cs
- XPathQilFactory.cs
- LinqDataSourceInsertEventArgs.cs
- Journal.cs
- DeclaredTypeElement.cs
- TrackPointCollection.cs
- NativeWrapper.cs
- XmlSignatureProperties.cs
- TargetException.cs
- Evaluator.cs
- SelectorAutomationPeer.cs
- BasicBrowserDialog.cs
- MarkedHighlightComponent.cs
- TextElementEnumerator.cs
- StorageMappingItemCollection.cs
- DoubleLinkListEnumerator.cs
- ExpressionUtilities.cs
- RSAOAEPKeyExchangeDeformatter.cs
- AttributeAction.cs
- SerializationInfoEnumerator.cs
- ThreadSafeList.cs
- HostAdapter.cs
- SelectionRangeConverter.cs
- StatusStrip.cs
- X509Extension.cs
- SamlSecurityToken.cs
- CSharpCodeProvider.cs
- TextServicesContext.cs
- EventRouteFactory.cs
- Viewport3DVisual.cs
- ConfigXmlReader.cs
- EventDescriptor.cs
- WebDescriptionAttribute.cs
- CategoryGridEntry.cs
- COM2IProvidePropertyBuilderHandler.cs
- PackageRelationship.cs
- ConsumerConnectionPoint.cs
- SqlProviderManifest.cs
- TypeConverterHelper.cs
- CodeDOMUtility.cs
- WebServiceClientProxyGenerator.cs
- XmlChildNodes.cs
- CodeParameterDeclarationExpression.cs
- DataGridViewRowPrePaintEventArgs.cs
- ServiceOperationListItem.cs
- InvalidOperationException.cs
- WebPartManagerInternals.cs
- ErrorWebPart.cs
- XPathDescendantIterator.cs
- Stopwatch.cs
- Constraint.cs
- newinstructionaction.cs
- ExecutionEngineException.cs
- XmlValidatingReader.cs
- UInt64Storage.cs
- WebBrowserEvent.cs
- SerializationSectionGroup.cs
- MetafileEditor.cs
- CompleteWizardStep.cs
- ReadOnlyKeyedCollection.cs
- Point4DConverter.cs
- PathFigure.cs
- MemberCollection.cs
- UIPropertyMetadata.cs
- XmlSchemaAll.cs
- PickDesigner.xaml.cs
- CodeArgumentReferenceExpression.cs
- TypedRowGenerator.cs
- SectionRecord.cs
- HitTestFilterBehavior.cs
- DocumentsTrace.cs
- ThreadStateException.cs
- PropertyNames.cs
- CheckBoxList.cs
- initElementDictionary.cs
- OrthographicCamera.cs
- ListCollectionView.cs
- WebExceptionStatus.cs
- CodeTypeParameter.cs
- SafeBitVector32.cs
- UseLicense.cs
- Component.cs
- DeadCharTextComposition.cs
- XmlCodeExporter.cs
- DBSchemaRow.cs