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
- FromReply.cs
- SerializationAttributes.cs
- SweepDirectionValidation.cs
- ToolStripHighContrastRenderer.cs
- ControlBuilder.cs
- mediapermission.cs
- SafeHGlobalHandleCritical.cs
- RSAPKCS1KeyExchangeFormatter.cs
- WindowsTooltip.cs
- Parser.cs
- ScrollBarRenderer.cs
- DesignConnection.cs
- ListManagerBindingsCollection.cs
- XmlIlGenerator.cs
- WaitHandle.cs
- Permission.cs
- WsdlImporterElement.cs
- VisualStates.cs
- HttpHandlerActionCollection.cs
- FrameworkReadOnlyPropertyMetadata.cs
- ResourceKey.cs
- ObfuscationAttribute.cs
- HtmlImage.cs
- NullableLongAverageAggregationOperator.cs
- TextHidden.cs
- SpellCheck.cs
- BulletedListEventArgs.cs
- Vector3DCollectionValueSerializer.cs
- MissingSatelliteAssemblyException.cs
- XmlDataSource.cs
- XPathChildIterator.cs
- UIntPtr.cs
- LeaseManager.cs
- _NativeSSPI.cs
- ProjectionPlan.cs
- SmtpMail.cs
- Lasso.cs
- WinFormsSecurity.cs
- RecordBuilder.cs
- OrderToken.cs
- UIHelper.cs
- UdpDuplexChannel.cs
- SqlLiftWhereClauses.cs
- BuildProviderCollection.cs
- DataGridViewRowsAddedEventArgs.cs
- ConnectionPoint.cs
- HtmlContainerControl.cs
- ConnectionsZone.cs
- DataBindingList.cs
- XmlWrappingReader.cs
- ScriptingScriptResourceHandlerSection.cs
- RegistryKey.cs
- TimeManager.cs
- Enlistment.cs
- MailDefinition.cs
- IItemProperties.cs
- odbcmetadatacolumnnames.cs
- SuppressMessageAttribute.cs
- SafeThreadHandle.cs
- DeadCharTextComposition.cs
- CodeNamespaceImport.cs
- Parallel.cs
- StorageComplexTypeMapping.cs
- SqlFacetAttribute.cs
- SourceCollection.cs
- VirtualizedContainerService.cs
- ParallelDesigner.xaml.cs
- CreateSequenceResponse.cs
- ExpressionTextBoxAutomationPeer.cs
- ReadOnlyDataSourceView.cs
- ProfileModule.cs
- AsyncPostBackTrigger.cs
- PreviousTrackingServiceAttribute.cs
- SmtpFailedRecipientsException.cs
- PropertyPath.cs
- MetadataCache.cs
- ForeignKeyFactory.cs
- VectorCollectionValueSerializer.cs
- User.cs
- Transactions.cs
- SchemaNotation.cs
- IPGlobalProperties.cs
- CurrentChangedEventManager.cs
- WrappedReader.cs
- XPathScanner.cs
- GuidelineSet.cs
- MachineKeyConverter.cs
- ProfileSection.cs
- GlobalProxySelection.cs
- ObjectNotFoundException.cs
- TransformationRules.cs
- ObjectListComponentEditor.cs
- BitSet.cs
- DriveInfo.cs
- ServicePointManager.cs
- WpfWebRequestHelper.cs
- Soap11ServerProtocol.cs
- ThrowHelper.cs
- WS2007HttpBinding.cs
- HMACSHA256.cs