Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- ConfigurationValues.cs
- BindingListCollectionView.cs
- CodeSnippetCompileUnit.cs
- TypeAccessException.cs
- HttpGetProtocolReflector.cs
- TemplatePagerField.cs
- ClientSession.cs
- MSAAEventDispatcher.cs
- Point3DAnimationUsingKeyFrames.cs
- SoapFormatExtensions.cs
- HttpListenerRequest.cs
- EntryWrittenEventArgs.cs
- DataStreams.cs
- SchemaImporter.cs
- StandardOleMarshalObject.cs
- RangeValidator.cs
- TemplateField.cs
- DbProviderServices.cs
- ComponentConverter.cs
- SemanticKeyElement.cs
- MetadataItem.cs
- ColorConvertedBitmap.cs
- ConnectionOrientedTransportElement.cs
- RuleProcessor.cs
- ToolStripComboBox.cs
- RuntimeVariablesExpression.cs
- CLSCompliantAttribute.cs
- HttpVersion.cs
- HttpApplicationFactory.cs
- RelationshipManager.cs
- AsymmetricSignatureFormatter.cs
- RoleManagerEventArgs.cs
- Rfc2898DeriveBytes.cs
- CommonDialog.cs
- RecognizerBase.cs
- IgnoreDeviceFilterElementCollection.cs
- Identity.cs
- WebProxyScriptElement.cs
- XmlKeywords.cs
- CellCreator.cs
- ItemCheckEvent.cs
- BamlCollectionHolder.cs
- recordstatefactory.cs
- BitmapDownload.cs
- EndOfStreamException.cs
- XmlAnyElementAttribute.cs
- PerspectiveCamera.cs
- DbConnectionStringCommon.cs
- ConnectorSelectionGlyph.cs
- MailHeaderInfo.cs
- GeneralTransform.cs
- UnsafeNativeMethodsPenimc.cs
- DbParameterCollection.cs
- DataGridPageChangedEventArgs.cs
- OleAutBinder.cs
- _Win32.cs
- Int64Animation.cs
- XmlChildEnumerator.cs
- CurrentTimeZone.cs
- XmlCharType.cs
- _Win32.cs
- WebPartMenu.cs
- WinFormsUtils.cs
- ContextStaticAttribute.cs
- DrawingContext.cs
- ScriptControl.cs
- TransformGroup.cs
- DBCSCodePageEncoding.cs
- Exceptions.cs
- safesecurityhelperavalon.cs
- AssemblyBuilder.cs
- AffineTransform3D.cs
- DispatcherOperation.cs
- CodeSnippetTypeMember.cs
- TlsnegoTokenAuthenticator.cs
- PackWebResponse.cs
- DomNameTable.cs
- RequestCachePolicy.cs
- ProofTokenCryptoHandle.cs
- HorizontalAlignConverter.cs
- HashSetEqualityComparer.cs
- DependencyProperty.cs
- MeshGeometry3D.cs
- NativeMethods.cs
- PagedDataSource.cs
- ContentDefinition.cs
- PageHandlerFactory.cs
- ConnectionProviderAttribute.cs
- TypedRowGenerator.cs
- NumberSubstitution.cs
- SslStream.cs
- DetailsViewDeletedEventArgs.cs
- ModelProperty.cs
- xamlnodes.cs
- SqlRemoveConstantOrderBy.cs
- ListViewGroupItemCollection.cs
- UnSafeCharBuffer.cs
- SynchronizationLockException.cs
- ReaderContextStackData.cs
- DataStreams.cs