Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- CorrelationManager.cs
- DescendantBaseQuery.cs
- HiddenFieldDesigner.cs
- FunctionImportMapping.ReturnTypeRenameMapping.cs
- DateTimeSerializationSection.cs
- StringValueSerializer.cs
- BuildProvider.cs
- CustomSignedXml.cs
- ChtmlCommandAdapter.cs
- BitmapEffectInput.cs
- TrustSection.cs
- SqlDataSourceView.cs
- EvidenceBase.cs
- PeerNameRecord.cs
- QueryContinueDragEvent.cs
- HttpGetProtocolImporter.cs
- TableItemProviderWrapper.cs
- DesignerAttribute.cs
- FSWPathEditor.cs
- ConnectionStringsExpressionBuilder.cs
- PerformanceCountersBase.cs
- ObjectAnimationBase.cs
- ProgressChangedEventArgs.cs
- TokenBasedSetEnumerator.cs
- SqlTriggerAttribute.cs
- TypeForwardedFromAttribute.cs
- IteratorDescriptor.cs
- GiveFeedbackEventArgs.cs
- OrCondition.cs
- CellCreator.cs
- InvalidCardException.cs
- OLEDB_Util.cs
- XmlUTF8TextWriter.cs
- ClientRolePrincipal.cs
- ImageMapEventArgs.cs
- EmptyEnumerator.cs
- DispatcherExceptionFilterEventArgs.cs
- FixUpCollection.cs
- TextTreeInsertElementUndoUnit.cs
- HashCoreRequest.cs
- OleDbStruct.cs
- ProjectedSlot.cs
- ApplicationDirectory.cs
- LinqDataView.cs
- JapaneseCalendar.cs
- RowsCopiedEventArgs.cs
- BaseTemplateBuildProvider.cs
- MouseCaptureWithinProperty.cs
- DeclarativeCatalogPartDesigner.cs
- TypeDescriptor.cs
- Control.cs
- UpdateTracker.cs
- COM2ComponentEditor.cs
- FacetChecker.cs
- CompositionAdorner.cs
- PropertyGrid.cs
- ChannelManager.cs
- RuntimeResourceSet.cs
- XPathDocument.cs
- ItemList.cs
- PointLightBase.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- TreeIterator.cs
- MessageVersion.cs
- PackageStore.cs
- CommandValueSerializer.cs
- MSAANativeProvider.cs
- WindowsFormsSectionHandler.cs
- IssuanceLicense.cs
- UpdateEventArgs.cs
- SecurityUniqueId.cs
- XDeferredAxisSource.cs
- PackageDigitalSignatureManager.cs
- StringStorage.cs
- RuntimeArgument.cs
- ContainsRowNumberChecker.cs
- XmlChildNodes.cs
- VisualStyleRenderer.cs
- MimeTypeAttribute.cs
- Variant.cs
- Int32CAMarshaler.cs
- HtmlWindow.cs
- InvokeHandlers.cs
- IDQuery.cs
- KoreanCalendar.cs
- TextPointer.cs
- SoapSchemaExporter.cs
- ButtonBase.cs
- BaseCollection.cs
- WindowsIdentity.cs
- FragmentQueryKB.cs
- XomlCompilerError.cs
- CryptoApi.cs
- HwndSourceKeyboardInputSite.cs
- metadatamappinghashervisitor.cs
- MessageBox.cs
- BehaviorService.cs
- MonthChangedEventArgs.cs
- CodeSubDirectory.cs
- CreateRefExpr.cs