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
- MimeReflector.cs
- HybridDictionary.cs
- OdbcFactory.cs
- LocalFileSettingsProvider.cs
- HttpConfigurationSystem.cs
- TransportContext.cs
- SettingsProperty.cs
- keycontainerpermission.cs
- TextTreeTextNode.cs
- OperationAbortedException.cs
- HttpTransportSecurityElement.cs
- RuntimeIdentifierPropertyAttribute.cs
- ImmutablePropertyDescriptorGridEntry.cs
- SizeAnimationClockResource.cs
- CustomAttributeBuilder.cs
- DockProviderWrapper.cs
- __ComObject.cs
- ConfigXmlAttribute.cs
- WebPartActionVerb.cs
- ImageKeyConverter.cs
- BindingManagerDataErrorEventArgs.cs
- ListViewUpdatedEventArgs.cs
- ToolboxDataAttribute.cs
- WebPartZoneBase.cs
- MsmqHostedTransportManager.cs
- ButtonFlatAdapter.cs
- PointAnimationUsingKeyFrames.cs
- OutputCacheSection.cs
- _NTAuthentication.cs
- MenuTracker.cs
- Point3DIndependentAnimationStorage.cs
- SchemaReference.cs
- Fx.cs
- Command.cs
- TableLayoutStyleCollection.cs
- WorkflowServiceAttributesTypeConverter.cs
- QilScopedVisitor.cs
- Encoding.cs
- IncrementalReadDecoders.cs
- TextBoxBase.cs
- CodeIdentifier.cs
- CqlGenerator.cs
- SafeNativeMethods.cs
- UdpSocket.cs
- UpdateException.cs
- MgmtConfigurationRecord.cs
- NoPersistScope.cs
- Trace.cs
- VisualStyleRenderer.cs
- LineProperties.cs
- unsafenativemethodstextservices.cs
- NativeCompoundFileAPIs.cs
- DocumentPageHost.cs
- ReaderWriterLockSlim.cs
- DesignTimeVisibleAttribute.cs
- StringHandle.cs
- RbTree.cs
- Win32.cs
- ReadOnlyAttribute.cs
- DynamicResourceExtension.cs
- XappLauncher.cs
- ACL.cs
- DomNameTable.cs
- Group.cs
- DataGridViewColumnConverter.cs
- InstanceData.cs
- SafeRightsManagementQueryHandle.cs
- CodeMemberMethod.cs
- UseLicense.cs
- Enlistment.cs
- PackageFilter.cs
- VisualTreeHelper.cs
- VersionPair.cs
- QueryProcessor.cs
- AsyncOperationManager.cs
- MediaElementAutomationPeer.cs
- NavigationPropertyAccessor.cs
- EventBindingService.cs
- WorkflowOperationAsyncResult.cs
- StopRoutingHandler.cs
- WindowsRichEditRange.cs
- ProxyDataContractResolver.cs
- TryExpression.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- MenuStrip.cs
- WebPageTraceListener.cs
- StringInfo.cs
- ContentPresenter.cs
- MexTcpBindingCollectionElement.cs
- SchemaTableOptionalColumn.cs
- SettingsPropertyCollection.cs
- ContentOperations.cs
- DetailsViewDeleteEventArgs.cs
- ConfigurationSection.cs
- RegionInfo.cs
- SourceFileInfo.cs
- PenThreadWorker.cs
- XmlCharacterData.cs
- GlyphCache.cs
- HwndHostAutomationPeer.cs