Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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. // //[....] //----------------------------------------------------------------------------- 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FormsAuthenticationConfiguration.cs
- ClipboardProcessor.cs
- DataTableReaderListener.cs
- WebPartEditorOkVerb.cs
- WinFormsComponentEditor.cs
- DrawingAttributesDefaultValueFactory.cs
- Model3DGroup.cs
- FontTypeConverter.cs
- SafeHandle.cs
- ProxyAttribute.cs
- SHA512.cs
- BooleanAnimationUsingKeyFrames.cs
- ArglessEventHandlerProxy.cs
- DataObjectCopyingEventArgs.cs
- ProjectionQueryOptionExpression.cs
- PropertyGroupDescription.cs
- SectionInput.cs
- InstanceLockQueryResult.cs
- TextFormatterImp.cs
- SoapSchemaImporter.cs
- XpsResourcePolicy.cs
- BrowserInteropHelper.cs
- X509ServiceCertificateAuthentication.cs
- SamlAuthorizationDecisionClaimResource.cs
- AstTree.cs
- CatchBlock.cs
- LicenseManager.cs
- SiteMapNodeItem.cs
- SqlCacheDependencyDatabase.cs
- FixUpCollection.cs
- WebConfigurationHostFileChange.cs
- ApplicationServiceManager.cs
- ChannelDispatcherBase.cs
- TcpClientChannel.cs
- SimpleTextLine.cs
- TreeBuilderBamlTranslator.cs
- RelationshipConstraintValidator.cs
- Evidence.cs
- LoadedEvent.cs
- EncodingTable.cs
- Point.cs
- ByteAnimation.cs
- QilExpression.cs
- PanelStyle.cs
- AutoCompleteStringCollection.cs
- SqlCommandBuilder.cs
- Polygon.cs
- Rotation3D.cs
- UIPropertyMetadata.cs
- Int32RectValueSerializer.cs
- DataTransferEventArgs.cs
- TrimSurroundingWhitespaceAttribute.cs
- ForeignKeyFactory.cs
- HandleValueEditor.cs
- AjaxFrameworkAssemblyAttribute.cs
- BamlCollectionHolder.cs
- PopOutPanel.cs
- RowSpanVector.cs
- LogEntryHeaderv1Deserializer.cs
- SingleAnimationUsingKeyFrames.cs
- SqlDataSourceCommandEventArgs.cs
- LinearKeyFrames.cs
- ObjectSpanRewriter.cs
- RelationshipType.cs
- OleAutBinder.cs
- MatrixAnimationBase.cs
- HttpFileCollection.cs
- ModuleBuilderData.cs
- Journaling.cs
- XPathNodeHelper.cs
- NavigationCommands.cs
- DragCompletedEventArgs.cs
- XmlSchemaObjectTable.cs
- DesignSurfaceCollection.cs
- HttpValueCollection.cs
- WebPartEditorApplyVerb.cs
- ErrorHandler.cs
- Configuration.cs
- SafeCryptoHandles.cs
- SupportingTokenParameters.cs
- TypeUnloadedException.cs
- XamlValidatingReader.cs
- IsolationInterop.cs
- RewritingProcessor.cs
- HMACSHA384.cs
- RoutedEventArgs.cs
- HttpCapabilitiesEvaluator.cs
- TrustManagerPromptUI.cs
- OptimizedTemplateContentHelper.cs
- tooltip.cs
- XmlWriterDelegator.cs
- FieldTemplateFactory.cs
- NameTable.cs
- MissingSatelliteAssemblyException.cs
- _ProxyRegBlob.cs
- LogRestartAreaEnumerator.cs
- HttpModuleActionCollection.cs
- EntityContainerEmitter.cs
- LinkClickEvent.cs
- ClientTargetCollection.cs