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
- TypeExtensionSerializer.cs
- FactoryMaker.cs
- BaseWebProxyFinder.cs
- ControlType.cs
- TextHintingModeValidation.cs
- URLMembershipCondition.cs
- TypeLibConverter.cs
- XmlWrappingWriter.cs
- PingOptions.cs
- Model3DGroup.cs
- TextAdaptor.cs
- GradientBrush.cs
- DoubleStorage.cs
- ItemChangedEventArgs.cs
- DrawingAttributeSerializer.cs
- FullTextState.cs
- ParameterElementCollection.cs
- DbTransaction.cs
- AddingNewEventArgs.cs
- GreenMethods.cs
- Int64Converter.cs
- CodeVariableDeclarationStatement.cs
- StringFreezingAttribute.cs
- ButtonChrome.cs
- InputGestureCollection.cs
- SvcMapFile.cs
- TransactionFlowOption.cs
- MulticastDelegate.cs
- CodeConstructor.cs
- XmlWrappingReader.cs
- EntityDataSourceStatementEditorForm.cs
- SelectedDatesCollection.cs
- IndentTextWriter.cs
- TextOutput.cs
- IndexedEnumerable.cs
- WebMessageFormatHelper.cs
- AppDomainUnloadedException.cs
- DataRecordObjectView.cs
- ListViewSelectEventArgs.cs
- PathNode.cs
- GlobalizationAssembly.cs
- PathFigureCollectionConverter.cs
- PropertySegmentSerializationProvider.cs
- DrawItemEvent.cs
- StylusPlugin.cs
- DelegateSerializationHolder.cs
- PropVariant.cs
- EdmScalarPropertyAttribute.cs
- TraceContext.cs
- TemplateInstanceAttribute.cs
- EntityDataSourceDataSelection.cs
- EntityFrameworkVersions.cs
- SqlParameterizer.cs
- Authorization.cs
- EnvironmentPermission.cs
- CompressEmulationStream.cs
- AsyncPostBackErrorEventArgs.cs
- Point4D.cs
- sqlcontext.cs
- TargetInvocationException.cs
- RegistrationProxy.cs
- CalendarDayButton.cs
- FixedSOMLineCollection.cs
- QuotedPrintableStream.cs
- XmlSchemaInclude.cs
- StrongNamePublicKeyBlob.cs
- XmlSchemaComplexType.cs
- PolicyException.cs
- InternalReceiveMessage.cs
- MatrixConverter.cs
- XPathBinder.cs
- TextDecorationCollectionConverter.cs
- ToolStripControlHost.cs
- RegisteredDisposeScript.cs
- RegexCompiler.cs
- DataProviderNameConverter.cs
- WSFederationHttpSecurityElement.cs
- EntityDataSourceSelectingEventArgs.cs
- ObfuscationAttribute.cs
- GlobalProxySelection.cs
- DesignerGenericWebPart.cs
- HttpResponse.cs
- ResolveNameEventArgs.cs
- RuleInfoComparer.cs
- ObfuscateAssemblyAttribute.cs
- Canonicalizers.cs
- QilFunction.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- ExceptionUtil.cs
- backend.cs
- ConfigsHelper.cs
- SchemaComplexType.cs
- TypeSystemProvider.cs
- InterleavedZipPartStream.cs
- CrossSiteScriptingValidation.cs
- HtmlTableRowCollection.cs
- ValueHandle.cs
- NotSupportedException.cs
- OptimizerPatterns.cs
- WindowsFormsSynchronizationContext.cs