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
- TagNameToTypeMapper.cs
- ObjectFullSpanRewriter.cs
- SafePEFileHandle.cs
- XamlDesignerSerializationManager.cs
- AnnotationAdorner.cs
- ToolStripItemRenderEventArgs.cs
- updatecommandorderer.cs
- SqlTriggerContext.cs
- Vertex.cs
- DataGridHeaderBorder.cs
- DiscoveryClientReferences.cs
- AggregationMinMaxHelpers.cs
- NumberSubstitution.cs
- And.cs
- RemoteWebConfigurationHost.cs
- UxThemeWrapper.cs
- ParentUndoUnit.cs
- XmlReaderSettings.cs
- HierarchicalDataSourceIDConverter.cs
- ScriptBehaviorDescriptor.cs
- HybridDictionary.cs
- AttributeEmitter.cs
- XmlUtil.cs
- Translator.cs
- FontCacheLogic.cs
- HwndSource.cs
- EnumMemberAttribute.cs
- InvalidBodyAccessException.cs
- StateWorkerRequest.cs
- PermissionSet.cs
- FormsIdentity.cs
- UnsupportedPolicyOptionsException.cs
- RewritingValidator.cs
- EditorResources.cs
- ModuleBuilder.cs
- AssemblyBuilderData.cs
- DataServiceRequest.cs
- Win32Native.cs
- SchemaCollectionPreprocessor.cs
- ColorComboBox.cs
- CommittableTransaction.cs
- ProviderConnectionPointCollection.cs
- WindowsTab.cs
- LocalIdKeyIdentifierClause.cs
- StringSource.cs
- Sentence.cs
- DockPattern.cs
- COM2TypeInfoProcessor.cs
- GridSplitterAutomationPeer.cs
- LongValidator.cs
- XmlSchemaAnnotation.cs
- Point3DAnimationUsingKeyFrames.cs
- PersonalizationDictionary.cs
- FlowDocumentFormatter.cs
- SingleAnimation.cs
- Oci.cs
- MD5.cs
- TimeSpanValidatorAttribute.cs
- ThreadInterruptedException.cs
- SimpleType.cs
- OdbcStatementHandle.cs
- XmlCollation.cs
- _OSSOCK.cs
- dsa.cs
- DataListItemCollection.cs
- _BaseOverlappedAsyncResult.cs
- XmlCDATASection.cs
- DataGridViewRowCollection.cs
- DefaultParameterValueAttribute.cs
- CommentAction.cs
- GB18030Encoding.cs
- PersonalizationAdministration.cs
- ProcessModuleCollection.cs
- UriTemplateClientFormatter.cs
- AlternateViewCollection.cs
- CheckBox.cs
- TextPenaltyModule.cs
- ReflectionUtil.cs
- SafeArrayTypeMismatchException.cs
- X509ClientCertificateCredentialsElement.cs
- XPathNodePointer.cs
- ClientSettingsProvider.cs
- WindowsGraphicsCacheManager.cs
- WriteableBitmap.cs
- TableRowCollection.cs
- NativeMethods.cs
- ChangeBlockUndoRecord.cs
- FunctionQuery.cs
- FunctionCommandText.cs
- LineServices.cs
- XmlWellformedWriter.cs
- PagesSection.cs
- SqlTriggerContext.cs
- EdmScalarPropertyAttribute.cs
- WebConfigurationHostFileChange.cs
- RSAPKCS1KeyExchangeFormatter.cs
- RtfToXamlLexer.cs
- Helper.cs
- DocumentPageTextView.cs
- SecurityAttributeGenerationHelper.cs