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
- ObjectPropertyMapping.cs
- ProgressBarRenderer.cs
- Membership.cs
- HierarchicalDataBoundControlAdapter.cs
- BuilderElements.cs
- ScrollPatternIdentifiers.cs
- HtmlControlDesigner.cs
- QueryInterceptorAttribute.cs
- RenderOptions.cs
- HyperlinkAutomationPeer.cs
- ProtectedConfigurationProviderCollection.cs
- DecoderFallback.cs
- EntityConnection.cs
- MimeMapping.cs
- GregorianCalendarHelper.cs
- UserPreferenceChangingEventArgs.cs
- ElementAtQueryOperator.cs
- JournalNavigationScope.cs
- InvokePattern.cs
- DictationGrammar.cs
- VisualTreeHelper.cs
- RowsCopiedEventArgs.cs
- RootBrowserWindow.cs
- PropertyToken.cs
- JsonReaderDelegator.cs
- WebPartsSection.cs
- FontStretchConverter.cs
- UriTemplateVariablePathSegment.cs
- TreeBuilderXamlTranslator.cs
- ConfigXmlCDataSection.cs
- DeploymentExceptionMapper.cs
- TableCell.cs
- TextEditorTyping.cs
- SmtpNegotiateAuthenticationModule.cs
- UnhandledExceptionEventArgs.cs
- BooleanFacetDescriptionElement.cs
- JapaneseLunisolarCalendar.cs
- EncodingNLS.cs
- SR.cs
- WebControl.cs
- BuildDependencySet.cs
- SchemaTableColumn.cs
- ExpandableObjectConverter.cs
- SingleAnimationBase.cs
- _SpnDictionary.cs
- DataBinding.cs
- MenuItem.cs
- EnumUnknown.cs
- ValueHandle.cs
- WebServiceTypeData.cs
- SoapProcessingBehavior.cs
- Content.cs
- CompareValidator.cs
- shaper.cs
- ImageMapEventArgs.cs
- DataContractSerializerSection.cs
- NonNullItemCollection.cs
- Timer.cs
- HttpListenerElement.cs
- TypeLibConverter.cs
- ChannelManager.cs
- UndoEngine.cs
- FileLevelControlBuilderAttribute.cs
- RbTree.cs
- StsCommunicationException.cs
- RegexRunner.cs
- SHA1.cs
- RemotingAttributes.cs
- MetabaseReader.cs
- Vector3DCollectionValueSerializer.cs
- XXXOnTypeBuilderInstantiation.cs
- HtmlInputImage.cs
- BrowserDefinition.cs
- ParserStreamGeometryContext.cs
- DurableEnlistmentState.cs
- CompModSwitches.cs
- InfocardExtendedInformationCollection.cs
- InvokePattern.cs
- MD5CryptoServiceProvider.cs
- HostingEnvironmentWrapper.cs
- SimpleHandlerFactory.cs
- PointHitTestResult.cs
- PartialCachingControl.cs
- ValidationErrorCollection.cs
- PageThemeBuildProvider.cs
- ZipIORawDataFileBlock.cs
- AliasedSlot.cs
- KnownIds.cs
- DataRowChangeEvent.cs
- TypeResolver.cs
- TextLineBreak.cs
- SliderAutomationPeer.cs
- SafeNativeMethods.cs
- ProtocolElement.cs
- AlphabetConverter.cs
- TextAnchor.cs
- EditorBrowsableAttribute.cs
- PropertyConverter.cs
- UnsafeNativeMethodsPenimc.cs
- Transform3DGroup.cs