Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / schema / XmlSchemaSimpleTypeUnion.cs / 1305376 / 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. // //[....] //----------------------------------------------------------------------------- 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DbConnectionStringCommon.cs
- CollectionContainer.cs
- InitialServerConnectionReader.cs
- ToolStripSeparatorRenderEventArgs.cs
- SafeTimerHandle.cs
- MILUtilities.cs
- Int32Converter.cs
- TemplateManager.cs
- ProxyWebPart.cs
- CodeTypeDeclarationCollection.cs
- FtpWebRequest.cs
- DragCompletedEventArgs.cs
- ArrayElementGridEntry.cs
- CounterSampleCalculator.cs
- QilTargetType.cs
- StoreAnnotationsMap.cs
- TypeDescriptorContext.cs
- SpeechSynthesizer.cs
- PtsHost.cs
- Color.cs
- EndpointDiscoveryMetadata11.cs
- SafeNativeMethodsCLR.cs
- TextServicesCompartmentContext.cs
- XmlHelper.cs
- MembershipUser.cs
- CodeTypeConstructor.cs
- ImageButton.cs
- XmlText.cs
- _TransmitFileOverlappedAsyncResult.cs
- DataGridParentRows.cs
- SmtpNegotiateAuthenticationModule.cs
- MailAddressCollection.cs
- Accessible.cs
- X509Extension.cs
- BevelBitmapEffect.cs
- BindingCompleteEventArgs.cs
- Int32AnimationBase.cs
- CollectionView.cs
- AdditionalEntityFunctions.cs
- EntryPointNotFoundException.cs
- StringConverter.cs
- AttachmentCollection.cs
- WebEventTraceProvider.cs
- ProgressiveCrcCalculatingStream.cs
- Environment.cs
- Misc.cs
- WCFServiceClientProxyGenerator.cs
- StyleCollection.cs
- BitmapCache.cs
- StringSource.cs
- ExtensionSurface.cs
- Constants.cs
- SmiContext.cs
- RelativeSource.cs
- isolationinterop.cs
- ArcSegment.cs
- WebPartConnectionsConfigureVerb.cs
- RequestQueue.cs
- Win32Native.cs
- AddIn.cs
- WebPartUserCapability.cs
- CommandDevice.cs
- ControlCollection.cs
- HtmlControl.cs
- BitmapFrame.cs
- ProjectionCamera.cs
- SoapReflectionImporter.cs
- WorkflowApplicationEventArgs.cs
- DataViewManagerListItemTypeDescriptor.cs
- PeerOutputChannel.cs
- ClientApiGenerator.cs
- PassportAuthenticationModule.cs
- ByteStreamGeometryContext.cs
- ReflectionUtil.cs
- MessageQueueConverter.cs
- ProxyElement.cs
- FilterQueryOptionExpression.cs
- TypeElementCollection.cs
- SystemIPInterfaceProperties.cs
- PlainXmlSerializer.cs
- LayoutExceptionEventArgs.cs
- PackagingUtilities.cs
- HandleCollector.cs
- NativeMethods.cs
- OLEDB_Enum.cs
- GridViewColumnHeaderAutomationPeer.cs
- WebPartRestoreVerb.cs
- WindowsListViewGroupHelper.cs
- ComAdminWrapper.cs
- ScriptRef.cs
- AttachedPropertiesService.cs
- BufferedGraphicsContext.cs
- RectangleGeometry.cs
- DerivedKeySecurityToken.cs
- Thumb.cs
- validationstate.cs
- CacheOutputQuery.cs
- AssociationTypeEmitter.cs
- FusionWrap.cs
- mactripleDES.cs