Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / schema / XmlSchemaSimpleType.cs / 1305376 / 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
- ManageRequest.cs
- ExpandCollapsePatternIdentifiers.cs
- XPathDocumentBuilder.cs
- ResumeStoryboard.cs
- EmptyStringExpandableObjectConverter.cs
- SynchronizedInputProviderWrapper.cs
- MarkedHighlightComponent.cs
- ExpanderAutomationPeer.cs
- _MultipleConnectAsync.cs
- Drawing.cs
- CacheMemory.cs
- PositiveTimeSpanValidatorAttribute.cs
- QuadraticBezierSegment.cs
- DbSourceParameterCollection.cs
- Int32.cs
- ReadOnlyDataSourceView.cs
- UniqueIdentifierService.cs
- LookupTables.cs
- MethodToken.cs
- AssemblyAttributesGoHere.cs
- ThreadInterruptedException.cs
- GPStream.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- XmlUrlEditor.cs
- Timeline.cs
- PropertyItemInternal.cs
- GenericTextProperties.cs
- RegistryPermission.cs
- TransactionManager.cs
- PreApplicationStartMethodAttribute.cs
- ExpressionVisitor.cs
- InputScope.cs
- InvokeMethodActivityDesigner.cs
- StagingAreaInputItem.cs
- NetDataContractSerializer.cs
- TextSelection.cs
- LocatorGroup.cs
- ThicknessAnimationBase.cs
- FontSource.cs
- EventLogPermissionEntryCollection.cs
- WebDisplayNameAttribute.cs
- UIElement3D.cs
- ParentQuery.cs
- MethodRental.cs
- CreateInstanceBinder.cs
- MyContact.cs
- GridSplitter.cs
- DataSourceSelectArguments.cs
- QueryCacheKey.cs
- XamlLoadErrorInfo.cs
- JournalEntryListConverter.cs
- RawStylusActions.cs
- BufferModesCollection.cs
- TextTrailingCharacterEllipsis.cs
- EventEntry.cs
- DSASignatureDeformatter.cs
- SchemaMerger.cs
- WeakReadOnlyCollection.cs
- MessageHeaderInfoTraceRecord.cs
- HtmlWindowCollection.cs
- WebPart.cs
- SiteMapSection.cs
- EntityRecordInfo.cs
- DataSourceViewSchemaConverter.cs
- _NTAuthentication.cs
- DataFormats.cs
- CombinedGeometry.cs
- WizardPanel.cs
- WinInet.cs
- ContentValidator.cs
- BehaviorEditorPart.cs
- DataAdapter.cs
- DataControlImageButton.cs
- GridEntryCollection.cs
- PrivilegeNotHeldException.cs
- RuleSetCollection.cs
- ForwardPositionQuery.cs
- CompositeFontParser.cs
- WebPartMinimizeVerb.cs
- ScriptingJsonSerializationSection.cs
- SafeEventHandle.cs
- CodeExporter.cs
- SystemException.cs
- SafeBuffer.cs
- OperationAbortedException.cs
- InputScopeManager.cs
- TransformerTypeCollection.cs
- QilInvokeEarlyBound.cs
- UnsafeNativeMethodsPenimc.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- AttributeCallbackBuilder.cs
- Color.cs
- FactoryMaker.cs
- BamlResourceDeserializer.cs
- ButtonStandardAdapter.cs
- XsltConvert.cs
- LambdaCompiler.Address.cs
- DoubleAnimationUsingKeyFrames.cs
- StatusBarItem.cs
- DbProviderFactories.cs