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
- Dump.cs
- ToolStripSettings.cs
- ApplicationGesture.cs
- CardSpaceShim.cs
- SeverityFilter.cs
- RichTextBoxConstants.cs
- FormViewDeletedEventArgs.cs
- TypeSystem.cs
- XmlNotation.cs
- SchemaTableOptionalColumn.cs
- TemplateControl.cs
- CodeAttributeDeclarationCollection.cs
- Model3D.cs
- CodeLinePragma.cs
- InputLanguageSource.cs
- BitmapCodecInfoInternal.cs
- XmlTextAttribute.cs
- RuntimeConfig.cs
- SourceItem.cs
- QilUnary.cs
- RedirectionProxy.cs
- SupportingTokenBindingElement.cs
- SqlDelegatedTransaction.cs
- SubpageParaClient.cs
- SoapAttributeAttribute.cs
- RestrictedTransactionalPackage.cs
- Missing.cs
- SystemIPGlobalStatistics.cs
- WebProxyScriptElement.cs
- DetailsView.cs
- XpsFixedDocumentReaderWriter.cs
- AccessKeyManager.cs
- TdsParserStateObject.cs
- MailMessageEventArgs.cs
- DataGridViewSelectedColumnCollection.cs
- RSAPKCS1SignatureDeformatter.cs
- ProtocolViolationException.cs
- XmlAttributeProperties.cs
- CustomMenuItemCollection.cs
- EngineSite.cs
- DecimalConstantAttribute.cs
- Int16KeyFrameCollection.cs
- LinkClickEvent.cs
- ExpressionParser.cs
- StateMachineTimers.cs
- NavigatorOutput.cs
- ZoneIdentityPermission.cs
- ImmutablePropertyDescriptorGridEntry.cs
- xml.cs
- SimpleModelProvider.cs
- DesignerDataParameter.cs
- PromptBuilder.cs
- _SslStream.cs
- OutOfMemoryException.cs
- PolicyUnit.cs
- TiffBitmapEncoder.cs
- NumericUpDown.cs
- CompositeControlDesigner.cs
- ToolStripSeparator.cs
- RelationalExpressions.cs
- ResolveMatchesMessageCD1.cs
- DBDataPermissionAttribute.cs
- XPathNavigator.cs
- MatcherBuilder.cs
- CultureSpecificCharacterBufferRange.cs
- Misc.cs
- ISAPIRuntime.cs
- indexingfiltermarshaler.cs
- ServiceOperationParameter.cs
- Button.cs
- GraphicsContainer.cs
- CharEntityEncoderFallback.cs
- AcceleratedTokenProvider.cs
- SelectionProviderWrapper.cs
- RemotingException.cs
- UserNamePasswordValidator.cs
- base64Transforms.cs
- DataGridColumnCollection.cs
- ThemeableAttribute.cs
- TypeListConverter.cs
- EventMappingSettingsCollection.cs
- ProxyWebPartManagerDesigner.cs
- PagedDataSource.cs
- ETagAttribute.cs
- OdbcConnectionOpen.cs
- ProfileManager.cs
- ErrorLog.cs
- StylusLogic.cs
- PropertyDescriptorCollection.cs
- DBAsyncResult.cs
- EnumType.cs
- SettingsPropertyValue.cs
- OleDbTransaction.cs
- PreloadHost.cs
- SqlSupersetValidator.cs
- XPathDocumentBuilder.cs
- BeginStoryboard.cs
- TemplateParser.cs
- ReachDocumentReferenceSerializer.cs
- RoutedUICommand.cs