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
- XmlWrappingReader.cs
- TdsParameterSetter.cs
- ToolBarButtonDesigner.cs
- XmlSchemaAnnotated.cs
- TransformValueSerializer.cs
- WebServiceReceive.cs
- AuthenticationSection.cs
- ModulesEntry.cs
- DiffuseMaterial.cs
- FontStretches.cs
- DataGridViewColumnStateChangedEventArgs.cs
- WebPartVerb.cs
- TextWriterEngine.cs
- ResolvedKeyFrameEntry.cs
- ToolStripSystemRenderer.cs
- RegexGroup.cs
- SqlMethodAttribute.cs
- Token.cs
- QuaternionKeyFrameCollection.cs
- SqlFileStream.cs
- ElementMarkupObject.cs
- ListViewTableCell.cs
- WebPartZoneDesigner.cs
- DummyDataSource.cs
- Condition.cs
- WebBrowserUriTypeConverter.cs
- AvTrace.cs
- HtmlEncodedRawTextWriter.cs
- DateTimeStorage.cs
- OrderByLifter.cs
- PriorityBindingExpression.cs
- SimpleRecyclingCache.cs
- LicenseException.cs
- MetadataSerializer.cs
- IApplicationTrustManager.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- SMSvcHost.cs
- VersionPair.cs
- ArgumentsParser.cs
- ActivityValidationServices.cs
- LayoutExceptionEventArgs.cs
- TextTreeUndo.cs
- PerspectiveCamera.cs
- COM2ComponentEditor.cs
- ToolStripOverflow.cs
- XMLSchema.cs
- TraceProvider.cs
- SqlTriggerContext.cs
- SqlExpressionNullability.cs
- CreationContext.cs
- ListDictionaryInternal.cs
- HttpListenerException.cs
- SeparatorAutomationPeer.cs
- DataGridTableCollection.cs
- EventProviderClassic.cs
- StringPropertyBuilder.cs
- SponsorHelper.cs
- ConfigurationStrings.cs
- ToolboxItem.cs
- ViewStateModeByIdAttribute.cs
- CursorConverter.cs
- DataServiceContext.cs
- CommandValueSerializer.cs
- MemoryRecordBuffer.cs
- TypedTableBase.cs
- DataGridViewIntLinkedList.cs
- XmlTextWriter.cs
- HttpConfigurationContext.cs
- FloatUtil.cs
- ResourceDictionary.cs
- TripleDESCryptoServiceProvider.cs
- SchemaRegistration.cs
- UnmanagedMemoryStreamWrapper.cs
- ReferencedCollectionType.cs
- OLEDB_Util.cs
- DataListCommandEventArgs.cs
- FaultImportOptions.cs
- Table.cs
- EUCJPEncoding.cs
- CounterSetInstance.cs
- Scanner.cs
- DataGridItemCollection.cs
- AnnotationStore.cs
- ComNativeDescriptor.cs
- CategoryAttribute.cs
- DBConnectionString.cs
- CompositeClientFormatter.cs
- XsdDuration.cs
- TransformPatternIdentifiers.cs
- HtmlImageAdapter.cs
- ToRequest.cs
- HttpResponseHeader.cs
- RowType.cs
- AppSecurityManager.cs
- FloatUtil.cs
- CompositeCollection.cs
- hresults.cs
- NodeCounter.cs
- XmlSchemaSimpleContent.cs
- DocumentSequenceHighlightLayer.cs