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
- AppDomain.cs
- TableItemProviderWrapper.cs
- BuildResultCache.cs
- SystemWebCachingSectionGroup.cs
- SurrogateChar.cs
- UTF32Encoding.cs
- BuildTopDownAttribute.cs
- Stylesheet.cs
- ProtectedConfigurationProviderCollection.cs
- AdRotator.cs
- Table.cs
- ResourceSet.cs
- HttpListener.cs
- MultiBindingExpression.cs
- LocationSectionRecord.cs
- ListViewInsertedEventArgs.cs
- ListView.cs
- WarningException.cs
- XmlCDATASection.cs
- UnionCodeGroup.cs
- RewritingPass.cs
- SelectionManager.cs
- UnsafeNativeMethods.cs
- Point3DCollection.cs
- WeakReferenceEnumerator.cs
- InternalConfigEventArgs.cs
- UserMapPath.cs
- FileDataSourceCache.cs
- ProfileManager.cs
- ShaperBuffers.cs
- ListBoxItem.cs
- TextBoxBase.cs
- PeerApplicationLaunchInfo.cs
- InheritedPropertyChangedEventArgs.cs
- FormatterServices.cs
- RoleManagerSection.cs
- HwndKeyboardInputProvider.cs
- UTF32Encoding.cs
- Pen.cs
- Models.cs
- FixedStringLookup.cs
- WmfPlaceableFileHeader.cs
- DoubleConverter.cs
- Console.cs
- OutputCacheProfile.cs
- OdbcDataReader.cs
- Pool.cs
- XmlNotation.cs
- SystemEvents.cs
- XmlAttributes.cs
- DbProviderSpecificTypePropertyAttribute.cs
- Message.cs
- DropShadowEffect.cs
- BuiltInExpr.cs
- VersionConverter.cs
- EdmComplexPropertyAttribute.cs
- ApplicationException.cs
- StrokeSerializer.cs
- AttributeConverter.cs
- DependencyObjectProvider.cs
- MsmqEncryptionAlgorithm.cs
- PrtTicket_Public_Simple.cs
- UnsafeNativeMethods.cs
- OutputBuffer.cs
- TemplatedWizardStep.cs
- ServiceReference.cs
- IntSecurity.cs
- TdsParserStaticMethods.cs
- VectorCollectionValueSerializer.cs
- DatagridviewDisplayedBandsData.cs
- DropShadowBitmapEffect.cs
- IdentitySection.cs
- BufferAllocator.cs
- ValidationSummary.cs
- PermissionSetTriple.cs
- TCEAdapterGenerator.cs
- SupportedAddressingMode.cs
- UnregisterInfo.cs
- TextTreeUndo.cs
- ListViewHitTestInfo.cs
- PathFigureCollection.cs
- XmlQuerySequence.cs
- DataGridSortCommandEventArgs.cs
- WebPartDesigner.cs
- StrongNameIdentityPermission.cs
- Blend.cs
- WindowsImpersonationContext.cs
- SqlExpressionNullability.cs
- LineInfo.cs
- WindowsIPAddress.cs
- CompilerLocalReference.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- TextFormatter.cs
- CheckBoxPopupAdapter.cs
- StringUtil.cs
- InstanceLockException.cs
- SmtpNegotiateAuthenticationModule.cs
- Int32EqualityComparer.cs
- Encoder.cs
- StoreItemCollection.cs