Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- ValidationResult.cs
- XmlNode.cs
- FixedStringLookup.cs
- HeaderedItemsControl.cs
- HostingEnvironment.cs
- JsonGlobals.cs
- PointAnimationUsingKeyFrames.cs
- UICuesEvent.cs
- WebPart.cs
- XmlAttributeAttribute.cs
- RegionData.cs
- ErrorTableItemStyle.cs
- ToolboxSnapDragDropEventArgs.cs
- baseaxisquery.cs
- ScriptResourceHandler.cs
- InkCanvas.cs
- GroupStyle.cs
- HuffmanTree.cs
- QualificationDataItem.cs
- RoutedUICommand.cs
- FontDifferentiator.cs
- ShellProvider.cs
- Model3DCollection.cs
- Object.cs
- Binding.cs
- TypeDescriptorFilterService.cs
- XmlAttributeCollection.cs
- DeploymentExceptionMapper.cs
- FrameworkElement.cs
- SystemWebCachingSectionGroup.cs
- MouseGestureConverter.cs
- safesecurityhelperavalon.cs
- DataRowCollection.cs
- DateTimeSerializationSection.cs
- PtsCache.cs
- DiffuseMaterial.cs
- MenuCommand.cs
- GridPatternIdentifiers.cs
- Journal.cs
- TableItemStyle.cs
- _CookieModule.cs
- RecognizerBase.cs
- LambdaCompiler.Statements.cs
- XmlDataSourceNodeDescriptor.cs
- SqlCommand.cs
- ObjectContextServiceProvider.cs
- WindowHideOrCloseTracker.cs
- DataServiceOperationContext.cs
- InlineCollection.cs
- SourceElementsCollection.cs
- PropertyInfoSet.cs
- LightweightCodeGenerator.cs
- SymbolEqualComparer.cs
- SoapInteropTypes.cs
- columnmapkeybuilder.cs
- UpDownEvent.cs
- ConfigurationSectionGroupCollection.cs
- ComplexLine.cs
- HostProtectionException.cs
- DefaultEventAttribute.cs
- IpcServerChannel.cs
- TableChangeProcessor.cs
- PropertyTabChangedEvent.cs
- _WebProxyDataBuilder.cs
- LambdaCompiler.Binary.cs
- Maps.cs
- Mapping.cs
- DbConvert.cs
- ZipIOCentralDirectoryBlock.cs
- XmlNullResolver.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- EndpointDiscoveryMetadata.cs
- WebPageTraceListener.cs
- codemethodreferenceexpression.cs
- Effect.cs
- SecurityValidationBehavior.cs
- EntityDataSourceUtil.cs
- Padding.cs
- HandlerFactoryCache.cs
- TextViewBase.cs
- ServiceModelConfiguration.cs
- RefExpr.cs
- PointCollection.cs
- FrameworkName.cs
- Thumb.cs
- OdbcEnvironmentHandle.cs
- SafeLibraryHandle.cs
- EllipseGeometry.cs
- PropertyMappingExceptionEventArgs.cs
- PathGeometry.cs
- SqlInternalConnectionSmi.cs
- ObfuscationAttribute.cs
- IfElseDesigner.xaml.cs
- validationstate.cs
- TableRow.cs
- QilLiteral.cs
- RawTextInputReport.cs
- ViewEventArgs.cs
- MulticastOption.cs
- TraceListener.cs