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
- HttpDictionary.cs
- AppSettingsExpressionEditor.cs
- PropertyPath.cs
- RowVisual.cs
- InstanceKey.cs
- Rfc2898DeriveBytes.cs
- Completion.cs
- AddInBase.cs
- ConfigurationException.cs
- TextElementAutomationPeer.cs
- WmlSelectionListAdapter.cs
- ColumnMapCopier.cs
- ColumnHeader.cs
- BitmapEffectInputData.cs
- TiffBitmapEncoder.cs
- UserPreferenceChangedEventArgs.cs
- localization.cs
- DesignerDataRelationship.cs
- ProcessHost.cs
- ClusterSafeNativeMethods.cs
- ProfilePropertySettings.cs
- InputDevice.cs
- RootBuilder.cs
- DictionaryBase.cs
- WebPartConnectionsCloseVerb.cs
- Point.cs
- SQLMoneyStorage.cs
- PointConverter.cs
- ImmutableDispatchRuntime.cs
- WebBrowserEvent.cs
- System.Data.OracleClient_BID.cs
- StylusCollection.cs
- LogExtent.cs
- PathSegment.cs
- HeaderLabel.cs
- ConfigurationValidatorAttribute.cs
- SapiGrammar.cs
- OdbcError.cs
- MissingMethodException.cs
- _CookieModule.cs
- SendingRequestEventArgs.cs
- SettingsAttributeDictionary.cs
- GlyphCache.cs
- Parser.cs
- CellIdBoolean.cs
- PhysicalOps.cs
- TailCallAnalyzer.cs
- Tracer.cs
- TabItemAutomationPeer.cs
- BrowserCapabilitiesFactoryBase.cs
- TextOnlyOutput.cs
- RtfControlWordInfo.cs
- PresentationAppDomainManager.cs
- Relationship.cs
- ForceCopyBuildProvider.cs
- DetailsViewCommandEventArgs.cs
- COM2ComponentEditor.cs
- ErrorFormatterPage.cs
- AxisAngleRotation3D.cs
- ZipIOCentralDirectoryFileHeader.cs
- KeyNotFoundException.cs
- EditableRegion.cs
- ApplyHostConfigurationBehavior.cs
- DesignTimeVisibleAttribute.cs
- TdsParserSessionPool.cs
- HtmlInputButton.cs
- MobileErrorInfo.cs
- DrawListViewSubItemEventArgs.cs
- XamlFilter.cs
- OdbcTransaction.cs
- TextDecoration.cs
- LayoutEditorPart.cs
- DataGridViewCellStateChangedEventArgs.cs
- XmlSchemaAnnotated.cs
- DPCustomTypeDescriptor.cs
- ObjectList.cs
- CircleHotSpot.cs
- ChannelFactoryBase.cs
- ArgumentOutOfRangeException.cs
- URLString.cs
- MemberAccessException.cs
- AmbientLight.cs
- IRCollection.cs
- ChangeTracker.cs
- Accessible.cs
- BreadCrumbTextConverter.cs
- ToolStripDropTargetManager.cs
- RegexCode.cs
- SiteMembershipCondition.cs
- SubpageParaClient.cs
- WinInetCache.cs
- MappingMetadataHelper.cs
- NativeMethods.cs
- FontStretch.cs
- BezierSegment.cs
- DataServiceProviderMethods.cs
- FixedHyperLink.cs
- NameValuePermission.cs
- ReliabilityContractAttribute.cs
- IIS7WorkerRequest.cs