Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Xml / System / Xml / schema / XmlSchemaSimpleType.cs / 1 / XmlSchemaSimpleType.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Xml.Schema { using System.Xml.Serialization; using System.Diagnostics; ////// /// public class XmlSchemaSimpleType : XmlSchemaType { XmlSchemaSimpleTypeContent content; ///[To be supplied.] ////// /// public XmlSchemaSimpleType() { Debug.Assert(SchemaContentType == XmlSchemaContentType.TextOnly); } ///[To be supplied.] ///[XmlElement("restriction", typeof(XmlSchemaSimpleTypeRestriction)), XmlElement("list", typeof(XmlSchemaSimpleTypeList)), XmlElement("union", typeof(XmlSchemaSimpleTypeUnion))] public XmlSchemaSimpleTypeContent Content { get { return content; } set { content = value; } } internal override XmlQualifiedName DerivedFrom { get { if (content == null) { // type derived from anyType return XmlQualifiedName.Empty; } if (content is XmlSchemaSimpleTypeRestriction) { return ((XmlSchemaSimpleTypeRestriction)content).BaseTypeName; } return XmlQualifiedName.Empty; } } internal override XmlSchemaObject Clone() { XmlSchemaSimpleType newSimpleType = (XmlSchemaSimpleType)MemberwiseClone(); if (content != null) { newSimpleType.Content = (XmlSchemaSimpleTypeContent)content.Clone(); } return newSimpleType; } } } // 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
- NonBatchDirectoryCompiler.cs
- DataViewSettingCollection.cs
- CounterSample.cs
- _Semaphore.cs
- XslAst.cs
- ToolStripLabel.cs
- SoapAttributes.cs
- CounterCreationDataCollection.cs
- ChangeConflicts.cs
- HtmlInputPassword.cs
- DependencyPropertyDescriptor.cs
- SetIterators.cs
- PrivilegedConfigurationManager.cs
- HitTestWithGeometryDrawingContextWalker.cs
- XmlSchemaSimpleContentExtension.cs
- ContentPlaceHolder.cs
- InboundActivityHelper.cs
- pingexception.cs
- WindowPattern.cs
- ServiceEndpointCollection.cs
- SecurityHelper.cs
- ByteStack.cs
- Socket.cs
- FilterableAttribute.cs
- XamlWrappingReader.cs
- XmlnsDictionary.cs
- MergeLocalizationDirectives.cs
- CollectionViewGroupRoot.cs
- BindingWorker.cs
- TabletCollection.cs
- MetadataArtifactLoaderComposite.cs
- CompModSwitches.cs
- FixedDocument.cs
- PopupRootAutomationPeer.cs
- CDSsyncETWBCLProvider.cs
- NonPrimarySelectionGlyph.cs
- SpeakCompletedEventArgs.cs
- ScriptControlManager.cs
- RegexNode.cs
- XmlNodeReader.cs
- IdentityNotMappedException.cs
- InfoCardTrace.cs
- AddToCollection.cs
- RegexCaptureCollection.cs
- WorkItem.cs
- FontStyles.cs
- StateItem.cs
- HyperLink.cs
- BindStream.cs
- ColumnResizeAdorner.cs
- SetMemberBinder.cs
- ToolboxItemWrapper.cs
- ComPlusDiagnosticTraceSchemas.cs
- AutomationElement.cs
- TdsValueSetter.cs
- XmlNotation.cs
- ManipulationStartedEventArgs.cs
- CollectionViewSource.cs
- ResourceDictionaryCollection.cs
- ClientCultureInfo.cs
- WebGetAttribute.cs
- BidPrivateBase.cs
- ParserHooks.cs
- MULTI_QI.cs
- WebDescriptionAttribute.cs
- XmlILTrace.cs
- DeviceContext.cs
- BaseAsyncResult.cs
- TiffBitmapEncoder.cs
- XmlDeclaration.cs
- HtmlHead.cs
- MenuItemBinding.cs
- PersonalizationDictionary.cs
- _UriTypeConverter.cs
- DataReaderContainer.cs
- TextServicesDisplayAttribute.cs
- FixedSOMElement.cs
- ToolStripSeparator.cs
- GridViewSortEventArgs.cs
- XsltLoader.cs
- Highlights.cs
- ToggleButtonAutomationPeer.cs
- SoapEnvelopeProcessingElement.cs
- RadialGradientBrush.cs
- SvcMapFileSerializer.cs
- VectorKeyFrameCollection.cs
- XmlDataImplementation.cs
- ContentElement.cs
- EntityStoreSchemaGenerator.cs
- DecoratedNameAttribute.cs
- SolidBrush.cs
- TypeDescriptor.cs
- webclient.cs
- TraceListener.cs
- SweepDirectionValidation.cs
- MailMessageEventArgs.cs
- safePerfProviderHandle.cs
- DataGridCell.cs
- ItemPager.cs
- OdbcConnection.cs