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
- ChangeNode.cs
- EncoderParameters.cs
- DataRowView.cs
- EntityTypeEmitter.cs
- TrustSection.cs
- ToolStripOverflow.cs
- BinaryCommonClasses.cs
- QilGenerator.cs
- DataSvcMapFile.cs
- SerializableAttribute.cs
- QueryCursorEventArgs.cs
- EventLogInternal.cs
- TextEditorParagraphs.cs
- SRDisplayNameAttribute.cs
- HtmlImage.cs
- QueryOpcode.cs
- PLINQETWProvider.cs
- PageParserFilter.cs
- LiteralTextParser.cs
- Attributes.cs
- DbProviderManifest.cs
- InstanceStoreQueryResult.cs
- Module.cs
- CustomErrorsSection.cs
- MexNamedPipeBindingCollectionElement.cs
- WS2007FederationHttpBindingElement.cs
- SharedPersonalizationStateInfo.cs
- XamlPathDataSerializer.cs
- namescope.cs
- ImageIndexEditor.cs
- TrackingValidationObjectDictionary.cs
- LoginName.cs
- XmlWriterTraceListener.cs
- ParseHttpDate.cs
- Models.cs
- oledbmetadatacollectionnames.cs
- ComponentResourceKeyConverter.cs
- OleDbCommand.cs
- RelationshipFixer.cs
- PrintDocument.cs
- BamlResourceSerializer.cs
- XPathArrayIterator.cs
- RegionInfo.cs
- MarkupObject.cs
- AvTraceFormat.cs
- mediaeventargs.cs
- StringAnimationBase.cs
- ExtensionElement.cs
- HttpChannelHelper.cs
- ScrollProperties.cs
- HMACSHA512.cs
- RawStylusInputReport.cs
- AuthenticationModuleElement.cs
- DecimalAverageAggregationOperator.cs
- PageContent.cs
- OpenTypeLayoutCache.cs
- SoapAttributes.cs
- TabControlToolboxItem.cs
- NCryptNative.cs
- ArrangedElement.cs
- WindowsHyperlink.cs
- OpenTypeCommon.cs
- TypeConverterHelper.cs
- MeasureData.cs
- Compilation.cs
- Html32TextWriter.cs
- CompilerLocalReference.cs
- SecurityPermission.cs
- XamlClipboardData.cs
- ListViewGroup.cs
- SqlBuilder.cs
- ReadOnlyDataSource.cs
- FormViewCommandEventArgs.cs
- PreDigestedSignedInfo.cs
- KoreanCalendar.cs
- PackagePart.cs
- Mouse.cs
- EntityChangedParams.cs
- WebPartZone.cs
- TextBox.cs
- RadioButton.cs
- XmlLoader.cs
- RoutedEventConverter.cs
- ReferenceSchema.cs
- InkCanvasAutomationPeer.cs
- ZoneLinkButton.cs
- SqlRowUpdatedEvent.cs
- Opcode.cs
- DocumentEventArgs.cs
- CompiledAction.cs
- XmlArrayAttribute.cs
- ReachUIElementCollectionSerializerAsync.cs
- FloaterParaClient.cs
- ActiveXHelper.cs
- CopyAction.cs
- ClientConfigurationSystem.cs
- DataServiceRequestException.cs
- DataGridPageChangedEventArgs.cs
- WebEventTraceProvider.cs
- ErrorRuntimeConfig.cs