Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DropTarget.cs
- CubicEase.cs
- DataGridViewHitTestInfo.cs
- CollectionViewSource.cs
- SoapTypeAttribute.cs
- PersonalizationEntry.cs
- RolePrincipal.cs
- AnnotationHelper.cs
- _NetRes.cs
- DiscoveryDocumentSerializer.cs
- TimerEventSubscription.cs
- UnsafeNativeMethodsMilCoreApi.cs
- ApplicationTrust.cs
- TextTreeTextElementNode.cs
- AnnotationHighlightLayer.cs
- CheckoutException.cs
- DispatcherTimer.cs
- DictationGrammar.cs
- TextRunCache.cs
- DataGridViewDataErrorEventArgs.cs
- EditorZone.cs
- Size3D.cs
- GridViewSortEventArgs.cs
- FontStyleConverter.cs
- SqlStream.cs
- ServiceCredentials.cs
- HandleCollector.cs
- ZipIORawDataFileBlock.cs
- FontFamily.cs
- AnimatedTypeHelpers.cs
- CmsUtils.cs
- DataGridViewCellPaintingEventArgs.cs
- QueryableDataSource.cs
- tabpagecollectioneditor.cs
- StylusButtonEventArgs.cs
- SerialStream.cs
- RemoteWebConfigurationHostStream.cs
- Transform.cs
- HttpListenerResponse.cs
- TraceContextRecord.cs
- StructuralCache.cs
- SqlFunctionAttribute.cs
- Transaction.cs
- ArraySet.cs
- StringUtil.cs
- ConfigurationErrorsException.cs
- IncrementalCompileAnalyzer.cs
- AsymmetricAlgorithm.cs
- FunctionDetailsReader.cs
- SpellCheck.cs
- NameNode.cs
- ColorPalette.cs
- ListBase.cs
- ToolboxItemAttribute.cs
- StreamMarshaler.cs
- ListBase.cs
- RtfControls.cs
- ObjectTag.cs
- ContentType.cs
- OdbcUtils.cs
- ThreadStaticAttribute.cs
- ChameleonKey.cs
- _NativeSSPI.cs
- HGlobalSafeHandle.cs
- autovalidator.cs
- HwndSubclass.cs
- CreateUserWizard.cs
- XmlDigitalSignatureProcessor.cs
- AsyncMethodInvoker.cs
- DES.cs
- SqlConnectionPoolGroupProviderInfo.cs
- VectorCollectionValueSerializer.cs
- InvokeProviderWrapper.cs
- TrustManagerPromptUI.cs
- RemotingConfiguration.cs
- TabControlAutomationPeer.cs
- SafeBuffer.cs
- TheQuery.cs
- Publisher.cs
- DesignerVerbCollection.cs
- HandledMouseEvent.cs
- FileUtil.cs
- ProvidersHelper.cs
- WebBaseEventKeyComparer.cs
- ReadOnlyCollectionBase.cs
- SQLRoleProvider.cs
- FullTrustAssembliesSection.cs
- VBCodeProvider.cs
- XDeferredAxisSource.cs
- ComponentDispatcherThread.cs
- EncoderBestFitFallback.cs
- FontEditor.cs
- ResolveCriteria.cs
- DisplayClaim.cs
- MetadataPropertyvalue.cs
- FreeFormDragDropManager.cs
- PropertyGridCommands.cs
- LoginUtil.cs
- DetailsViewDeleteEventArgs.cs
- EndpointAddressAugust2004.cs