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
- FrameworkElement.cs
- WebPartChrome.cs
- SafeCryptoHandles.cs
- EntityCommandCompilationException.cs
- TextEffectCollection.cs
- XmlSerializerFactory.cs
- CommandLibraryHelper.cs
- DataGrid.cs
- QueryStringHandler.cs
- Int32RectValueSerializer.cs
- CodeAttributeArgumentCollection.cs
- XmlConvert.cs
- WindowsTitleBar.cs
- HelpEvent.cs
- AsyncPostBackTrigger.cs
- X509ChainPolicy.cs
- FixedSOMLineCollection.cs
- CurrentChangingEventManager.cs
- ValidatorCompatibilityHelper.cs
- SaveFileDialog.cs
- Debugger.cs
- ComplexTypeEmitter.cs
- ObjectListDataBindEventArgs.cs
- HtmlInputSubmit.cs
- DoubleConverter.cs
- Interop.cs
- AutomationProperties.cs
- EtwTrackingBehaviorElement.cs
- RSACryptoServiceProvider.cs
- SqlTrackingWorkflowInstance.cs
- CroppedBitmap.cs
- SQLInt64Storage.cs
- OlePropertyStructs.cs
- SmtpNtlmAuthenticationModule.cs
- DataServiceQueryProvider.cs
- RelatedPropertyManager.cs
- ProfileProvider.cs
- FormView.cs
- FormatSettings.cs
- SearchForVirtualItemEventArgs.cs
- TraceHandlerErrorFormatter.cs
- HtmlTableCell.cs
- SignatureDescription.cs
- ISAPIRuntime.cs
- SafeCryptoHandles.cs
- ClientEventManager.cs
- StrongNameMembershipCondition.cs
- StructuredTypeEmitter.cs
- BamlTreeUpdater.cs
- KeyNotFoundException.cs
- UnsafeNativeMethodsTablet.cs
- InputLanguageSource.cs
- XPathMessageFilter.cs
- ManualResetEventSlim.cs
- X509Utils.cs
- DeobfuscatingStream.cs
- SqlFormatter.cs
- RectangleF.cs
- ChineseLunisolarCalendar.cs
- TextSearch.cs
- CopyNamespacesAction.cs
- SystemWebCachingSectionGroup.cs
- ErrorEventArgs.cs
- SqlTriggerAttribute.cs
- RegexWorker.cs
- HTMLTextWriter.cs
- MenuRendererClassic.cs
- ConstraintCollection.cs
- NumericPagerField.cs
- EmptyCollection.cs
- RegexTree.cs
- TriggerAction.cs
- MenuItemCollection.cs
- SessionMode.cs
- DynamicResourceExtensionConverter.cs
- HtmlToClrEventProxy.cs
- __ComObject.cs
- TaskExceptionHolder.cs
- PropertyStore.cs
- StrongName.cs
- InputProviderSite.cs
- DataRowView.cs
- XamlClipboardData.cs
- UnsafeNativeMethods.cs
- Util.cs
- SelfIssuedAuthRSAPKCS1SignatureDeformatter.cs
- ElementNotAvailableException.cs
- CatalogZoneBase.cs
- ServiceDeploymentInfo.cs
- RegexMatchCollection.cs
- PartManifestEntry.cs
- EditableLabelControl.cs
- CacheAxisQuery.cs
- WindowInteropHelper.cs
- XamlSerializerUtil.cs
- WebScriptMetadataMessageEncoderFactory.cs
- XmlSerializerAssemblyAttribute.cs
- SizeChangedInfo.cs
- DataGridViewCellCancelEventArgs.cs
- WsatServiceCertificate.cs