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
- HttpCapabilitiesSectionHandler.cs
- UnaryExpression.cs
- MsmqIntegrationProcessProtocolHandler.cs
- WebPartCancelEventArgs.cs
- XmlSerializerNamespaces.cs
- InheritanceAttribute.cs
- MenuRenderer.cs
- TypefaceMetricsCache.cs
- XmlnsPrefixAttribute.cs
- ProcessModule.cs
- BitmapPalette.cs
- DragDeltaEventArgs.cs
- DefaultDiscoveryServiceExtension.cs
- FontSource.cs
- ApplicationServicesHostFactory.cs
- SettingsProviderCollection.cs
- DbConnectionPoolGroupProviderInfo.cs
- Directory.cs
- WebControlsSection.cs
- PointValueSerializer.cs
- AccessDataSource.cs
- TemplatedMailWebEventProvider.cs
- TextBoxView.cs
- WebPartEditorOkVerb.cs
- AutomationPeer.cs
- EmbeddedMailObjectCollectionEditor.cs
- DispatcherFrame.cs
- FilteredReadOnlyMetadataCollection.cs
- WebBrowserUriTypeConverter.cs
- DispatcherExceptionEventArgs.cs
- QueryRewriter.cs
- LongTypeConverter.cs
- ListItemConverter.cs
- ExtensionWindow.cs
- IdlingCommunicationPool.cs
- NameObjectCollectionBase.cs
- PropertyInfoSet.cs
- ScriptMethodAttribute.cs
- EmptyReadOnlyDictionaryInternal.cs
- BaseCAMarshaler.cs
- EdmType.cs
- DataGridViewRowsRemovedEventArgs.cs
- PropertyManager.cs
- Constants.cs
- TextOutput.cs
- TemplateBindingExpression.cs
- ItemDragEvent.cs
- LoaderAllocator.cs
- followingsibling.cs
- DrawingAttributeSerializer.cs
- DecimalConverter.cs
- PathFigureCollection.cs
- SQLDoubleStorage.cs
- PerfProviderCollection.cs
- DataGridViewRowCollection.cs
- CatalogPartChrome.cs
- PropertyInfoSet.cs
- DirectoryGroupQuery.cs
- ByteConverter.cs
- ParameterModifier.cs
- DiffuseMaterial.cs
- EntitySetBaseCollection.cs
- XmlSubtreeReader.cs
- ArrayWithOffset.cs
- VerificationAttribute.cs
- TextTreeUndo.cs
- DispatchWrapper.cs
- ImageSourceConverter.cs
- GridViewPageEventArgs.cs
- PassportAuthentication.cs
- ResolveMatchesMessageCD1.cs
- RegisteredScript.cs
- ProfilePropertyNameValidator.cs
- MatrixTransform3D.cs
- Util.cs
- ExpressionConverter.cs
- DriveInfo.cs
- TextTreeNode.cs
- PipeException.cs
- UnauthorizedAccessException.cs
- ActionFrame.cs
- HtmlPhoneCallAdapter.cs
- PeerNodeTraceRecord.cs
- FileSystemInfo.cs
- LoadRetryHandler.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- SafeThemeHandle.cs
- MatrixAnimationBase.cs
- XmlSchemaAttributeGroup.cs
- SupportedAddressingMode.cs
- _ProxyChain.cs
- Group.cs
- RepeatButton.cs
- RoleGroupCollection.cs
- DataGridViewBindingCompleteEventArgs.cs
- XmlSiteMapProvider.cs
- SqlServer2KCompatibilityAnnotation.cs
- Font.cs
- XPathSelfQuery.cs
- XsltConvert.cs